Home › Forums › Front End PM PRO › Email link 404 when user not logged in
Tagged: email link, login
- This topic has 7 replies, 2 voices, and was last updated 8 years ago by Don Black.
- AuthorPosts
- December 15, 2017 at 2:05 am #8660Don BlackParticipant
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.
Thanks!
December 15, 2017 at 2:31 am #8663Shamim HasanKeymasterIf 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 correctLet me know.
December 15, 2017 at 6:35 am #8666Don BlackParticipantThanks 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.December 15, 2017 at 8:18 am #8669Shamim HasanKeymasterCan you please give me your message page url and create a test user for me?
December 16, 2017 at 5:11 am #8687Don BlackParticipantThis reply has been marked as private.December 16, 2017 at 5:42 am #8690Don BlackParticipantUpdate:
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.
Thanks!
December 16, 2017 at 9:06 am #8704Shamim HasanKeymasterYes, 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
December 18, 2017 at 5:51 pm #8733Don BlackParticipantOK, got it. Thanks for the help!
- AuthorPosts
You need to purchase ‘Front End PM PRO’ to create topic in this support forum.
If you already purchased ‘Front End PM PRO’ please LOGIN.