Please HELP!!! User Role defaulted to Subscriber after WP login

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: Please HELP!!! User Role defaulted to Subscriber after WP login

Re: Please HELP!!! User Role defaulted to Subscriber after WP login

by tonymrc » Fri Oct 25, 2024 12:49 pm

Image

Hi, as you can see I don't have that option enabled at all. I am seeing a consistent behavior across two different servers, the Captive and the Production ones.
If you want I am available to somehow share access to our deployments, if interested please contact me via email

Thanks, Tony

Re: Please HELP!!! User Role defaulted to Subscriber after WP login

by axew3 » Thu Oct 24, 2024 9:37 pm

In fact, based on my tests, you probably activated the option mentioned above.
Or there is no way to get what you report.
You probably activated the option
Switch the WP user to specified Group in phpBB, when Role updated in WordPress or vice versa
then: if the user is just an user that belong to Registered in phpBB, when visits WP will be updated to the Subscriber role in WP.

But again, and unfortunately standing into my tests the option do not work!
So it see, to me that is impossible to get the behavior you say.
I will check to fix it as soon on few next hours.

Re: Please HELP!!! User Role defaulted to Subscriber after WP login

by axew3 » Thu Oct 24, 2024 8:09 am

Let check if there is something wrong, but i assume it is your mistake.

Re: Please HELP!!! User Role defaulted to Subscriber after WP login

by tonymrc » Thu Oct 24, 2024 7:49 am

Hi! I didn't enable the option "Switch the WP user to specified Group in phpBB, when Role updated in WordPress or vice versa".
Users should have different roles in WP and phpBB.

I do have access to the WP admin but the only way to go around the issue is to change role, after login in WP, by updating the user wp_capabilities in wp_usermeta via phpmyadmin.


>have you set the user in phpBB to be admin then login into WP?
No I didn't do that. Is it needed ? We use this plugin since many years, it has never been needed, is it change in the never versions ?

Thanks, Tony

Re: Please HELP!!! User Role defaulted to Subscriber after WP login

by axew3 » Wed Oct 23, 2024 9:02 pm

Hello: have you enabled the option
Switch the WP user to specified Group in phpBB, when Role updated in WordPress or vice versa
do you have access to the wp admin with some other user so to fix the problem?
have you set the user in phpBB to be admin then login into WP?

Please HELP!!! User Role defaulted to Subscriber after WP login

by tonymrc » Wed Oct 23, 2024 4:07 pm

After upgrading WP to v6.6.2 and WordPress w3all phpBB integration to v2.9.0 I started having this strange behavior :

- each time a User with role different than (default) Subscriber logs in WP, his role gets changed to Subscriber

I thought this might be due to version mismatch with w3all phpBB WordPress extension, so I updated also the phpBB side with the lates v2.03, but unfortunately nothing changes.

At the moment the only way to have a working user is to force the role directly in mysql via phpmyadmin :

- in wp_usermeta, wp_capabilities changed from ({s:10:"subscriber";i:1;} to a:1:{s:13:"author";b:1;})

but at a new login on WP the system changes automatically back to Subscriber

This is very impactful a I have many users with different roles than the default one (subscriber)

Thanks a lot for your support !

Top