WP Admin panel not working (login problem for main admin)

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: WP Admin panel not working (login problem for main admin)

Re: WP Admin panel not working (login problem for main admin)

by axew3 » Mon Jul 09, 2018 10:38 pm

I'm not sure if using the same data for both accounts made any kind of conflict as long as id1 and id2 "are the same".
Should not!

1) same usernames , ID1 in WP and ID2 in phpBB

2) different usernames with ID1 in WP and ID2 in phpBB

the unique way that should not work, would be if the UID1 in WP, found same username in phpBB but that isn't the UID2.
So maybe something about this has been lost on latest updates?
Checking as soon is possible.

Re: WP Admin panel not working (login problem for main admin)

by Gunnar » Mon Jul 09, 2018 10:20 pm

PHPBB admin was created before the WP installation (both WP and the plugin). I used the same user and email for creating the WP main admin. Does it make sense for you? I'm not sure if using the same data for both accounts made any kind of conflict as long as id1 and id2 "are the same".

Re: WP Admin panel not working (login problem for main admin)

by axew3 » Mon Jul 09, 2018 9:50 pm

Yes please resume/check a thing:
the user where you have problems is
the admin installer, with ID 1 in Wordpress,
and in phpBB the same username is admin but it is not with ID 2?

Could be possible this is your scenario?

Re: WP Admin panel not working (login problem for main admin)

by Gunnar » Mon Jul 09, 2018 9:40 pm

I've tried to replace the files and also patching both (the original ones and also the ones uploaded to the post) but it's still not working. I have finally created another WP admin and I'm going to work with 2 different accounts (depending on where I need Admin permissions). If you think there is any important check I can perform, just ask.

Thanks.

Re: WP Admin panel not working (login problem for main admin)

by axew3 » Fri Jul 06, 2018 9:07 pm

last answer just updated.

Re: WP Admin panel not working (login problem for main admin)

by axew3 » Fri Jul 06, 2018 8:52 pm

Mh ... ok ... about log, the only way to check what's going on, is to aim to understand what happen and why.
Substantially, the file class.wp.w3all-phpbb.php is the one where all rotate around.
The main function on this file is
private static function verify_phpbb_credentials(){
I've apply the suggested patch by jakub inside it, taking it for good, because redundant code:
file
class.wp.w3all-phpbb.php
lines 564,565,566

Code: Select all

      // fix by Jakub
			// wp_redirect( $redirect_to );
			// exit();
another applied patch is where 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
     $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 );
    }
Have you download the file
class.wp.w3all-phpbb.php and substitute it?
The fix about admin can't access wp admin, isn't the patch suggested by jakub.
Download the file and substitute it or change the code where
// if needed, set inline this user: ...
in accord with the above if you have still not change it and you have not substitute the entire file, but just applied the single patch.

i will take a look into this to resolve definitively as soon with some other secondary bug and improvement and if you can help on it would be really appreciated. I have think that removing the admin from this second reported patched code above, (i resolved the problem on accessing wp admin for user with id1 in this way into a site) was fixing the issue in any case.
Let know!

Top