Re: Lost Key Master
As the code stands at the moment, it is a little too easy to lock yourself out. There may be a cleaner solution, but the following worked for me:
Try to login to BBPress with the WP admin. If that fails to give admin access to BBPress, the user mappings were either not set, were set at the wrong stage during integration, or were set such that nothing mapped to the Keymaster.
Backup the database (just in case a bad situation accidentally becomes terminal while you’re trying to fix it).
Using SQL access to the database (eg PhpMyAdmin), open up bb_topicmeta and delete the last few lines with meta_key starting
wp_. That should reset everything, allowing you to get back into BBPress on the old Keymaster account and start again.
I found the order in which the integration settings were applied was critical. Your mileage may vary, but for me that was:
- Edit User role map (ensure Admin is linked to Keymaster), and save.
- Add “wp_” under User database table prefix and save.
- Hit the User role map button again.
- Finally complete the cookie setting and save.