Forums / Setting Up Categories, Products, Attributes / Attribute Error - 1136 Column count

Attribute Error - 1136 Column count

Locked

Started by laurelee on 11 May 2006, 12:54 AM · Views: 12,302

Results 21 to 34 of 34
This thread is locked. New replies are disabled.
19 Jun 2007, 8:46 PM
#21
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Attribute Error - 1136 Column count

Okay, so I spoke too soon. I'm still getting

Warning: Missing argument 1 for fckeditor() in fckeditor.php on line **44

**This appears right above the editor when I am adding/modifying products using fckeditor and I am unable to make any changes to the product with fckeditor.

I modified my general.php to reflect both:

'" . $products_copy_from->fields['options_values_price'] . "',
'" . $products_copy_from->fields['options_values_price_w'] . "',

and

options_values_price='" . $products_copy_from->fields['options_values_price'] . "',
options_values_price_w='" . $products_copy_from->fields['options_values_price_w'] . "',

What am I doing wrong?

Canemasters
www.canemasters.com

19 Jun 2007, 10:07 PM
#22
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Attribute Error - 1136 Column count

Okay, it actually seems that mixing the fckeditor module and the wholesale module creates 2 problems. The problem where it messes with your attributes was fixed for me when I followed the instructions in this post. However, I'm still unable to use fckeditor to make any changes on my products. I'll read some other posts or start another post.

Canemasters
www.canemasters.com

24 Jan 2008, 4:55 PM
#24
agamic avatar

agamic

New Zenner

Join Date:
Apr 2007
Posts:
24
Plugin Contributions:
0

Re: Attribute Error - 1136 Column count

For those suffering with this error when adding attributes to an item and who have followed the various fixes, I discovered that in the admin/attributes_controller.php in or around 255 the value options_values_price_w was missing from the list after adding it I didn't get the error again.

Hope this helps as I have been having an uphill struggle with this and I really want to get it working. Now it is transferring the "retail" price to the cart rather than the w/s price, but I think there is a thread somewhere with that problem.

