Originally Posted by
NWCE
Hi,
I am installing this addon into a fresh v.1.5.8 test site. I have uploaded all files and when running the SQLpatch from Admin, I get a white screen error and this in my Error Logs....
#1 trigger_error() called at [C:\wamp64\www\158\includes\classes\db\mysql\query_factory.php:667]
#2 queryFactory->show_error() called at [C:\wamp64\www\158\includes\classes\db\mysql\query_factory.php:634]
#3 queryFactory->set_error() called at [C:\wamp64\www\158\includes\classes\db\mysql\query_factory.php:275]
#4 queryFactory->Execute() called at [C:\wamp64\www\158\ADMIN\sqlpatch.php:297]
#5 executeSql() called at [C:\wamp64\www\158\ADMIN\sqlpatch.php:744]
#6 require(C:\wamp64\www\158\ADMIN\sqlpatch.php) called at [C:\wamp64\www\158\ADMIN\index.php:11]
--> PHP Fatal error: 1366:Incorrect integer value: '' for column 'configuration_id' at row 1 :: INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Show Languages in Header?', 'HEADER_LANGUAGES_DISPLAY', 'true', 'Display the Languages flags/links in Header?', 19, 170, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '); ==> (as called by) C:\wamp64\www\158\ADMIN\sqlpatch.php on line 297 <== in C:\wamp64\www\158\includes\classes\db\mysql\query_factory.php on line 667.
Can you point me the right direction to correct this to finish the install of this mod??
Thank you for your help,
Jeff
Change that SQL patch from
Code:
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Show Languages in Header?', 'HEADER_LANGUAGES_DISPLAY', 'true', 'Display the Languages flags/links in Header?', 19, 170, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), ');
to
Code:
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Show Languages in Header?', 'HEADER_LANGUAGES_DISPLAY', 'true', 'Display the Languages flags/links in Header?', 19, 170, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), ');
... essentially removing that configuration_id value that's invalid (the SQL processing will automatically calculate the next available value).
Bookmarks