Page 1 of 1
Fresh install v3.0.2.0
Posted: Wed Jan 17, 2018 3:41 am
by EV-soft
Installation conditions: PHP version 7.0x
When I get to Step 3, I get the following messages:
Warning: mysqli::__construct() [mysqli.construct]: (HY000/2002): Connection refused in /var/www/xxx.com/public_html/OpenCart/system/library/db/mysqli.php on line 7
Warning: DB\MySQLi::__construct() [db\mysqli.construct]: Couldn't fetch mysqli in /var/www/xxx.com/public_html/OpenCart/system/library/db/mysqli.php on line 10
Warning: DB\MySQLi::__construct() [db\mysqli.construct]: Couldn't fetch mysqli in /var/www/xxx.com/public_html/OpenCart/system/library/db/mysqli.php on line 10
Notice: Undefined variable: mysql in /var/www/xxx.com/public_html/OpenCart/install/controller/install/step_3.php on line 280
Notice: Trying to get property of non-object in /var/www/xxx.com/public_html/OpenCart/install/controller/install/step_3.php on line 280
What can my problem be like?
Re: Fresh install v3.0.2.0
Posted: Thu Jan 18, 2018 5:53 am
by straightlight
EV-soft wrote: ↑Wed Jan 17, 2018 3:41 am
Installation conditions: PHP version 7.0x
When I get to Step 3, I get the following messages:
Warning: mysqli::__construct() [mysqli.construct]: (HY000/2002): Connection refused in /var/www/xxx.com/public_html/OpenCart/system/library/db/mysqli.php on line 7
Warning: DB\MySQLi::__construct() [db\mysqli.construct]: Couldn't fetch mysqli in /var/www/xxx.com/public_html/OpenCart/system/library/db/mysqli.php on line 10
Warning: DB\MySQLi::__construct() [db\mysqli.construct]: Couldn't fetch mysqli in /var/www/xxx.com/public_html/OpenCart/system/library/db/mysqli.php on line 10
Notice: Undefined variable: mysql in /var/www/xxx.com/public_html/OpenCart/install/controller/install/step_3.php on line 280
Notice: Trying to get property of non-object in /var/www/xxx.com/public_html/OpenCart/install/controller/install/step_3.php on line 280
What can my problem be like?
Ensure to have set the proper credentials in your config.php and admin/config.php files. If you do not know your database credentials, contact your host and / or check your host database console.
Re: Fresh install v3.0.2.0
Posted: Thu Jan 18, 2018 7:49 pm
by EV-soft
The 2 config files are empty because the error occurs before they are initiated!
I have double checked both the password and the admin name
I have also tried installation on 2 different servers.
I suspect mysql should be mysqli in the message:
Notice: Undefined variable: mysql
Is it for sure it's not a bug?
Re: Fresh install v3.0.2.0
Posted: Fri Jan 19, 2018 7:31 am
by straightlight
The 2 config files are empty
Both config.php files should not be empty.
I suspect mysql should be mysqli in the message:
Notice: Undefined variable: mysql
Correct. In both config.php files, your DB_DRIVER should be set to: mysqli
Re: Fresh install v3.0.2.0
Posted: Fri Jan 19, 2018 4:40 pm
by AlexChanHK
Hi EV-soft,
Firstly, we suggest to install the Opencart system in hosting area with PHP5.6, please try to change it.
Second, if you download the system from official way, it should not be a bug.
However, the message show that the database access is incorrect, we think you should double check.
Otherwise, please send a support ticket in the contact us form of Opencart.com, we will help you in there.
Hi straightlight,
We think you have a big misunderstand, EV-soft's config.php are empty should be due he/she even did not install yet.

Re: Fresh install v3.0.2.0
Posted: Fri Jan 19, 2018 6:47 pm
by EV-soft
Thank you for clarification.
PHP5.6 is not possible. Active Support for this version has ended.
My download is retrieved here:
https://www.opencart.com/index.php?rout ... load_id=55
I give up for the moment.
Maybe I try again when an update has been published.
Re: Fresh install v3.0.2.0
Posted: Sat Jan 20, 2018 6:05 am
by straightlight
If PHP v5.6 support has ended, use PHP 7.2 or above. It has been proved to work by other posts on the forum.