$db->Execute("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " (products_attributes_id, products_id, options_id, options_values_id, options_values_price, options_values_price_w, price_prefix, products_options_sort_order, product_attribute_is_free, products_attributes_weight, products_attributes_weight_prefix, attributes_display_only, attributes_default, attributes_discounted, attributes_image, attributes_price_base_included, attributes_price_onetime, attributes_price_factor, attributes_price_factor_offset, attributes_price_factor_onetime, attributes_price_factor_onetime_offset, attributes_qty_prices, attributes_qty_prices_onetime, attributes_price_words, attributes_price_words_free, attributes_price_letters, attributes_price_letters_free, attributes_required)

26 Jan 2008, 6:21 PM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute Error - 1136 Column count

Which add-on are you using that you are getting this error? :smile:

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!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Jan 2008, 7:02 AM
#26
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: Attribute Error - 1136 Column count

Ajeh:

Which add-on are you using that you are getting this error? :smile:

Dual Pricing

12 Mar 2008, 11:38 PM
#27
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Re: Attribute Error - 1136 Column count

agamic:

For those suffering with this error when adding attributes to an item and who have followed the various fixes, I discovered that in the admin/attributes_controller.php in or around 255 the value options_values_price_w was missing from the list after adding it I didn't get the error again.

Hope this helps as I have been having an uphill struggle with this and I really want to get it working. Now it is transferring the "retail" price to the cart rather than the w/s price, but I think there is a thread somewhere with that problem.

$db->Execute("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " (products_attributes_id, products_id, options_id, options_values_id, options_values_price, options_values_price_w, price_prefix, products_options_sort_order, product_attribute_is_free, products_attributes_weight, products_attributes_weight_prefix, attributes_display_only, attributes_default, attributes_discounted, attributes_image, attributes_price_base_included, attributes_price_onetime, attributes_price_factor, attributes_price_factor_offset, attributes_price_factor_onetime, attributes_price_factor_onetime_offset, attributes_qty_prices, attributes_qty_prices_onetime, attributes_price_words, attributes_price_words_free, attributes_price_letters, attributes_price_letters_free, attributes_required)

I am also using the dual pricing mod and this was the only change I had to make to get attributes added...still have to check on the retail/wholesale display etc., but my situation is easier while people must choose attributes, the attributes don't change the prices.

Thank you, Tom :thumbsup:

15 Apr 2008, 1:44 AM
#28
cutterscreek avatar

cutterscreek

New Zenner

Join Date:
Mar 2008
Posts:
26
Plugin Contributions:
0

Re: Attribute Error - 1136 Column count

agamic:

For those suffering with this error when adding attributes to an item and who have followed the various fixes, I discovered that in the admin/attributes_controller.php in or around 255 the value options_values_price_w was missing from the list after adding it I didn't get the error again.

Hope this helps as I have been having an uphill struggle with this and I really want to get it working. Now it is transferring the "retail" price to the cart rather than the w/s price, but I think there is a thread somewhere with that problem.

$db->Execute("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " (products_attributes_id, products_id, options_id, options_values_id, options_values_price, options_values_price_w, price_prefix, products_options_sort_order, product_attribute_is_free, products_attributes_weight, products_attributes_weight_prefix, attributes_display_only, attributes_default, attributes_discounted, attributes_image, attributes_price_base_included, attributes_price_onetime, attributes_price_factor, attributes_price_factor_offset, attributes_price_factor_onetime, attributes_price_factor_onetime_offset, attributes_qty_prices, attributes_qty_prices_onetime, attributes_price_words, attributes_price_words_free, attributes_price_letters, attributes_price_letters_free, attributes_required)

This fix worked perfectly for me. Thank you thank you!! :clap:

16 Apr 2008, 1:11 PM
#29
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Attribute Error - 1136 Column count

I'm using zen 1.3.8 and tried both fixes and still doesn't work :(

I have dual pricing running right now. Any other suggestions?

16 Apr 2008, 1:35 PM
#30
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Attribute Error - 1136 Column count

This is the error I get:

1136 Column count doesn't match value count at row 1
in:
[insert into zen_products_attributes (products_attributes_id, products_id, options_id, options_values_id, options_values_price, options_values_price_w, price_prefix, products_options_sort_order, product_attribute_is_free, products_attributes_weight, products_attributes_weight_prefix, attributes_display_only, attributes_default, attributes_discounted, attributes_image, attributes_price_base_included, attributes_price_onetime, attributes_price_factor, attributes_price_factor_offset, attributes_price_factor_onetime, attributes_price_factor_onetime_offset, attributes_qty_prices, attributes_qty_prices_onetime, attributes_price_words, attributes_price_words_free, attributes_price_letters, attributes_price_letters_free, attributes_required) values (0, '4', '1', '2', '0', '+', '0', '1', '0', '+', '0', '0', '1', '', '1', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '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.

16 Apr 2008, 1:49 PM
#31
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Attribute Error - 1136 Column count

Ok I got it fixed! The problem was I was using a fresh file of attributes_controller.php from the zencart file and not the one provided by dual pricing.

You should use the attributes_controller.php from dual pricing, insert the options_values_price_w on there and then upload it to the server!

15 May 2008, 4:31 PM
#32
dualaudi avatar

dualaudi

New Zenner

Join Date:
May 2008
Location:
San Diego
Posts:
14
Plugin Contributions:
0

Re: Attribute Error - 1136 Column count

I have the dual pricing module... i didn't realize it came with the attributes_controller.php as well.. do you have a link?

16 May 2008, 4:02 PM
#33
dualaudi avatar

dualaudi

New Zenner

Join Date:
May 2008
Location:
San Diego
Posts:
14
Plugin Contributions:
0

Re: Attribute Error - 1136 Column count

ignore my comment, yes I have everything. My problem seems to be sql issue.

17 Dec 2009, 5:27 PM
#34
enquirer66 avatar

enquirer66

Zen Follower

Join Date:
Sep 2007
Posts:
215
Plugin Contributions:
0

Re: Attribute Error - 1136 Column count

I would like to use Dual Pricing but concerned about the attributes problems. I installed an updated attributes controller to be able to make bulk attribute changes. Will this cause a problem since it is already installed?