ud1 associated, deleted in WP

Optix
User w
User w
Posts: 7
Joined: Tue Aug 14, 2018 11:34 pm

ud1 associated, deleted in WP

Post by Optix »

OK, bear with me.

I installed wpall using an Admin user that in WP is UD2. It so happens that UD1 (with different username) shared the same email address.

After the plugin was activated, whenever I logged into WP, despite using UD2 credentials, the site would see me as UD1.

(phpBB correctly identified me)

I initially changed the email address on UD1, this did not help.

I tried deleting UD1 but of course since I was logged in as UD1, I couldn't do that. I ended up deactivating the plugin, and THEN deleting UD1. When I tried the plugin again, suddenly I would get the "You cannot access this page" when trying to login as UD2.

I had to manually delete the plugin off the server to be able to access the WP Admin Dashboard again.

Unfortunately now every time I reinstall the plugin and activate it, I get the same problem - I'm immediately locked out from dashboard.

I actually created a new user in WP as a subscriber, went into the database to change that user to UD1, logged into the site as UD2 and tried installing the plugin again. It logged me in thinking I was UD1.

I'd like to use the plugin but I've managed to royally stuff it up. Help!
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: ud1 associated, deleted in WP

Post by axew3 »

Hi there!
It is not a good idea to edit db records values if you not exactly know what to change into related and linked tables.
It so happens that UD1 (with different username) shared the same email address
An email associated in wordpress to an user, isn't possible that is also associated to another user.
This feature is possible only into phpBB: users can be created using same email address if the option is active into phpBB ACP: but as explained on install help page you need to disable this feature if active, and assure that NO users share the same email for different accounts in phpBB.

Assuming that there are no bugs if all configured ok, so:

uid1 in wordpress (the default WP install admin):
it is recognized as uid2 (the default phpBB install admin).
IF there is not in phpBB an user with ID2, then you need to create another admin in WP and install the plugin with this admin.
This admin in WP (it's not necessary delete the admin id1 in WP, if you do not want delete him for others security reasons, may just not use it)
NEED to have a related user in phpBB with SAME username and same email address.
The other important thing, is the cookie setting in phpBB.
It need to be setup to be available over all the domain as explained in the help install page

another thing important to consider is that as code is at this moment, the wordpress or phpBB url need to be accessed and configured to be a domain name or localhost. If you have setup url to phpBB or wordpress to be something like:
http://128.952.8.6/mywordpress/
will not work properly, the cookie will not be set properly.

check also that there is no reason to uninstall the plugin in this way (linked on the help install page): under NO Panic Instructions

let know if still in trouble

p.s you are now able to post without any restriction, after the first post approved.
Optix
User w
User w
Posts: 7
Joined: Tue Aug 14, 2018 11:34 pm

Re: ud1 associated, deleted in WP

Post by Optix »

It was set up and running and worked well, except whenever I logged into Wordpress it would log me in as UID1.

So a possible way to solve it is to independently create a new Admin in Wordpress, create another Admin in phpBB that shares the same username and email address, and then try installing again?

I'll try that and report.
Optix
User w
User w
Posts: 7
Joined: Tue Aug 14, 2018 11:34 pm

Re: ud1 associated, deleted in WP

Post by Optix »

Before I do that:

If I remove all traces of the w3 plugin - does it leave files elsewhere? - and delete cookies, I *should* be able to reinstall the plugin provided there are shared Username and email address between Wordpress and phpBB, correct?
Optix
User w
User w
Posts: 7
Joined: Tue Aug 14, 2018 11:34 pm

Re: ud1 associated, deleted in WP

Post by Optix »

As soon as I reinstall the plugin and Activate it, I lose access to the Wordpress admin. I also start getting blank pages when trying to access the phpBB admin. When I try to logout of phpBB, I get a message saying I wasn't logged out as my login didn't match my session. I click Logout again and it works.

I then have to FTP to my server and delete the plugin manually to get access back to Wordpress. Wordpress recognises that the plugin had previously existed (I get a message saying "plugin was disabled as it doesn't exist").

While I can see there may be a problem with cookies there (I followed the instructions closely) it feels like there is some settings left somewhere. Are they in the database? If I could delete those settings, I may be able to reinstall the plugin from scratch and get it working properly.
Optix
User w
User w
Posts: 7
Joined: Tue Aug 14, 2018 11:34 pm

Re: ud1 associated, deleted in WP

Post by Optix »

OK, I found some settings that w3 had put in the database and removed them. (I have some experience with mySQL). This allowed me to actually Deactivate and Delete the plugin properly through Wordpress. With that done, I tried installing the plugin again. I activated and went to the settings screen. I put in the phpBB settings as required and then as soon as I clicked SAVE I was dumped out of Wordpress ("You do not have access") and could not log back in. :evil:

Back to manually delete the plugin via FTP and remove the settings from the database again.
Post Reply