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
 Fatal error: Uncaught Error:
Author « Topic »  

Wendi
Advanced Member

USA
164 Posts

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

Posted - 02/26/2018 :  08:17:22  
Fatal error: Uncaught Error: Call to undefined function mysql_query() in /*****removed***/createdb.php:2123 Stack trace: #0 {main} thrown in /***removed***/createdb.php on line 2123

I am having a huge mess with my website. I tried to update to 6.7.4 and didn't realize that my host php was only on 5.3. I also didn't create a backup of my database. So now I'm stuck. My host has plans to upgrade but no date. I then decided to try to move my site to my Hostgator hosting account. I moved all my files and tried to do an export/import of database and that is not working. Even HG support can't import it. I wanted to try to just create the basic database from scratch using createdb.php and I am getting the above error! I just don't know what to do now! Can someone PLEASE help me? :(



Thanks,
Wendi

P.S. Not sure why it's saying pre-sales. I just bought year updater 2 days ago.

Edited by - Wendi on 02/26/2018 09:55:30

Andy
ECT Moderator

95440 Posts

Posted - 02/26/2018 :  08:20:34  
Hi Wendi

First of all do you know what version of PHP Hostgator is running?

Do you know if your original host makes regular database back ups?

Andy

Please feel free to review / rate our software

Wendi
Advanced Member

USA
164 Posts

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

Posted - 02/26/2018 :  08:29:50  
Hi Andy,

Thank you for responding quickly. My host does do db backups every night at 2am and I didn't know this until you just asked! So it's probably too late now (this started on Saturday morning). I did just open a ticket though.

On HG I can choose any php version up to 7.1. The error on the createdb.php page says this: When reporting support issues, please quote your PHP version number which is 7.1.4

Thanks,
Wendi

Wendi
Advanced Member

USA
164 Posts

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

Posted - 02/26/2018 :  08:43:26  
when exporting database using phpmyadmin, these are the default checkboxes. Do I need to change/check/uncheck any of them?

[img]https://www.dropbox.com/s/s0fem3bibwmok31/sql.JPG?dl=0[/img]

https://www.dropbox.com/s/s0fem3bibwmok31/sql.JPG?dl=0

Thanks,
Wendi

Edited by - Wendi on 02/26/2018 08:43:46

Andy
ECT Moderator

95440 Posts

Posted - 02/26/2018 :  08:51:59  
You shouldn't have to make any changes to the defaults.

You may need to change the syntax in db_conn_open.php (and possibly includes.php) when using PHP 7 or above - take a look here https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107737

Andy

Please feel free to review / rate our software

Wendi
Advanced Member

USA
164 Posts

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

Posted - 02/26/2018 :  08:56:19  
I have already made the changes to db_conn_open.php and checked includes.php.

Host said that backups are every 24 hours. So I guess I'm too late for a Friday night/Saturday morning version of the database. How do I know for sure? Any new tables or anything that I can check?

Andy
ECT Moderator

95440 Posts

Posted - 02/26/2018 :  09:27:59  
If you look in the admin table you should see the version number 6.x.x

Andy

Please feel free to review / rate our software

Wendi
Advanced Member

USA
164 Posts

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

Posted - 02/26/2018 :  09:55:08  
yep it's still 6.7.4

Andy
ECT Moderator

95440 Posts

Posted - 02/26/2018 :  10:11:38  
That should be the version before the update then shouldn't it?

Andy

Please feel free to review / rate our software

Wendi
Advanced Member

USA
164 Posts

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

Posted - 02/26/2018 :  10:29:58  
No I think I was on 6.7.0 beta before updating. That worked on the php 5.3.

Thanks,
Wendi

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 02/26/2018 :  11:30:11  
Hi Wendi, let me see if I get this.

1. updatestore.php (6.7.4)ran on the old host but the scripts were not compatible.
2. On hostgator your trying to run createdb using php 7 but the script is not compatible - Open createdb at the top around line 7 what is the version number?
3. the import into hostgator is failing - could be the database is not created with the proper permissions.



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

Wendi
Advanced Member

USA
164 Posts

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

Posted - 02/26/2018 :  16:01:30  
My website is working again! After many tries, I finally got my database to export then import and got all the other errors fixed.

Thanks,
Wendi

Andy
ECT Moderator

95440 Posts

Posted - 02/27/2018 :  00:09:22  
Glad that's sorted and thanks for letting us know, Wendi.

Andy

Please feel free to review / rate our software
  « 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