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
 Technical
 PHP (Unix / Linux / Apache) versions
 PHP Error after doing ECT Upgrade
Author « Topic »  

whfh99
Advanced Member

256 Posts

Posted - 11/12/2024 :  04:45:22  
I just did an upgrade to the latest version of ECT for genematras.com and now seeing this error when trying to get back in the admin area:

Fatal error: Uncaught Error: Call to undefined function mysql_query() in /home/genematr/public_html/vsadmin/inc/incfunctions.php:1917 Stack trace: #0 /home/genematr/public_html/vsadmin/inc/incfunctions.php(114): ect_query('SELECT adminLog...') #1 /home/genematr/public_html/vsadmin/inc/incloginfunctions.php(21): getadminsettings() #2 /home/genematr/public_html/vsadmin/admin.php(15): include('/home/genematr/...') #3 {main} thrown in /home/genematr/public_html/vsadmin/inc/incfunctions.php on line 1917

Any suggestions on what might be causing this?

Also, there is no reason the latest version of ECT won't run under PHP 8.x, correct?

Link

whfh99
Advanced Member

256 Posts

Posted - 11/12/2024 :  05:33:38  
In testing further, the site loads under PHP 5.6 but attempts to upgrade to anything higher causes an error. Even going up to 7.0 yields this:

Fatal error: Uncaught Error: Call to undefined function mysql_query() in /home/genematr/public_html/vsadmin/inc/incfunctions.php:1917 Stack trace: #0 /home/genematr/public_html/vsadmin/inc/incfunctions.php(114): ect_query('SELECT adminLog...') #1 /home/genematr/public_html/vsadmin/inc/incloginfunctions.php(21): getadminsettings() #2 /home/genematr/public_html/vsadmin/admin.php(15): include('/home/genematr/...') #3 {main} thrown in /home/genematr/public_html/vsadmin/inc/incfunctions.php on line 1917

Vince
Administrator

42773 Posts

Posted - 11/12/2024 :  06:03:02  
Hi Link
There are a few changes you need to perform for PHP 7 and above and these are listed here...

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

Once these things are taken care of the site should work with all supported versions of PHP.

Vince

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

whfh99
Advanced Member

256 Posts

Posted - 11/12/2024 :  06:41:33  
Thanks Vince. That did the trick. It was the db_conn_open.php file that needed to be updated.

So site is back up. I've got a 3rd party plugin on the home page tossing a new error:

Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in /home/genematr/public_html/dynamicdisplay.php:38 Stack trace: #0 /home/genematr/public_html/index.php(73): include() #1 {main} thrown in /home/genematr/public_html/dynamicdisplay.php on line 38

Any thoughts on how to tweak this one?

Link

Vince
Administrator

42773 Posts

Posted - 11/12/2024 :  09:23:23  
Hi Link
I think the database connections there would need to be updated to use mySQLi and is it possible that those who you get the script from have an updated version? If not, we can be hired by the hour and this doesn't sound like a job that would take more than one. Each hour is one of these:
https://www.ecommercetemplates.com/Custom-Modified-Code

Vince

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

whfh99
Advanced Member

256 Posts

Posted - 11/30/2024 :  06:10:52  
I'm moving another ECT web site and having some issues.

https://mountainwanderer.com/

I did update the first and last lines for the db_connect file and that first the first error message but I am not able to get in to the admin area or see any of the content pages.

Chrome shows a Server 500 error? That's not a permissions issue, is it?

Link

Vince
Administrator

42773 Posts

Posted - 11/30/2024 :  11:08:38  
Hi Link
Can you get an idea from the server logs what the actual error message is? That would normally give a clue to the problem.
Also look in the includes.php file that the opening and closing tags are <?php . . . ?> and not <script>
And make sure the database connection type has been changed to mySQLi

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