Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34
  1. #1
    Join Date
    Apr 2006
    Posts
    7
    Plugin Contributions
    0

    Default Attribute Error - 1136 Column count

    I am attempting to "Copy to Category" in the Attributes Controller for one product's attributes to an entire category. However, everytime I go to Copy, I am getting the following message:

    1136 Column count doesn't match value count at row 1
    in:
    [insert into products_attributes values (0, '1', '1', '1', '0.0000', '+', '1', '1', '0', '+', '0', '0', '1', 'attributes/apple_1001_thb.jpg', '1', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', '', '', '0.0000', '0', '0.0000', '0', '0')]
    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 have tried copying to just one product with all options (Delete, Upgrade, or Ignore) and the same error occurs. I was able to succeed in this action about 1 1/2 weeks ago doing the same thing, however, all of a sudden today, it is not working. Any info into why this is happening or what I can do to fix it would be greatly appreciated!

    FYI - I am using the latest version of Zen Cart.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,669
    Plugin Contributions
    6

    Default Re: Attribute Error - 1136 Column count

    Did you add any add-ons to your shop that would of altered the table structure?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Apr 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Attribute Error - 1136 Column count

    I only added the wholesale price add-on that allows me to have many different prices only seen by specific people. I don't believe this should affect the attributes, but I guess I could be wrong :)

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,669
    Plugin Contributions
    6

    Default Re: Attribute Error - 1136 Column count

    Compare your current structure of your database with the structure of a clean Zen Cart database and see if you suddenly have new fields and such that could be causing this related to attributes ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #5
    Join Date
    Oct 2005
    Posts
    98
    Plugin Contributions
    0

    Default Re: Attribute Error - 1136 Column count

    I have the same problem and yes there are extra fields

    In products table:
    products_price_w

    In products_attributes table:
    options_values_price_w

    Is there a fix?

    Heather

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,669
    Plugin Contributions
    6

    Default Re: Attribute Error - 1136 Column count

    Any idea what add-on you might have installed on your site?

    Sounds like perhaps it has altered the code as well as the database ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  7. #7
    Join Date
    Oct 2005
    Posts
    98
    Plugin Contributions
    0

    Default Re: Attribute Error - 1136 Column count

    Dual Pricing

    Yes, it did alter the code -- and, incidentally, I'm using 1.2.6d.

    Any ideas?

    Heather

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,669
    Plugin Contributions
    6

    Default Re: Attribute Error - 1136 Column count

    Perhaps check the threads on that add-on and see what has broken on your site ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  9. #9
    Join Date
    Sep 2006
    Location
    Gillette, NJ, USA
    Posts
    35
    Plugin Contributions
    0

    Default Re: Attribute Error - 1136 Column count

    For future reference:

    The problem comes because dual prices/wholesale pricing adds a field to the attributes table.

    admin/includes/functions/general.php

    after line 1914 ish:
    Code:
              '" . $products_copy_from->fields['options_values_price'] . "',
    add:
    Code:
    		  '" . $products_copy_from->fields['options_values_price_w'] . "',
    after line 1943 ish:
    Code:
              options_values_price='" . $products_copy_from->fields['options_values_price'] . "',
    add:
    Code:
    		  options_values_price_w='" . $products_copy_from->fields['options_values_price_w'] . "',

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,669
    Plugin Contributions
    6

    Default Re: Attribute Error - 1136 Column count

    Thanks for posting an update to this issue when using those add-ons ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 
Page 1 of 4 123 ... LastLast

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
  •