register and login redirect not working
-
Up until about 2 weeks ago when a user registered on my site, they were redirected to a specific page depending on the user role they were assigned. This page is defined in EditUserRole>RegistrationOptions. They would also be directed to this specific page upon any login. This is defined in EditUserRole>LoginOptions.
Since then, however, the user now gets directed to their dashboard instead. Enabling the WP debug function, UM is throwing a series of related errors:
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1838
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1838
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1589
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1589
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1589
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1838
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1838
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1838
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1838
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1838
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1589
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1701
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1838
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1838
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1838
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1589
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1589
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1589
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1344
[01-Sep-2016 17:22:24 UTC] PHP Notice: Undefined variable: disabled in /var/www/example.com/wp-content/plugins/ultimate-member/core/um-fields.php on line 1918I tried adding code found here to fix the problem… changed line 926 in um-fields.php to:
if ( $visibility == 'view' && $this->set_mode == 'register' ){ $disabled = ' disabled="disabled" '; } else { $disabled = ''; };
This resolves the error thrown, but still not getting the appropriate redirect. I have reverted my code to the original at this point.
- The topic ‘register and login redirect not working’ is closed to new replies.