No Panic Instructions

WP_w3all phpBB code with others external plugins
User avatar
axew3
w3all User
w3all User
Posts: 1676
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

No Panic Instructions

Post by axew3 » Thu Apr 05, 2018 1:14 pm

Force deactivation of the plugin, remove it safely any time ...
see more below ... Have you read all Help Install Page? (I know it's in bad Eng!)

This is just a WordPress plugin. It do do not change nothing into phpBB, nor in WordPress, and login users using cookies.
It reside, after the installation, into folder
/wp-content/plugins/wp-w3all-phpbb-integration

Cookie setting in phpBB is the most important thing to get the integration work fine and to not experience any problem on WP side while logging in (loop onlogin), so check this page to setup correctly the cookie setting, and resolve any trouble in any case:
https://www.axew3.com/w3/2016/02/config ... ll-domain/

If you're installing with WP UID1 (default install admin in WP), then the phpBB UID2 (default install admin in phpBB) need to exist also. Or use another WP admin (that need to have a correspondent user in phpBB, an user with the same username and email in phpBB) and exclude/not use the WP admin UID1 (follow inline hint about this into the WP_w3all admin config page).
The path setting to a valid phpBB config.php file is the other important setting. This will effectively activate the plugin.
If you experience a loop on login via WP side, and cookie setting is ok in phpBB to be available over all the domain (and you've modify this setting on phpBB ACP) then clean up cookies into your browser and re-login (using phpBB password if for this user differ by WP password).

If some trouble, remember that
You can force the deactivation of the plugin and so remove it clean and safe at any time
normally via WP admin -> Plugins -> Installed plugins page.
But also
1) by opening the file
/wp-content/plugins/wp-w3all-phpbb-integration/wp_w3all.php
search for these two lines +- in top of file:

Code: Select all

// FORCE Deactivation WP_w3all plugin //
// $w3deactivate_wp_w3all_plugin = 'true';
remove two chars // by the second line, change into:

Code: Select all

// FORCE Deactivation WP_w3all plugin //
$w3deactivate_wp_w3all_plugin = 'true';
use this first solution for any trouble. Done this, access WP admin and remove the plugin safely (may you'll have to reset your WP password)

2) by setting wrong or removing the path to a valid phpBB custom or default config.php file into WP_w3all admin config page
If you use the custom config.php file you could also:
3) rename the linked custom phpBB config.php file, so the plugin will not find out the config.php file at specified path and become deactivated.
4) or open the config.php file and changing on it the line

Code: Select all

@define('PHPBB_INSTALLED', true);
into

Code: Select all

//@define('PHPBB_INSTALLED', true);
The second suggested way at point 2) is the best way for any case.

"I can't login WordPress side after i disabled the plugin!"

YES! Remember that this plugin hash passwords for users in the phpBB way: once you disable the plugin, may (may not) the user will result with a password hash that WordPress can't recognize without the WP_w3all plugin (or some other line of code that will continue to check the hash in the proper way).

Just reset your password.