SQL syntax error confused
-
I’m using latest version of your plugin and logs dumps with SQL errors for example:
WordPress database error 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 ‘WHERE
term_ID
= 38 ANDlanguage
= ‘en_US” at line 3 for query SELECTname
logs/error.log: WHEREterm_ID
= 38 ANDlanguage
= ‘en_US’Errors are always same on all page instead index. I’ve tried to search where is term_ID query and this is only your plugin and taxonomy:
# grep -rl “term_ID”
logs/error.log
wp-includes/taxonomy.php
wp-content/plugins/multilanguage/multilanguage.phpSearched in multilanguage.php and tried var_dump such as on all:
var_dump($item->object_id,$mltlngg_current_language); die();
I’ve got on admin page “NULL” “en_US”. There are some SQL error on it but i’m not sure why errors still shows. Errors dumps only on log file.
Tried to disable plugin, and error doesn’t show.
- The topic ‘SQL syntax error confused’ is closed to new replies.