Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    red flag 1146 Table error zenconfiguration doesn't exist

    Hello,
    Can anyone help please?
    I've been tearing my hair out for the last few days, & that's just my latest batch of attempt to get this sorted!
    I am with United Hostings on a Linux server.
    I was having the same problems when I tried all of this on my computer using Wamp5;
    I load in Zen Cart 1.3.02, because that is what I used when I first created my shop.
    I have no problem with this at all.
    I check the shop front & the admin & all seems to be working just fine.
    Then, as I read in lots of different help files, I drop the tables of the database, import a copy of my current (shop) db then copy over a back-up of my shop files.
    I took out the 2 configure.php files first, then put them back after the upload.
    I checked the sessions.php file had the changes specified in another help file & I made sure the install file was renamed.

    I tried to go to my shop & got this:
    1146 Table 'artyfactsforcrafts_com_-_zencartnew.zenconfiguration' doesn't exist
    in:
    [select configuration_key as cfgkey, configuration_value as cfgvalue from zenconfiguration]

    I tried to go to my admin & got this:
    1146 Table 'artyfactsforcrafts_com_-_zencartnew.zenconfiguration' doesn't exist
    in:
    [select configuration_key as cfgkey, configuration_value as cfgvalue from zenconfiguration]
    Can anyone help please?
    It seems to say that there's a table missing in the db, but shouldn't ther be an underscore as in zen_configuration.

    I have checked the admin/includes/configure.php file & all my details have been updated, so the entries that read, for example, define('DIR_WS_ADMIN', '/zen-cart/admin/'); now reads define('DIR_WS_ADMIN', '/zen-cart-new/admin/');
    Ths version of Zen Cart is called zec-cart-new, with the db named zencartnew.
    Please help, but please keep in mind I have virtually no experience with coding of any kind - took my a whole day to work out how to change my password, or give me a password, using mysql!
    Thanks very much, in advance, for any help you can give.
    Regards
    ###### Elston
    Artyfactsforcrafts.com
    Last edited by gayelston; 1 Dec 2007 at 09:38 PM. Reason: missing information

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 1146 Table error zenconfiguration doesn't exist

    In your /includes/configure.php file, what are the settings for these:

    define('DB_PREFIX', '');
    define('DB_SERVER', '');
    define('DB_SERVER_USERNAME', '');
    define('DB_SERVER_PASSWORD', *********** DONT POST THIS ONE ******
    define('DB_DATABASE', '');
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default Re: 1146 Table error zenconfiguration doesn't exist

    Hi,
    Thank very much for you VERY speedy reply!
    Thjese are the details copied & pasted straight from the file:
    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen');
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
    define('DB_SERVER_USERNAME', 'kelston');
    define('DB_SERVER_PASSWORD', '');
    define('DB_DATABASE', 'artyfactsforcrafts_com_-_zencartnew');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'
    As suggested, I have removed the password.
    Thanks again
    Regards
    ######

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 1146 Table error zenconfiguration doesn't exist

    Great.

    I should have mentioned part two ... can you look up the same settings from your "old" site? ... and post them.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default Re: 1146 Table error zenconfiguration doesn't exist

    You ARE quick!
    This is the same section copied & pasted from the live site files:
    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', '127.0.0.1'); // eg, localhost - should not be empty
    define('DB_SERVER_USERNAME', 'kelston');
    define('DB_SERVER_PASSWORD', '');
    define('DB_DATABASE', 'artyfactsforcrafts_com_-_zencart');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'
    Hope that helps
    Regards
    ######
    Last edited by gayelston; 1 Dec 2007 at 10:01 PM. Reason: missing observation

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 1146 Table error zenconfiguration doesn't exist

    Okay.

    Did you notice that your DB_PREFIX is "zen" for one site and "zen_" for the other?

    So, your imported data will have tables named like "zen_admin", "zen_configuration", etc

    But, since your new site is set up for "zen", it's looking for "zenadmin", "zenconfiguration", etc.

    Thus, there's a mismatch.

    What to do?
    a) drop all the tables in your NEW database
    b) edit your NEW configure.php files and change DB_PREFIX to "zen_" ... which matches your old site .... because you'll be importing data that has tables matching the names of your old site
    c) import your old site data into the new database

    Things should be okay now.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default Re: 1146 Table error zenconfiguration doesn't exist

    Thank you!
    Actually, it didn't work fully at first:
    I changed includes/configure.php & that let me see the front end, but not the admin.
    So I checked the admin/includes/configure.php & found the same fault.
    I changed that & now everything is perfect.
    All I have to do now is go through it all again with the new version!
    You may see me back on a similar subject soon but, until then, many many thanks.
    You really have saved my sanity, because I checked all the lines on this file & could have sworn I'd done it all right!
    Thanks again
    Regards
    ######
    Artyfactsforcrafts.com

 

 

Similar Threads

  1. v139h SQL Error 1146 Table TABLE_CUSTOMERS_ADMIN_NOTES doesn't exist
    By utefan in forum General Questions
    Replies: 4
    Last Post: 3 Mar 2016, 07:45 PM
  2. v151 upgrading error 1146 table doesn't exist
    By scottrdj in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 31 Dec 2012, 03:05 PM
  3. MYSQL error #1146 table doesn't exist - help!
    By TheKenster in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 20 Jan 2012, 01:48 PM
  4. Upgrade Error: 1146 Table 'zc1.TABLE_SAGE_PAY_FORM' doesn't exist
    By cchairnbeauty in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 11 Sep 2010, 11:27 AM
  5. Replies: 2
    Last Post: 31 Aug 2007, 03:34 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