I got this error message in the apache.error.log of my site. Usually I get a clue because the path to a plugin is shown in the message.
But, in this error, no plugin is mentioned. The my question is: how can I start to trace the cause of this error message.
Besides, I don't know how this error was fired, then I have no idea how to reproduce it.
ERROR:
[Tue Dec 05 19:41:27.165722 2017] [proxy_fcgi:error] [pid 29936] [client 147.96.110.181:50551] AH01071: Got error 'PHP message: Error 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
') GROUP BY t.term_id ORDER BY tm.meta_value+0 asc, t.name ASC' at line 4 of Wordpress database for the query SELECT t.*, tt.*, tm.meta_value FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id LEFT JOIN wp_icl_translations icl_t\r\n ON icl_t.element_id = tt.term_taxonomy_id\r\n AND icl_t.element_type IN ('tax_product_cat') INNER JOIN wp_term_relationships AS tr LEFT JOIN wp_termmeta AS tm ON (t.term_id = tm.term_id AND tm.meta_key = 'order') WHERE tt.taxonomy IN ('product_cat') AND ( ( icl_t.element_type IN ('tax_product_cat') AND icl_t.language_code = 'es' )\r\n OR icl_t.element_type NOT IN ('tax_product_cat') OR icl_t.element_type IS NULL ) AND tr.object_id IN () GROUP BY t.term_id ORDER BY tm.meta_valu...\n'
, referer: http://www.example.com/
$wpdb->query
directly instead.grep
ing for that or$wpdb
inside /wp-content could provide some clues