WP tries to query wrong database
-
From time to time, I see in error logs messages like
WordPress database error Table ‘database_2.wp_comments’ doesn’t exist for query SELECT * FROM wp_comments WHERE comment_approved = ‘1’ AND comment_post_ID = 10807 ORDER BY comment_date_gmt ASC made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/themename/page.php’), comments_template, get_comments, WP_Comment_Query->query
WordPress database error Table ‘database_2.wp_options’ doesn’t exist for query UPDATEwp_options
SEToption_value
= ‘1’ WHEREoption_name
= ‘al2fb_importing’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/themename/page.php’), comments_template, apply_filters(‘comments_array’), call_user_func_array, WPAL2Facebook->Comments_array, update_optiothe thing is, this is existing database, but it’s not wordpress’s database (let’s say WP db is named database_1). I have no clue for what reason it would want to query other database.
/* UPDATE */
Problem seems to lie within plugin called Add Link to Facebook, so I guess I have to ask it’s author
- The topic ‘WP tries to query wrong database’ is closed to new replies.