When my users click FEP message links from email, they get a Page Not Found error unless they are already logged in to the site or have been remembered on that computer. Instead, they should be directed to the WP login page, then redirected to the message after successful login.
This is very confusing to the users and is preventing me from using FEP until I get a resolution. Any help would be greatly appreciated.
If they are not logged in they should be given a link to login, after successful login they should see message.
Please check following
1. set “Front End PM Page” in Dashboard > Front End PM PRO > Settings > General
2. login page url is correct
Thanks for the quick reply.
1. “Front End PM Page” is set correctly in Dashboard > Front End PM PRO > Settings > General and that page has the correct shortcode and works as it is supposed to
2. Perhaps I am just missing it, but I don’t see any spot in FEP settings to specify the login page URL. Am I supposed to be checking this somewhere else in WP or my theme (OceanWP)? I am using the default wp-login.php for everything.
I have made progress, but have traded one error for another.
I use Toolset Access to manage user permissions on pages and posts, and I had the Front End PM message page restricted so that only Members (a custom role) could view that page. I believe it was Access that was generating the “Page Not Found” error, not Front End PM.
As a test, I temporarily removed the page restriction in Access, and now I no longer get the “Page Not Found” error. However instead I get the correct messages page, but with a red box stating “You must login to view your message.” Is this correct behavior for Front End PM? In your initial reply, you indicated that I should see a login link, then be redirected to the message after successful login.
If you follow the link I sent in my last private reply, you will now see the new behavior.
Yes, this is correct behavior, when someone click “login” in that red box s/he will be redirected to login page and when login, s/he will be redirected to message page.
You can even add add_filter( 'fep_using_auth_redirect', '__return_true' ); in your theme’s (child theme’s if any) functions.php so that you will be redirected to login page automatically if not logged in. So no need to click login.
You can also set who can access message system in Dashboard > Front End PM PRO > Settings > Security