Hi!
I have a modal logon (created in functions.php of Wordpress). When a user logs on all is fine UNTIL they click a link on the page. The browser is then redirected to wp-login.php on the subsite of that page (and the user is logged out). This only happens when WP_w3all plugin is activated, so it seems to be caused by an odd interaction between your plugin and my functions. I wonder if you could suggest what is causing this.
Cheers!
Odd redirection after logon on multisite
-
- User www
- Posts: 85
- Joined: Mon Feb 06, 2017 9:51 pm
- axew3
- w3all User
- Posts: 2929
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Odd redirection after logon on multisite
Hello David ok going to check!
Completely not checked the WP MUMS part of the code. I will test it as deep i can now but in the while,
could you confirm that on WP multisite the deletion of the user, in conjunction with some other plugin, was causing the get_results() on string error and that now, into 2.9.4 it has been fixed?
Completely not checked the WP MUMS part of the code. I will test it as deep i can now but in the while,
could you confirm that on WP multisite the deletion of the user, in conjunction with some other plugin, was causing the get_results() on string error and that now, into 2.9.4 it has been fixed?
-
- User www
- Posts: 85
- Joined: Mon Feb 06, 2017 9:51 pm
Re: Odd redirection after logon on multisite
Re user deletion, I'm afraid it still throws a fatal error.
Debug.log: PHP Fatal error: Uncaught Error: Call to a member function get_results() on string in /home/www/mywebsite.com/WP/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php:2203
Stack trace:
#0 /home/www/mywebsite.com/WP/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php(2250): WP_w3all_phpbb::wp_w3all_get_phpbb_user_info_by_email()
#1 /home/www/mywebsite.com/WP/wp-content/plugins/wp-w3all-phpbb-integration/wp_w3all.php(1870): WP_w3all_phpbb::wp_w3all_phpbb_delete_user_signup()
#2 /home/www/mywebsite.com/WP/wp-includes/class-wp-hook.php(326): w3all_wpmu_delete_user()
#3 /home/www/mywebsite.com/WP/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /home/www/mywebsite.com/WP/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /home/www/mywebsite.com/WP/wp-admin/includes/ms.php(174): do_action()
#6 /home/www/mywebsite.com/WP/wp-admin/network/users.php(186): wpmu_delete_user()
#7 {main}
thrown in /home/www/mywebsite.com/WP/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php on line 2203
(I don't think it's connected with another plugin).
Debug.log: PHP Fatal error: Uncaught Error: Call to a member function get_results() on string in /home/www/mywebsite.com/WP/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php:2203
Stack trace:
#0 /home/www/mywebsite.com/WP/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php(2250): WP_w3all_phpbb::wp_w3all_get_phpbb_user_info_by_email()
#1 /home/www/mywebsite.com/WP/wp-content/plugins/wp-w3all-phpbb-integration/wp_w3all.php(1870): WP_w3all_phpbb::wp_w3all_phpbb_delete_user_signup()
#2 /home/www/mywebsite.com/WP/wp-includes/class-wp-hook.php(326): w3all_wpmu_delete_user()
#3 /home/www/mywebsite.com/WP/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /home/www/mywebsite.com/WP/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /home/www/mywebsite.com/WP/wp-admin/includes/ms.php(174): do_action()
#6 /home/www/mywebsite.com/WP/wp-admin/network/users.php(186): wpmu_delete_user()
#7 {main}
thrown in /home/www/mywebsite.com/WP/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php on line 2203
(I don't think it's connected with another plugin).
- axew3
- w3all User
- Posts: 2929
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Odd redirection after logon on multisite
It is a call to
public static function wp_w3all_get_phpbb_user_info_by_email($email)
into file
/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php
may to fix
just after this
add this:
Can you confirm?
And... strange that it still return the problem on plugin 2.9.4 version where the call to
$phpbb_config = WP_w3all_phpbb::w3all_get_phpbb_config_res();
initialize the phpbb db connection just after the class inclusion, into the wp_w3all.php file.
If still not fixed with the above (so strange) another more step maybe for your configuration is required:
DEFINITIVE 2.9.3 SOLUTION
the config file inclusion, but i really think that with the above you should be ok about error get_results on string:
viewtopic.php?t=2026
About login redirect and logout: can you provide me the way to test the snippet? Because into my tests it is working, how could i reproduce?
public static function wp_w3all_get_phpbb_user_info_by_email($email)
into file
/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php
may to fix
just after this
Code: Select all
public static function wp_w3all_get_phpbb_user_info_by_email($email){
global $w3all_config,$w3all_phpbb_connection,$phpbb_user_data;
Code: Select all
$phpbb_config = WP_w3all_phpbb::w3all_get_phpbb_config_res();
And... strange that it still return the problem on plugin 2.9.4 version where the call to
$phpbb_config = WP_w3all_phpbb::w3all_get_phpbb_config_res();
initialize the phpbb db connection just after the class inclusion, into the wp_w3all.php file.
If still not fixed with the above (so strange) another more step maybe for your configuration is required:
DEFINITIVE 2.9.3 SOLUTION
the config file inclusion, but i really think that with the above you should be ok about error get_results on string:
viewtopic.php?t=2026
About login redirect and logout: can you provide me the way to test the snippet? Because into my tests it is working, how could i reproduce?
-
- User www
- Posts: 85
- Joined: Mon Feb 06, 2017 9:51 pm
Re: Odd redirection after logon on multisite
Fix 1 - same error.
DEFINITIVE 2.9.3 SOLUTION - Success! User/s deleted, no errors.
Thank you again for all the work you put into maintaining this vital plugin.
I've done more tests re. the strange misdirected links issue.
I reconfirmed that the issue goes away when I deactivate WP_w3all.
I tested with a standard user and Super Admin. Super Admin immediately redirects to the subsite Admin after logon.
Maybe this is intentional? Anyway, it doesn't matter.
But after a standard user logs in, the links on the page then redirect to main subsite homepage.
You still have a Super Admin account on my site. I've PM'd you the username.
DEFINITIVE 2.9.3 SOLUTION - Success! User/s deleted, no errors.
Thank you again for all the work you put into maintaining this vital plugin.
I've done more tests re. the strange misdirected links issue.
I reconfirmed that the issue goes away when I deactivate WP_w3all.
I tested with a standard user and Super Admin. Super Admin immediately redirects to the subsite Admin after logon.
Maybe this is intentional? Anyway, it doesn't matter.
But after a standard user logs in, the links on the page then redirect to main subsite homepage.
You still have a Super Admin account on my site. I've PM'd you the username.
-
- User www
- Posts: 85
- Joined: Mon Feb 06, 2017 9:51 pm
Re: Odd redirection after logon on multisite
As of latest update 2.9.5 the redirected link problem seems to have gone.
Thank you for that.
I have one other problem but will open a new topic.

Thank you for that.
I have one other problem but will open a new topic.