the mod to admin/products_attributes.php
also worked for me with a small change to include the sort order:
// tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values (null, '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . (float)tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')");
// tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values (null, '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . (float)tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "', '" . (int)$products_options_sort_order . "','')");
// 1136 - Column count doesn't match value count at row 1 insert into products_attributes values (null, '91', '11', '0', '0', '+', '0','')
tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . "
( products_id, options_id, options_values_id, options_values_price, price_prefix, products_options_sort_order)
values ('" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . (float)tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "', '" . (int)$products_options_sort_order . "')");
For an explanation of what causes this error have a look at
codingforums.com/archive/index.php?t-28471.html