cancel
Showing results for 
Search instead for 
Did you mean: 

debug & system log error

SOLVED

debug & system log error

Hello,

 

Since upgrading to 2.2.5 I get the following error, regardless of external extensions enabled or disabled. these kick off every minute.. my log file is almost 3 GB now... full of this ...I was wondering if anyone else had the same errors:

 

[2018-07-27 16:32:08] main.INFO: SELECT DISTINCT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `mv`.*, MAX(logged_at) AS `max_loged`, COUNT(`event_id`) AS `num_view_counts`, `stock_status_index`.`stock_status` AS `is_salable` FROM `mg_catalog_product_entity` AS `e`
INNER JOIN `mg_catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0
INNER JOIN `mg_catalog_category_product_index_store1` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(2, 4) AND cat_index.category_id='2'
LEFT JOIN `mg_report_event` AS `mv` ON mv.object_id = e.entity_id
INNER JOIN `mg_cataloginventory_stock_status` AS `stock_status_index` ON e.entity_id = stock_status_index.product_id AND stock_status_index.website_id = 0 AND stock_status_index.stock_id = 1 WHERE (mv.event_type_id = 1 AND mv.subject_id= AND mv.store_id=1) AND (stock_status_index.stock_status = 1) GROUP BY `entity_id` ORDER BY `max_loged` DESC
LIMIT 15 [] []

 

[2018-07-27 16:32:08] main.CRITICAL: SQLSTATE[42000]: Syntax error or access violation: 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 'AND mv.store_id=1) AND (stock_status_index.stock_status = 1) GROUP BY `entity_id' at line 5, query was: SELECT DISTINCT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `mv`.*, MAX(logged_at) AS `max_loged`, COUNT(`event_id`) AS `num_view_counts`, `stock_status_index`.`stock_status` AS `is_salable` FROM `mg_catalog_product_entity` AS `e`
INNER JOIN `mg_catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0
INNER JOIN `mg_catalog_category_product_index_store1` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(2, 4) AND cat_index.category_id='2'
LEFT JOIN `mg_report_event` AS `mv` ON mv.object_id = e.entity_id
INNER JOIN `mg_cataloginventory_stock_status` AS `stock_status_index` ON e.entity_id = stock_status_index.product_id AND stock_status_index.website_id = 0 AND stock_status_index.stock_id = 1 WHERE (mv.event_type_id = 1 AND mv.subject_id= AND mv.store_id=1) AND (stock_status_index.stock_status = 1) GROUP BY `entity_id` ORDER BY `max_loged` DESC
LIMIT 15 [] []

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

Re: debug & system log error

I found the error to be be associated with my custom theme, there was a small extension inside of it for a “recently viewed” feature with looked great but unfortunately caused this issue. After disabling the theme feature the error went away. 

View solution in original post

1 REPLY 1

Re: debug & system log error

I found the error to be be associated with my custom theme, there was a small extension inside of it for a “recently viewed” feature with looked great but unfortunately caused this issue. After disabling the theme feature the error went away.