Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2009
    Posts
    20
    Plugin Contributions
    0

    Default stock by attibutes ERROR: 1146 Table 'products_with_attributes_stock' doesn't exist

    hi everyone im new to the zencart and the whole web thing so please bare with me. i did search but reading over 400+ pages per thread seemed kinda crazy.
    i have zen1.3.8 with stock by attributes 4.7. so i made my sizes attributes (sm, med, etc..) i added size attribute to 2 of my products. i review the products and they work. the dropdowns are working. when i go back and try to add stock by attribute it gives me this error msg:

    1146 Table 'zen.products_with_attributes_stock' doesn't exist
    in:
    [select * from products_with_attributes_stock where products_id = 1 and stock_attributes="2"]
    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.

    what exactly is the *? im guesing it means the attribute i added to my product.
    ive barely been sleeping since i got zencart. i need to go to zencart rehab. need help fast!!

  2. #2
    Join Date
    Mar 2009
    Posts
    20
    Plugin Contributions
    0

    Default Re: stock by attibutes ERROR: 1146 Table 'products_with_attributes_stock' doesn't exi

    never mind i figured out the problem. im new to the mysql, databases, and all that. so for database illiterate ppl like me copy the text in the notepad and paste in admin>tools>mysql.

  3. #3
    Join Date
    Jul 2009
    Location
    Coffs Harbour, Australia
    Posts
    74
    Plugin Contributions
    0

    Default Re: stock by attibutes ERROR: 1146 Table 'products_with_attributes_stock' doesn't exi

    I've also got this problem.
    The SQL worked fine and the tables have been created. anyone have any idea's?

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: stock by attibutes ERROR: 1146 Table 'products_with_attributes_stock' doesn't exi

    Quote Originally Posted by mpforum View Post
    I've also got this problem.
    Just for clarification, the error message you are getting is stock by attibutes ERROR: 1146 Table 'products_with_attributes_stock' doesn't exist.

    Correct?

    Quote Originally Posted by mpforum View Post
    The SQL worked fine and the tables have been created. anyone have any idea's?
    Yes, I do. Either you are getting a different error message, or your SQL didn't 'work fine' and the tables were not created.

    Simply put, IF the table named products_with_attributes_stock was created and if zencart was looking for that table it WOULD find it because it would exist.

    Soooooo..... if we assume "products_with_attributes_stock" was indeed created the error message that YOU are getting is probably more like stock by attibutes ERROR: 1146 Table 'zen_products_with_attributes_stock' doesn't exist.

    OR, if we assume the error message is correct, then chances are that your table is actually called zen_products_with_attributes_stock rather than simply products_with_attributes_stock.

    Those prefixes are important.

    Cheers
    Rod

  5. #5
    Join Date
    Apr 2010
    Posts
    133
    Plugin Contributions
    0

    Default Re: stock by attibutes ERROR: 1146 Table 'products_with_attributes_stock' doesn't exi

    I'm sorry but I am not following the fix. What exactly do you do to fix this error? I looked as per the above post - "copy the text in the notepad and paste in admin>tools>mysql" but my admin panel doesn't have admin>tools>mysql. It has admin>tools>Install SQL Patches only. This is my error:

    1146 Table 'nohart_zencart.products_with_attributes_stock' doesn't exist
    in:
    [select * from products_with_attributes_stock where products_id="187" order by sort ASC;]
    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.

    Any help would be greatly appreciated.

  6. #6
    Join Date
    Apr 2010
    Posts
    133
    Plugin Contributions
    0

    Default Re: stock by attibutes ERROR: 1146 Table 'products_with_attributes_stock' doesn't exi

    Ok I fixed my problem this way - https://www.zen-cart.com/tutorials/i...hp?article=100 I exported my table from my old database on my server and imported the table into my current database. Error is gone!

 

 

Similar Threads

  1. v139h 1146 Table 'products_with_attributes_stock' doesn't exist
    By G6 Distribution in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 21 Feb 2013, 06:35 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. 1146 Table error zenconfiguration doesn't exist
    By gayelston in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 1 Dec 2007, 10:26 PM
  5. Replies: 2
    Last Post: 31 Aug 2007, 03:34 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR