Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / lost all my countries!

lost all my countries!

Locked

Views: 1,359

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Jul 2008, 5:47 AM
#1
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

lost all my countries!

Hi,
I've posted before, last week, but got no responses and getting desperate now.
I was deleting some countries from the list (Locations/Taxes > Countries) when I got a blue screen. After rebooting and logging back into the same admin area I realised all my countries had gone. There isn't even an "Add Country" button there. There's an error message that says:

1030 Got error 134 from storage engine
in:
[select countries_id, countries_name, countries_iso_code_2, countries_iso_code_3, address_format_id from zen_countries order by countries_name limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I can't go back as I had to reboot.

When I did a test order and went to "Estimate Shipping Cost" and "Please Choose your Country", all the countries I hadn't deleted are still there. But I need to delete some more, and I can't if they're not listed in the Admin. I also need to add "Australia" back in, as I accidentally deleted it too.
I'm running this locally on my machine at the moment.
Help?

15 Jul 2008, 8:56 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: lost all my countries!

Could be a corrupt database. Try doing a repair first.

You are going to have to check all the tables relating to countries and zones, and compare them with a copy of the original SQL file used to create the database. Then you may have to drop the corrupted tables and then re-create them. Then you will have to insert the data.

The SQL you need is probably all in the original mysql_zencart.sql file that is in the SQL folder, inside the INSTALL folder, of an unzipped copy of ZC.

If you have phpMyAdmin, the process is relatively straight forward.

16 Jul 2008, 8:26 AM
#3
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: lost all my countries!

fairestcape, I have phpMyAdmin but nothing to do with mySQL is straightforward to me. Do you mean there's a file in an unzipped copy (I have one) that I can simply use to over-write the corrupted file? And can anyone point me at a 'databases for dummies' tutorial?

16 Jul 2008, 7:42 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: lost all my countries!

If you haven't added too many products, I'd start from scratch and re-install.

16 Jul 2008, 8:20 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: lost all my countries!

stevesh:

If you haven't added too many products, I'd start from scratch and re-install.

Yes... I was going to suggest the same. As you're on a local drive, we cant even ask you for your C-Panel login to help fix the dbase, and I'm afraid I haven't time to give you a crash course on MySQL !

However, keep your existing store and dbase, and install a fresh webshop in a sub directory.

To recover product data, you could try installing EASYPOPULATE on your existing site, then using it to produce a tab-delimited file of all your existing product data.

When your new installation is ready, you can run this file through easypopulate on your new store, and all your product data will appear there in a couple of seconds.

17 Jul 2008, 8:31 AM
#6
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: lost all my countries!

Yes, I agree, best to start again. I will install EasyPopulate, sounds good. Here's hoping I created my template the right way and can just overwrite the files, as that was the most laborious bit.
I'll do it live this time, so I can call the troops in if necessary. Thanks guys.

17 Jul 2008, 1:20 PM
#7
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: lost all my countries!

What you could do, is once you have created your NEW site (with its NEW database), you could go back to your ORIGINAL site, and edit the configure.php files to point to the NEW database. (Remember then that you will have TWO templates (sites) pointing to the same database, so dbase changes in the OLD shop will also show in the NEW shop.)

Then you may have to run fix_cache_key.php in the NEW site in order to reset the cache.

This file is available in the downloads section.