Database Error When Trying To Connect

elawrenc01
User ww
User ww
Posts: 43
Joined: Thu Feb 16, 2017 11:59 am

Database Error When Trying To Connect

Post 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?
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Database Error When Trying To Connect

Post 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!
elawrenc01
User ww
User ww
Posts: 43
Joined: Thu Feb 16, 2017 11:59 am

Re: Database Error When Trying To Connect

Post by elawrenc01 »

I verified that the path is correct. Is there certain permissions that need to be applied to config.php?
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Database Error When Trying To Connect

Post 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?
elawrenc01
User ww
User ww
Posts: 43
Joined: Thu Feb 16, 2017 11:59 am

Re: Database Error When Trying To Connect

Post 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
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Database Error When Trying To Connect

Post by axew3 »

it is very strange, still in trouble?
Post Reply