Odd redirection after logon on multisite

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Odd redirection after logon on multisite

Re: Odd redirection after logon on multisite

by pennymachines » Sun Apr 27, 2025 8:29 pm

As of latest update 2.9.5 the redirected link problem seems to have gone. :D
Thank you for that.

I have one other problem but will open a new topic.

Re: Odd redirection after logon on multisite

by pennymachines » Fri Apr 25, 2025 5:12 pm

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.

Re: Odd redirection after logon on multisite

by axew3 » Fri Apr 25, 2025 1:32 pm

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

Code: Select all

public static function wp_w3all_get_phpbb_user_info_by_email($email){

 global $w3all_config,$w3all_phpbb_connection,$phpbb_user_data;
add this:

Code: Select all

$phpbb_config = WP_w3all_phpbb::w3all_get_phpbb_config_res();
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?

Re: Odd redirection after logon on multisite

by pennymachines » Fri Apr 25, 2025 12:28 pm

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).

Re: Odd redirection after logon on multisite

by axew3 » Fri Apr 25, 2025 9:52 am

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?

Odd redirection after logon on multisite

by pennymachines » Thu Apr 24, 2025 10:49 pm

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!

Top