Forums / Bug Reports / [Duplicate] Errors popping up reaching Option Name Manager

[Duplicate] Errors popping up reaching Option Name Manager

Started by retched on 6 May 2013, 6:42 PM · Views: 792

Results 1 to 2 of 2
6 May 2013, 6:42 PM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

[Duplicate] Errors popping up reaching Option Name Manager

I had to edit the following bits of code using v1.5.1:

[06-May-2013 18:35:06 UTC] PHP Fatal error: 1136:Column count doesn't match value count at row 1 :: INSERT INTO zen_products_options_values(products_options_values_id, language_id, products_options_values_name) VALUES (01, 'TEXT') in /xxx/public_html/store/includes/classes/db/mysql/query_factory.php on line 120

/admin/options_name_manager.php, line 25.

BEFORE:

$db->Execute("INSERT INTO products_options_values (products_options_values_id, language_id, products_options_values_name) VALUES ((int)PRODUCTS_OPTIONS_VALUES_TEXT_ID, " . (int)$languages[$i]['id'] . ", 'TEXT')");

AFTER:

$db->Execute("INSERT INTO " . TABLE_PRODUCTS_OPTIONS_VALUES . "(products_options_values_id, language_id, products_options_values_name) VALUES (" . (int)PRODUCTS_OPTIONS_VALUES_TEXT_ID . ", " . (int)$languages[$i]['id'] . ", 'TEXT')");
6 May 2013, 6:50 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: [Duplicate] Errors popping up reaching Option Name Manager

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.