Page 1 of 2

Database Error When Trying To Connect

Posted: Wed Dec 30, 2020 7:21 pm
by elawrenc01
Hi!

I loaded the plugin and followed the instructions. I first tried to link to my config.php but I am getting this error:

WARNING
Error establishing a phpBB database connection.
The w3all integration plugin will not work properly (widgets, shortcodes).
Integration Running as USERS NOT LINKED until this message display.
Check db connection values into linked phpBB config.php file.


I am NOT using user integration at this point. I am just using the widget for the latest forum posts.
The cookies look to be set correctly and the database credential are correct since my board is live without any issues.

I also trying to use the wp-content/plugins/wp-w3all-config/config.php but I received the same error.

I am on the latest version of wordpress, 5.6.
I am running 2.3.9 of the plugin.

Anything I am missing?

Re: Database Error When Trying To Connect

Posted: Wed Dec 30, 2020 8:45 pm
by axew3
Hello!
If the message above display, it mean that the phpBB config.php file has not been found, sure it is correctly configured the path to it, and if it is the custom config.php, it is correctly containing same values like the phpBB config.php that you want to link?
Just open the root phpBB config.php file, and copy values of it, into the custom config.php

the new plugin version 2.4.0 by email is coming in few hours!

Re: Database Error When Trying To Connect

Posted: Thu Dec 31, 2020 3:30 pm
by elawrenc01
I verified that the path is correct. Is there certain permissions that need to be applied to config.php?

Re: Database Error When Trying To Connect

Posted: Fri Jan 01, 2021 8:08 pm
by axew3
you have reason, the error come out due to something wrong on config.php values, or the connection to the database require more parameters than

Code: Select all

$w3all_dbhost = 'theHostAddress';
$w3all_dbport = 'have you set the port if it is required param?';
$w3all_dbname = 'subdomain-phpbb3';
$w3all_dbuser = 'myuser';
$w3all_dbpasswd = 'mypass';
$w3all_table_prefix = 'phpbb_db_prefix';
that's strange, but maybe possible?

Re: Database Error When Trying To Connect

Posted: Wed Jan 06, 2021 9:24 pm
by elawrenc01
I have this:


$w3all_dbms = 'phpbb\\db\\driver\\mysqli'; // maybe required
$w3all_dbhost = 'localhost';
$w3all_dbport = '3306'; // maybe required
$w3all_dbname = 'xxxxxx';
$w3all_dbuser = 'xxxxxx';
$w3all_dbpasswd = 'xxxxxx';
$w3all_table_prefix = 'phpbb3_';
$w3all_phpbb_adm_relative_path = 'adm/'; // maybe required
$w3all_acm_type = 'phpbb\\cache\\driver\\file'; // maybe required

@define('WP_W3ALL_MANUAL_CONFIG', true);
// NOTE
// you can comment out the following line, and force plugin deactivation
@define('PHPBB_INSTALLED', true);

I copied the info from the config.php

Re: Database Error When Trying To Connect

Posted: Fri Jan 08, 2021 10:51 am
by axew3
it is very strange, still in trouble?