keat Posted July 13, 2017 Share Posted July 13, 2017 (edited) In my quest for performance i updated one of my test sites to PHP7.1. I take it CC doesn't work with 7.1 ? Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/mydomain/public_html/classes/db/mysql.class.php:36 Stack trace: #0 /home/mydomain/public_html/classes/db/mysql.class.php(63): Database->__construct(Array) #1 /home/mydomain/public_html/controllers/controller.index.inc.php(20): Database::getInstance(Array) #2 /home/mydomain/public_html/index.php(20): include('/home/crimpterm...') #3 {main} thrown in /home/mydomain/public_html/classes/db/mysql.class.php on line 36 Edited July 13, 2017 by keat Quote Link to comment Share on other sites More sharing options...
Noodleman Posted July 13, 2017 Share Posted July 13, 2017 (edited) you want to use mysqli... mysql was depreciated and removed.. it's olddddddddddddddd.. Make sure your server has this enabled also, ioncube doesn't support php 7.1 yet, so if you have encoded modules they won't work Edited July 13, 2017 by Noodleman Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted July 13, 2017 Share Posted July 13, 2017 Yes it should be fine with PHP 7.1 and mysqli. Quote Link to comment Share on other sites More sharing options...
keat Posted July 13, 2017 Author Share Posted July 13, 2017 (edited) According to my Apache/PHP config and looking at PHP info on one of my sites, it appears that I have MYSQLI installed. Info from CubeCart: mysqlnd 5.0.12-dev - 20150407 - $Id: xxxxxxxxxxxx $ The site is working with PHP7.0 but not with 7.1, however, having said that, I know that one of Ian's mods uses IonCube, so maybe I can't go down this route just yet anyway. Edited July 13, 2017 by keat Quote Link to comment Share on other sites More sharing options...
keat Posted July 13, 2017 Author Share Posted July 13, 2017 I took a look in Cpanel, and I'm running MYSQL5.5 which i've now updated to 5.6. can I update to MariaDB 10.0 Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted July 13, 2017 Share Posted July 13, 2017 The demo store used Maria DB 10.0. It will be fine. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.