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
Author « Topic »  

espinner
Advanced Member

159 Posts

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

Posted - 10/04/2019 :  12:24:27  
I am getting this error when I try to log in to my store "Fatal error: Uncaught Error: Call to undefined function mysql_query() in /home1/tronitec/public_html/vsadmin/inc/incfunctions.php:1794 Stack trace: #0 /home1/tronitec/public_html/vsadmin/inc/incfunctions.php(60): ect_query('SELECT adminEma...') #1 /home1/tronitec/public_html/vsadmin/inc/incloginfunctions.php(21): getadminsettings() #2 /home1/tronitec/public_html/vsadmin/login.php(18): include('/home1/tronitec...') #3 {main} thrown in /home1/tronitec/public_html/vsadmin/inc/incfunctions.php on line 1794"

My theme was just updated a now I have this mystery..... Help

1818charlie
ECT Moderator

United Kingdom
1179 Posts

Posted - 10/04/2019 :  12:32:15  
I would re-run the updater as all files may not have fully uploaded

Steve
Manchester, UK

Using ECT since 2004

Vince
Administrator

42451 Posts

Posted - 10/04/2019 :  13:11:42  
If the mysql_query function is undefined then it is likely your website PHP version has been updated to PHP 7.0. Please see this first post for details about what to do...
https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107737

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

espinner
Advanced Member

159 Posts

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

Posted - 10/04/2019 :  16:18:08  
I changed my db_conn_open.php like the link suggested but now I do not get the error message but just get a blank page. I tried updating my db and I only get a blank page also, any ideas?

Sinbad
ECT Moderator

USA
65936 Posts

Posted - 10/04/2019 :  20:24:10  
Hi I'm seeing No incfunctions.php file on the proddetail page it would appear that the include files in header.php are missing. perhaps you overwrote the changes that were recently done with a older version of the file. Have a look at the troubleshooting section titled No incfunctions.php file here https://www.ecommercetemplates.com/wordpress/wp-troubleshooting.asp Also make sure your vsadmin/includes.php starts as mentioned here https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107737



Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

espinner
Advanced Member

159 Posts

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

Posted - 10/05/2019 :  06:48:56  
I keep getting an error after making the changes when I try to update the header.php. I still can't login to me store ..... Something seems bad.

Sinbad
ECT Moderator

USA
65936 Posts

Posted - 10/05/2019 :  07:32:20  
Hi I see this on the login screen, which would indicate the database connection may have a typo or not set correctly.

// You host should be able to provide you with these settings if you do not know them already

Also when getting an error its a good idea to post the error it helps ECT to pinpoint the problem quicker. Check that you have the opening php tag and the file looks like:

<?php

// You host should be able to provide you with these settings if you do not know them already

$db_username = ""; // Your database login username
$db_password = ""; // Your database login password
$db_name = ""; // The name of the database you wish to use
$db_host = "localhost"; // The address of the database. Often this is localhost, but may be for example db.yoursite.com

//////////////////////////////////////////////////
// Please do not edit anything below this line. //
//////////////////////////////////////////////////

$GLOBALS['ectdatabase'] = new mysqli($db_host, $db_username, $db_password, $db_name);
if(mysqli_connect_error()){
ob_clean();
print '<html><head><title>Database connect error</title></head><body><div style="margin:20px;clear:both">Database Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error() . '</div>';
print('<div style="margin:20px;clear:both">You need to set your database connection in vsadmin/db_conn_open.php</div>');
print '<div style="margin:20px;clear:both">For help setting your database connection please see...<br />';
print '<a href="http://www.ecommercetemplates.com/phphelp/ecommplus/instructions.asp#dbconn" target="_blank">http://www.ecommercetemplates.com/phphelp/ecommplus/instructions.asp#dbconn</a></div>';
print '<div style="margin:20px;clear:both">We also have a support forum here...<br />';
print '<a href="http://www.ecommercetemplates.com/support/" target="_blank">http://www.ecommercetemplates.com/support/</a></div>';
die('</body></html>');
}
?>



Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

espinner
Advanced Member

159 Posts

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

Posted - 10/05/2019 :  08:49:48  
Problem solves.... Thanks
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000