No longer access dashboard after update

glynthomas1
Posts: 3
Joined: Fri Mar 23, 2018 10:33 am

Re: No longer access dashboard after update

Post by glynthomas1 »

Hello

With 1.8.4 installed - Everything is ok

With 1.8.5 installed - You can activate and all appears ok, until you log out and back in, then as it automatically tries to take you into the Dashboard you get "Sorry, you are not allowed to access this page"

With 1.8.6 installed - You can activate and all appears ok, until you log out and back in, then as it automatically tries to take you into the Dashboard you get "Sorry, you are not allowed to access this page"

This happens when any admin user tries logging in with 1.8.6 installed and active. As soon as I FTP and revert to 1.8.4 it's all ok again. My website is www.liverpoolroom.com

Thank you

Glyn
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: No longer access dashboard after update

Post by axew3 »

taking a look within few hours as i'll be in place, thank to you ...
p.s in the while i've test it out in any coming in mind possibility, with user axew3 here, al all work fine on any test (localhost or online).
I will follow ... Is this user the admin 1 in WP and 2 in phpBB where you experience the problem or with all users?
Since you're registered here, have you try out? do you experience the same on this current online 1.8.6 example?

p.s if i will test an user into your linked site in little time more when i will be in place, will be in 1.8.6?
glynthomas1
Posts: 3
Joined: Fri Mar 23, 2018 10:33 am

Re: No longer access dashboard after update

Post by glynthomas1 »

Hello

I don't get the issue here as I get it when trying to get into the Wordpress Dashboard on my site when the 1.8.6 plugin is active.

Thank you

Glyn
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: No longer access dashboard after update

Post by axew3 »

Hello Glyn, in place here: i've just test a clean wordpress, using admins in all flavors, same uname OR different uname default install admins, or common admins also added on fly because coming as logged into phpBB, added onlogin, and i think at moment, any possibility, all working and expected as need to be, even any redirect that i've try out, like for example, i login in phpBB, then i come into wp and i load a specific front end page, the page display and the user correctly added, also pointing directly to profile, or leaving the user logged in WP, logging out him in phpBB and return as logged like other username, correct result, the user is immediately inline and correctly logged as the one in phpBB without reloading (latest fix).

Now, this not mean that something is still maybe wrong, so i'm curious to check where the evil can be.
Would you like to give me the access of this user, sending me via pm credentials and link? So i will may take a look to this behavior and if i can get out why come out as i have a second along the day ...
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: No longer access dashboard after update

Post by axew3 »

p.s i've understand that happen with an admin, maybe the admin uid 1 in WP, or not?
if not this may not fix nothing, if yes, please try to open class.wp.w3all-phpbb.php
find this line:

Code: Select all

if ( $ck1->ID != 0 && $ck1->user_login != $wp_user_data->user_login ){
change into:

Code: Select all

if ( $ck1->ID > 1 && $ck1->user_login != $wp_user_data->user_login ){
what happen?
p.s this change will be added by default by the way ...
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: No longer access dashboard after update

Post by axew3 »

class.wp.w3all-phpbb.php has just been patched to exclude default install admin due to the follow explained on inline code:

Code: Select all

// if needed, set inline this user: if user logout in phpBB (but still have valid cookie in WP) and relogin using another uname in phpBB, then come in WP, set it inline or admin bar will display previous user name until next page reload
// as is, this exclude the admin uid 1 in WP and the admin uid 2 in phpBB, that have been created, maybe, with different usernames
    $ck1 = wp_get_current_user();
    if ( $ck1->ID > 1 && $ck1->user_login != $wp_user_data->user_login ){
     wp_clear_auth_cookie();
     wp_set_current_user( $wp_user_data->ID, $wp_user_data->user_login );
    }
to patch, download the file class.wp.w3all-phpbb.php
and replace into folder:
/wp-content/plugins/wp-w3all-phpbb-integration
Post Reply