Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default 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?

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

    Default 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.

  3. #3
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: lost all my countries!

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

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: lost all my countries!

    Quote Originally Posted by stevesh View Post
    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.

  6. #6
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    436
    Plugin Contributions
    0

    Default 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.

  7. #7
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. Removed all countries except uk, gc doesnt work!!
    By Xbox Memberships in forum General Questions
    Replies: 16
    Last Post: 6 Mar 2012, 02:02 PM
  2. exclude one zone from all countries
    By zvenson in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 27 Feb 2011, 03:44 PM
  3. All Countries In Zone Definitions
    By dwessell in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 6 Jul 2009, 05:06 PM
  4. Tax rate for all countries
    By lancaster in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 20 Aug 2008, 03:19 PM
  5. Deleting all countries?
    By blueparukia in forum General Questions
    Replies: 9
    Last Post: 11 Aug 2007, 06:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg