Skip Navigation

[Resolved] wpv-login-form redirect URL only works for site admins

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have added a Login Form using the wpv-login-form shortcode, The redirect only works when the user is an Administrator. Other users can successfully login but are redirected to the homepage.

Solution:

It is a compatibility issue, see details here:

https://toolset.com/forums/topic/wpv-login-form-redirect-url-only-works-for-site-admins/#post-1613499

Relevant Documentation:

100% of people find this useful.

This support ticket is created 3 years, 12 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Peter Amer 3 years, 12 months ago.

Assisted by: Luo Yang.

Author
Posts
#1612237

Tell us what you are trying to do?
I have added a Login Form using the wpv-login-form shortcode that appears in a modal on every page. This has been set to redirect all users to a website page when successful. The domain has been registered as a safe redirect in the Toolset settings.

Is there any documentation that you are following?
https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-login-form

Issue details -
The redirect only works when the user is an Administrator. Other users can successfully login but are redirected to the homepage.
In case the modal was the issue I have inserted the login form shortcode to a site page but the same thing happens.

#1613499

Hello,

The problem you mentioned above is abnormal, please try these:

1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, and test again

3) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

4) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1614885

Luo

Many thanks for sending through your checklist.

After testing everything we found this was a compatibility issue with a plugin called Uncanny LearnDash Toolkit. This is a suite of tools to support the LearnDash e-learning system for WordPress and the default installation appears to automatically enable a redirect script. Once this was disabled all users are now correctly being redirected.

Thank you.

#1614887

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.