Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 General
 Off topic, News and Updates
 Call to undefined function mysql_query()
Author « Topic »  

stevepope
Starting Member

USA
10 Posts

Pre-sales questions only
(More Details...)

Posted - 12/19/2019 :  04:19:44  
I'm running ECT 7.1.4 and php 7.3 . I'm getting the following error:

PHP Fatal error: Uncaught Error: Call to undefined function mysql_query() in /home2/aftonalp/public_html/vsadmin/inc/languagefile.php:10

The offending line is return(@$GLOBALS['ectdatabase']?$GLOBALS['ectdatabase']->query($ectsql):mysql_query($ectsql));

mysql_query was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. How do I overcome this? Has the code been updated in a later updater? Please advise.

Steve Pope

Vince
Administrator

42756 Posts

Posted - 12/19/2019 :  04:39:53  
Hi Steve
You need to use the new PHP mySQLi connection type and there are details here about how to do that...

https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107737

It's just a bit of copy and paste to your db_conn_open.php

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000