Redirection Addon not working yet
-
We only have Free Level.
We don’t use any other specific redirection plugins.
I’ve followed these instructions;
https://simple-membership-plugin.com/configure-login-redirection-members/
I’ve chosen the option to have Users redirected to the last page where they Logged in, however newly Logged in Users are always redirected to the site Homepage.
This is the case after clearing the browser cache AND after purging all site caches in LiteSpeed cache.
Probably related, I also notice after logging in with the correct User data, the processing often just continues until you refresh the browser (Safari and Brave), only then do you see anything at all, and in my case it’s the homepage not the page the visitor was viewing when they chose to login.
I noticed this “hanging processing” even before I installed the redirect addon.
Visitors should not need to refresh the browser, something is “sticky” in the processing of the redirection.
Suggestions please?
-
Hi, please carry out the following troubleshooting steps.
Thank you.
Yes, thank you, I did that, and have managed to fix the “hanging blank page” problem. It was the WebPushr Notification plugin conflicting with our Litespeed Caching plugin that was causing the “hanging blank page” after logging in
I could see on the “hanging page” browser status bar; “Waiting for bot.webpushr…”
So by excluding some webpushr URIs in the Litespeed settings and purging all caches, we managed to get the site snappy again.
But we are still not getting redirected to the page the User decided to login at. Everyone is sent to the site homepage instead.
Can you give me some/all SMP redirect plugin URIs to also exclude from Litespeed caching please? I suspect that will fix the redirection bug.
- This reply was modified 2 years, 6 months ago by 1waytoheaven. Reason: Sp
Hi, I thought the following entries mentioned below worked for you.
https://wordpress.org/support/topic/register-form-input-boxes-too-long/#post-15709345
If the above does not work for you, then there must be another plugin, theme or service in your site causing this issue.
Kind regards.
That post refers to a bug that was indeed fixed.
This thread is about a different bug that is not yet fixed.
I have already asked for this information, so I can add cache excludes to our caching plugin.
This request is asking about the SMP Redirect Plugin addon;
But we are still not getting redirected to the page the User decided to login at. Everyone is sent to the site homepage instead.
Can you give me some/all SMP redirect plugin URIs to also exclude from Litespeed caching please? I suspect that will fix the redirection bug.
I’ll need some specific URIs to exclude to make progress.
- This reply was modified 2 years, 6 months ago by 1waytoheaven. Reason: Sp
Hi, the reason why I mentioned the support thread I helped you with is because one of the URL’s mentioned is what we recommend when using a cache plugin in the site. This also applies to the redirect addon.
https://yoursite.com/simple-membership/membership-login/
Please also exclude the following cookie.
swpm_in_use
If the above does not work for you, then there must be another plugin, theme or service in your site or maybe in your server causing this issue.
Please also enable debug mode and carry out a test. Then check the log file to see what is revealed.
Kind regards.
- This reply was modified 2 years, 6 months ago by mbrsolution.
- This reply was modified 2 years, 6 months ago by mbrsolution.
I see, since the URI
/simple-membership/membership-login/
is already excluded from our caching plugin, I’ll now exclude the cookieswpm_in_use
URI as well, and then, if necessary, debug and test as you suggest. ๐- This reply was modified 2 years, 6 months ago by 1waytoheaven. Reason: Sp
Debug report:
After adding the cookie URI to my LiteSpeed exclude, in the proper exclude cookies pane, I tested again in debug mode as User: test (which is already a Member on our site.)
I chose a page other than the Homepage, and from there logged in with the correct data.
The browser “hung” again (annoying because I thought that was fixed), and after refreshing the browser view I was redirected to the site Homepage (ie. not the page I logged in at, and wanted to see.)
Here’s the Debug logs:
[2022/06/06 14:22:19] - SUCCESS: Log file reset ------------------------------------------------------------------ [2022/06/06 14:25:06] - SUCCESS: After login redirection addon. Checking if member need to be redirected. 2022/06/06 14:22:19] - SUCCESS: Log file reset ------------------------------------------------------------------ [2022/06/06 14:23:14] - SUCCESS: wp_authenticate action. Empty username provided. Adding set_current_username hook to catch potential login attempt. [2022/06/06 14:25:06] - SUCCESS: Authentication request - Username: test [2022/06/06 14:25:06] - SUCCESS: Authentication successful for username: test. Executing swpm_login action hook. [2022/06/06 14:25:06] - SUCCESS: Trying wp_signon() with username: test [2022/06/06 14:25:06] - SUCCESS: wp_authenticate action. User with username: test is already logged in. [2022/06/06 14:25:06] - FAILURE: wp_signon() failed for the corresponding WP user account. [2022/06/06 14:25:06] - SUCCESS: Triggering swpm_after_login hook.
The User test does not have a WP account, I just made it to test our site.
Does that give you any clues why the SMP Redirect addon is not working as set?
- This reply was modified 2 years, 6 months ago by 1waytoheaven.
Thank you for providing more information. I have submitted a message to the developers to investigate further your issue.
Kind regards.
Thank you.
I should mention the first lnes of the debug log above are from the General debug file, the rest from the Login debug file.
Perhaps of relevance... [2022/06/06 14:22:19] - SUCCESS: Log file reset ------------------------------------------------------------------ [2022/06/06 14:25:06] - SUCCESS: After login redirection addon. Checking if member need to be redirected.
I notice there’s nothing in the debug file
after the phrase
, “Checking if member need to be redirected.”I would have expected a SUCCESS entry because it redirected test to the Homepage, although I’ve set the SMP Redirect plugin to redirect logged in Users to the page where they logged in, which in this case was NOT the homepage.
So no SUCCESS or FAILURE entry after that phrase is an anomaly, isn’t it?- This reply was modified 2 years, 6 months ago by 1waytoheaven. Reason: Sp
Whilst waiting for a reply, I’ve noticed something of interest.
I am testing the Redirect by using the Login input boxes in the sidebar (the Neve theme widget Login)
BUT if I go the circuitous route of clicking the LOGIN text link under a protected post, that takes me to a url with
?swpm_redirect_to=
in it, and I AM then redirected to where I logged in. (Which is progress)So how do I get redirection to work when visitors use the more logical and obvious sidebar Login input area and the Top Menu Login page? Currently neither works with your redirection addon.
- This reply was modified 2 years, 6 months ago by 1waytoheaven.
Hi,
So how do I get redirection to work when visitors use the more logical and obvious sidebar Login input area and the Top Menu Login page? Currently neither works with your redirection addon.
Are you talking about WordPress login form?
Regards.
I’m not sure what the difference is.
I’m talking about logging into our site, not WP itself.
I made the side bar Login widget by using the Neve Child Master Customiser pane in my WP admin of our site. I don’t know if that would be a Neve theme widget or a WP login form widget. How could I tell.
I have made a Login page, that is linked to in the top menu.
And I have also a sidebar Login widget.
Neither of those redirect to the page where the user logs in, they both go to the site homepage (what some people at Neve call the “Blog” page.)
I’ve asked at Neve Support, but so far no replies.
Thank you for your help, I hope WPinsider is not ill?
Hi,
I made the side bar Login widget by using the Neve Child Master Customiser pane in my WP admin of our site. I donโt know if that would be a Neve theme widget or a WP login form widget. How could I tell.
That login widget probably belongs to your theme. The following documentation has information in regards to the login widget.
https://mbrsolution.com/wordpress/wordpress-simple-membership-members-login-widget.php
Let me know if the above information helps you.
Kind regards.
Thank you for responding again ๐
I looked at the linked page you gave and it helped me to confirm that both the sidebar widget login and the top menu Login are indeed using the SMP shortcode
[swpm_login_form]
so ought to be working with the SMP Redirection plugin, but they are not!Why they are not is the subject of this thread.
I’d really like to get it solved soon.
Where is the Developer?
I’ve also asked at Neve Support here:
- This reply was modified 2 years, 5 months ago by 1waytoheaven. Reason: Added link
Hi,
I carried out a test in my dev site and the redirect is working as expected. I tested a couple of themes. So I can confirm this is working correctly. Have you tested one of WordPress default themes like Twenty Twenty?
Can you share a link to your site with the login widgets. I would like to check to see if there are any javascript errors.
Thank you.
- The topic ‘Redirection Addon not working yet’ is closed to new replies.