Hi,
I've tried to find some info but I really don't understand what's happening and why. If there is any documentation I'll be pleased of looking at it.
It seems that the plugin is working correctly (version 1.8.9 on a 4.9.7 WP) as the users can log with their PHPBB passwords into the Wordpress. The only account that has problems is the main admin. I can only access using the PHPBB credentials but it doesn`t login via Wordpress. If I do from the PHPBB side, when accessing into the Wordpress it doesn't show any of the admin panels nor menus. Even clicking on no matter which option, it logs out. I have deactivated the plugin and reconfigured the cookie a hundred times but it doesn`t fix it.
I think that I followed all the steps of the guide, maybe I lost something...Is there any clue about what to check?
Thanks.
WP Admin panel not working (login problem for main admin)
-
- Posts: 4
- Joined: Thu Jul 05, 2018 10:30 pm
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: WP Admin panel not working
Hi, this problem should be resolved within latest patches, isn't it?
Have you take a look into this, or still not?
Update files as indicated here: https://www.axew3.com/w3/forums/viewto ... =784#p2934
check the entire topic's posts and let know after patches, thank you.
Have you take a look into this, or still not?
Update files as indicated here: https://www.axew3.com/w3/forums/viewto ... =784#p2934
check the entire topic's posts and let know after patches, thank you.
-
- Posts: 4
- Joined: Thu Jul 05, 2018 10:30 pm
Re: WP Admin panel not working (login problem for main admin)
Hi,
I just uploaded all the files an applied the change by Jakub but it still does not work (the admin side, normal users can access from both sides).
Is there any log that could be useful to understand what's happening? In fact the plugin is working right for the rest of the users, I suppose that this is an admin problem.
Thanks.
I just uploaded all the files an applied the change by Jakub but it still does not work (the admin side, normal users can access from both sides).
Is there any log that could be useful to understand what's happening? In fact the plugin is working right for the rest of the users, I suppose that this is an admin problem.
Thanks.
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: WP Admin panel not working (login problem for main admin)
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
another applied patch is where code
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!
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();
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 );
}
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!
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: WP Admin panel not working (login problem for main admin)
last answer just updated.
-
- Posts: 4
- Joined: Thu Jul 05, 2018 10:30 pm
Re: WP Admin panel not working (login problem for main admin)
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.
Thanks.