Totally Zenned
- Join Date:
- Dec 2012
- Posts:
- 607
- Plugin Contributions:
- 0
Errors in log file coming from usage of quote characters
I have been struggling over this for a while now.
A cart needs to place and use the ' for feet and " for inches. First I had problems with EP4. which was solved. Now I am getting the following in the error logs. I can't figure out what to do about them.
[21-May-2013 04:12:34 America/Denver] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '18" x 12"", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), pov.' at line 7 :: SELECT DISTINCT p.products_id, p.products_type, p.master_categories_id,
p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1,
s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price,
p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping,
p.products_qty_box_status FROM zen_products p LEFT JOIN zen_specials s on p.products_id = s.products_id LEFT JOIN zen_products_description pd on p.products_id = pd.products_id JOIN zen_products_to_categories p2c on p.products_id = p2c.products_id JOIN zen_products_attributes p2a on p.products_id = p2a.products_id JOIN zen_products_options po on p2a.options_id = po.products_options_id JOIN zen_products_options_values pov on p2a.options_values_id = pov.products_options_values_id WHERE p.products_status = 1
and pd.language_id = '1'
and p2c.categories_id = '12' GROUP BY p.products_id HAVING ( FIND_IN_SET("Size:18" x 18" x 12"", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), pov.products_options_values_name)))) in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
[21-May-2013 04:26:31 America/Denver] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '", ""), pov.products_options_values_name))))' at line 1 :: select distinct * FROM zen_products p left join zen_manufacturers m on (p.manufacturers_id = m.manufacturers_id) left join zen_products_to_categories p2c on p.products_id = p2c.products_id left join zen_products_description pd on p.products_id = pd.products_id join zen_products_attributes p2a on p.products_id = p2a.products_id join zen_products_options po on p2a.options_id = po.products_options_id join zen_products_options_values pov on p2a.options_values_id = pov.products_options_values_id WHERE p.products_status = 1 AND pd.language_id = 1 and p.products_date_added >=20130507 GROUP BY p.products_id HAVING ( FIND_IN_SET("Size:2' x 3'-3"", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), pov.products_options_values_name)))) in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
[21-May-2013 04:26:45 America/Denver] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '7'-6" Size", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), p' at line 1 :: select distinct * FROM zen_products p left join zen_manufacturers m on (p.manufacturers_id = m.manufacturers_id) left join zen_products_to_categories p2c on p.products_id = p2c.products_id left join zen_products_description pd on p.products_id = pd.products_id join zen_products_attributes p2a on p.products_id = p2a.products_id join zen_products_options po on p2a.options_id = po.products_options_id join zen_products_options_values pov on p2a.options_values_id = pov.products_options_values_id WHERE p.products_status = 1 AND pd.language_id = 1 and p.products_date_added >=20130507 GROUP BY p.products_id HAVING ( FIND_IN_SET("Size:2'-3" x 7'-6" Size", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), pov.products_options_values_name)))) in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
and the latest:
[21-May-2013 07:08:52 America/Denver] PHP Warning: Variable passed to each() is not an array or object in /MyPath/includes/classes/db/mysql/query_factory.php on line 153
Using Zen Cart 1.5.1