Page 1 of 1

Deprecated: mysql_connect()

Posted: Tue May 10, 2016 9:56 pm
by victoriabarker
Hi

My ISP has just upgraded php on the shared server we use and am now not able to login to the store as admin, I do have FTP access however (phew)

OC Version - 1.5.6

++

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/earworms/public_html/earwormslearning.com/store/vqmod/vqcache/vq2-system_startup.php on line 102

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/earworms/public_html/earwormslearning.com/store/vqmod/vqcache/vq2-system_startup.php:102) in /home/earworms/public_html/earwormslearning.com/store/vqmod/vqcache/vq2-system_startup.php on line 120

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/earworms/public_html/earwormslearning.com/store/vqmod/vqcache/vq2-system_startup.php:102) in /home/earworms/public_html/earwormslearning.com/store/vqmod/vqcache/vq2-system_startup.php on line 120

Parse error: syntax error, unexpected 'else' (T_ELSE), expecting function (T_FUNCTION) in /home/earworms/public_html/earwormslearning.com/store/system/database/mysqli.php on line 54

++

as per advice I've read here, I've changed in both config.php and admin/config.php the line to read
define('DB_DRIVER', 'mysqli');

Any advice would be much appreciated right now.

I've already told the store owner - on many occasions - to upgrade but advice falls on deaf ears, what can ya do

Re: Deprecated: mysql_connect()

Posted: Wed May 11, 2016 3:50 am
by victorj
oc 1.5.6 support mysqli so it should work.
try to clear vqmod cache first, if error remains, find the vqmod thats creating the error and adapt to mysqli

Re: Deprecated: mysql_connect()

Posted: Wed May 11, 2016 4:07 am
by victoriabarker
Cool - as I'm not able to log in, is it possible to clear the vqmod cache via FTP ?

Thanks

Re: Deprecated: mysql_connect()

Posted: Wed May 11, 2016 4:10 am
by victorj
Yes, go to root of website, find folder vqmod, and open it go to folder vqcache.
delete all files here.

Re: Deprecated: mysql_connect()

Posted: Wed May 11, 2016 5:09 am
by victorj
Just had a look at site, you have to upgrade vqmod as well to latest vesion.