No longer access dashboard after update

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: No longer access dashboard after update

Re: No longer access dashboard after update

by axew3 » Wed Apr 25, 2018 6:36 am

you experience this behavior on 1.8.8?
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"

Re: No longer access dashboard after update

by nacho-dad » Tue Apr 24, 2018 10:29 pm

I just installed the plugin today and I'm getting the same error. Did anyone find a fix?

Re: No longer access dashboard after update

by axew3 » Tue Mar 27, 2018 5:49 pm

other time over thinking to what way would be best here, while i' deploy an ffmpeg install into a CentOS server :)

Code: Select all

if ( $ck1->ID > 1 && $ck1->user_login != $wp_user_data->user_login OR $ck1->ID == 1 && $phpbb_user_session[0]->user_id > 2 ){
this will not exclude by the inline update of the username on admin bar, the admin uid1 in WP, in case of login in phpBB with different username while user still have a valid WP session cookie, and in the right way ...
So this one is the best solution ... I will patch about this little fix, maybe not significant because the default install admin often not exist and because the installer excluded by this joke is maybe secondary issue ... by the way, it will be added, maybe after the ffmpeg install where is my head now (but not completely as it is clear!) ...

p.s:
to patch to this latest fix, download the file class.wp.w3all-phpbb.php
and replace into folder:
/wp-content/plugins/wp-w3all-phpbb-integration

Re: No longer access dashboard after update

by axew3 » Tue Mar 27, 2018 3:36 pm

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

Re: No longer access dashboard after update

by axew3 » Tue Mar 27, 2018 3:08 pm

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

Re: No longer access dashboard after update

by axew3 » Tue Mar 27, 2018 2:45 pm

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

Top