Database error: table taxopress_linked_terms doesn’t exist
-
Hi,
after noticing a huge error.log file, I discovered many errors like this:WordPress database error Table ‘…taxopress_linked_terms’ doesn’t exist for query SELECT * FROM …taxopress_linked_terms WHERE term_id = 266 OR linked_term_id = 266 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/petit10-child/single.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, SimpleTags_Client_Autolinks::taxopress_autolinks_the_content, SimpleTags_Client_Autolinks::prepare_auto_link_tags, taxopress_add_linked_term_options, taxopress_get_linked_terms
Upon investigation, I found that the table in question doesn’t exist in the database and wasn’t created even after uninstalling and reinstalling the plugin.
To fix the issue, I had to add this line to the inc/functions.inc.php file in the taxopress_get_linked_terms function below the row $table_name = $wpdb->prefix . ‘taxopress_linked_terms’;:
if ($wpdb->get_var(“SHOW TABLES LIKE ‘$table_name'”) !== $table_name) {
return $linked_terms;
}Is there any way to resolve this issue so I don’t have to modify the file after every update?
I have the latest version of your plugin and the latest version of WordPress. Let me know if you need any additional information.Thanks a lot
- You must be logged in to reply to this topic.