Page 1 of 1

Error after PHP7 upgrade

Posted: Mon Jul 20, 2020 5:07 pm
by fluid
After upgrading the PHP version on the server from 5.6.40 to 7.3.20 my opencart store is no longer loading and the error log shows as below:

[Mon Jul 20 09:44:22 2020] [warn] [client 0.0.0.0] mod_fcgid: stderr: PHP Warning: "continue 2" targeting switch is equivalent to "break 2". Did you mean to use "continue 3"? in /var/www/vhosts/domain.com/httpdocs/vqmod/vqmod.php on line 591
[Mon Jul 20 09:44:22 2020] [warn] [client 0.0.0.0] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/vhosts/domain.com/httpdocs/system/database/mysql.php:6
[Mon Jul 20 09:44:22 2020] [warn] [client 0.0.0.0] mod_fcgid: stderr: Stack trace:
[Mon Jul 20 09:44:22 2020] [warn] [client 0.0.0.0] mod_fcgid: stderr: #0 /var/www/vhosts/domain.com/httpdocs/vqmod/vqcache/vq2-system_library_db.php(13): DBMySQL->__construct('localhost', 'databasename, 'password', 'table')
[Mon Jul 20 09:44:22 2020] [warn] [client 0.0.0.0] mod_fcgid: stderr: #1 /var/www/vhosts/domain.com/httpdocs/admin/index.php(41): DB->__construct('mysql', 'localhost', 'databasename, 'password', 'table')
[Mon Jul 20 09:44:22 2020] [warn] [client 0.0.0.0] mod_fcgid: stderr: #2 {main}
[Mon Jul 20 09:44:22 2020] [warn] [client 0.0.0.0] mod_fcgid: stderr: thrown in /var/www/vhosts/domain.com/httpdocs/system/database/mysql.php on line 6

Could anyone give me any guidance on the above error and how I can remedy it as I need to update the PHP version on the server in order for me to run another application.

Re: Error after PHP7 upgrade

Posted: Mon Jul 20, 2020 5:28 pm
by johnp
What version of Vqmod are you using? When I upgrade 1.5 to work on PHP7 I change the encryption file and Vqmod to 2.6.4 and all works fine.