Page 1 of 1

Please Help - Deprecated: mysql_connect()

Posted: Sat May 07, 2016 3:43 pm
by glennerd
I can't log into my admin - I keep getting this message - can anyone help?
http://www.lilterra.com

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home1/lilterra/public_html/system/database/mysql.php on line 6
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home1/lilterra/public_html/system/database/mysql.php:6) in /home1/lilterra/public_html/system/library/session.php on line 11

Re: Please Help - Deprecated: mysql_connect()

Posted: Sat May 07, 2016 4:02 pm
by cyclops12
check in both your config.php files that you have

Code: Select all

define('DB_DRIVER', 'mysqli');
instead of

Code: Select all

define('DB_DRIVER', 'mysql');

Re: Please Help - Deprecated: mysql_connect()

Posted: Sun May 08, 2016 3:18 am
by glennerd
Hi Cyclops12 - thanks for the responce.
I just change both and my page shut down?
Thanks,
G

Re: Please Help - Deprecated: mysql_connect()

Posted: Sun May 08, 2016 8:10 am
by straightlight
If you notice a blank page afterwards, visit your system/storage/logs/error.txt file. On previous versions, the error log file would be located under system/logs/error.txt. Do you notice any errors from the top associated with the last change?

Re: Please Help - Deprecated: mysql_connect()

Posted: Sun May 08, 2016 2:51 pm
by glennerd
The error log is blank?

Re: Please Help - Deprecated: mysql_connect()

Posted: Tue May 10, 2016 10:27 pm
by MarketInSG
what's your version of OpenCart? Older version of OpenCart doesn't have mysqli ready, so you may have to consider upgrading your opencart store, or do a partial upgrade to update the database connecter.

Simple :)