Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Attributes error caused by attributes copy


gypsydogg

Recommended Posts

OK, I don't know much about PHP or Mysql, but I'm learnig slowly but surely. I recieve the following error when I try to ad an attribute, I believe this was caused after adding the attributes copier to my shop:

 

1136 - Column count doesn't match value count at row 1

 

insert into products_attributes values ('', '95', '1', '7', '', '+')

 

[TEP STOP

 

Now I read about this error and I believe I know what the problem is. From what I learned this statement is trying to place 6 values but more than six are being passed. I found the column that I beleive is giving me grief. Sort_Order. But how do I get rid of that column? I prefer to use PHPmyAdmin, but I will take anyones advice.

Link to comment
Share on other sites

If column sort_order is there, then either now or at one time, an attribute sort order contrib was installed. If you still use that contrib, keep the column in mySQL and simply add:

, ''

to the insert statement (in the appropriate position) to pass '' into the sort_order column. If you no longer use the sort order contrib, drop the column from the table.

 

Make sure you are REALLY not using the sort order contrib before doing that.

 

ed

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...