1.5.7b
php7.3
When copying a set of attributes to another category, I received the following screen error:
"WARNING: An Error occurred, please refresh the page and try again.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."
and error log:
Code:
[21-Jan-2021 11:24:43 America/Chicago] Request URI: /XXXXX/index.php?cmd=attributes_controller&action=update_attributes_copy_to_category, IP address: XXXXX
#1 trigger_error() called at [/includes/classes/db/mysql/query_factory.php:170]
#2 queryFactory->show_error() called at [/includes/classes/db/mysql/query_factory.php:142]
#3 queryFactory->set_error() called at [/includes/classes/db/mysql/query_factory.php:269]
#4 queryFactory->Execute() called at [/XXXXX/includes/functions/general.php:2188]
#5 zen_copy_products_attributes() called at [/XXXXX/attributes_controller.php:587]
#6 require(/XXXXX/attributes_controller.php) called at [/XXXXX/index.php:11]
--> PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''0
WHERE products_id=3009
AND options_id= 328
...' at line 24 :: UPDATE products_attributes set
options_values_price='0.0000',
price_prefix='',
products_options_sort_order='0',
product_attribute_is_free='0',
products_attributes_weight='0',
products_attributes_weight_prefix='',
attributes_display_only='0',
attributes_default='1',
attributes_discounted='0',
attributes_image='',
attributes_price_base_included='0',
attributes_price_onetime='0.0000',
attributes_price_factor='0.0000',
attributes_price_factor_offset='0.0000',
attributes_price_factor_onetime='0.0000',
attributes_price_factor_onetime_offset='0.0000',
attributes_qty_prices='',
attributes_qty_prices_onetime='',
attributes_price_words='0.0000',
attributes_price_words_free='0',
attributes_price_letters='0.0000',
attributes_price_letters_free='0',
attributes_required='0
WHERE products_id=3009
AND options_id= 328
AND options_values_id=1289 ==> (as called by) /00java00/includes/functions/general.php on line 2188 <== in /includes/classes/db/mysql/query_factory.php on line 170.
Bookmarks