Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Location
    Cape Cod, Massachusetts, USA
    Posts
    26
    Plugin Contributions
    0

    database error 1146, table doesn't exist

    Hello,

    Upgraded to 1.3.9h, using MySQL 5. Yes, I did backups of both the files and the database (and I'm really glad I did). Now this is a customized cart, so I knew that some of the files might need a bit of messing around with.

    Well, upgrade was complete and everything seemed to be O.K. until I ran a test order, and received a SQL syntax error. Oh, bummer. So, I unpacked my backups and did a whole lot of comparing files. Got everything back in, ran my test order, and now received:

    1146 Table 'table_table.TABLE_IMAGES' doesn't exist
    in:
    [SELECT * FROM TABLE_IMAGES WHERE customers_id='' AND orders_id='']

    I looked in PHPMyAdmin, and the table is there. This site is not live yet, so I don't think it has been hacked.

    Any suggestions out there? I sure would appreciate it!
    "It is better to be thought a fool, than to speak and remove all doubt."
    ~ Mark Twain

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: 1146, table doesn't exist

    This is normally

    account_name_prefix.table_name

    Or

    account_name_prefix.addresses

    Yours is table_table.TABLE_IMAGES

    Is that actually correct?

    I do not recall a table named images in ZenCart
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2008
    Location
    Cape Cod, Massachusetts, USA
    Posts
    26
    Plugin Contributions
    0

    Default Re: 1146, table doesn't exist

    Yes, you are correct. When the cart was customized, a table was created in the database called images.

    Specifically, the error is:

    1146 Table 'brenda_tysbook.TABLE_IMAGES' doesn't exist
    in:
    [SELECT * FROM TABLE_IMAGES WHERE customers_id='' AND orders_id='']

    Apologies for any confusion.
    "It is better to be thought a fool, than to speak and remove all doubt."
    ~ Mark Twain

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

    Default Re: 1146, table doesn't exist

    You're missing the file that defines the value for TABLE_IMAGES
    .

    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
    Apr 2008
    Location
    Cape Cod, Massachusetts, USA
    Posts
    26
    Plugin Contributions
    0

    Default [SOLVED] Re: 1146, table doesn't exist

    Dr. Byte totally ROCKS! Found the file, and added the definition. A hundred million thank yous!
    "It is better to be thought a fool, than to speak and remove all doubt."
    ~ Mark Twain

 

 

Similar Threads

  1. 1146 Table doesn't exist
    By Bryan G in forum Addon Payment Modules
    Replies: 9
    Last Post: 30 Jul 2011, 03:06 PM
  2. 1146 Table doesnīt exist...
    By ppsoyal in forum General Questions
    Replies: 0
    Last Post: 29 Jan 2011, 10:37 PM
  3. 1146 Table 'XXXX.zen_configuration' doesn't exist in: [db_cache table]
    By CheapStairParts in forum General Questions
    Replies: 1
    Last Post: 4 Jan 2011, 12:39 AM
  4. 1146 Table Doesn't Exist
    By pazdar in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Jan 2008, 07:44 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