Page 1 of 1

MYSQL connect issue with easyapache 4 and php 5.4

Posted: Sat Feb 02, 2019 10:11 pm
by world-of-satellite
Running OC 1.5.3.1/

Tried upgrading dedicated server to easyapache4 and php5.4.

Got the error below:
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/XXXXX/public_html/system/database/mysql.php on line 6

Tried theres to fixes:
https://www.opencart.com/index.php?rout ... _license=0

Also this:
https://www.opencart.com/index.php?rout ... _license=0

Fixes clear the error, but I'm no longer able to access admin panel.

Any ideas anyone? Or is it time to upgrade? Could do without the hassle of upgrading as have a custom theme and an number of changes.

Re: MYSQL connect issue with easyapache 4 and php 5.4

Posted: Sun Feb 03, 2019 8:35 am
by IP_CAM
One more would exist, to try, but you have to make sure, to have Mysqli
configured in both config.php files.
And if you plan to update, better only up to the latest 1.5 Version, or you
will loose every Mod, and have to get the DB reworked, to still function.
Check my Github Repository for the latest OC v.1.5.6.5_rc Version.
Ernie

Code: Select all

// DB
define('DB_DRIVER', 'mysqli');
https://www.opencart.com/index.php?rout ... n_id=24413