Table not found error when it actually IS in the database
-
I have a test and production environment. The production is configured as a single user and the test has the network features turned on.
Strange thing just happened. When moving code from my test system to production, I received a table not found error when making an SQL call via $wpdb. Funny thing is I can see the table, access the table and mySQL tells me the table is OK. So why would code that works on the test system fail on a production system?
This table is being accessed via a plugin that I wrote. Here is the error from $wpdb:
WP Database:wpdb Object ( [show_errors] => [suppress_errors] => [last_error] => Table 'mlearn_wrdp1.wp_mlgw_twitterfollowing' doesn't exist [num_queries] => 19 [num_rows] => 14 [rows_affected] => 0 [insert_id] => 0 [last_query] => SELECT * FROM wp_mlgw_twitterfollowing WHERE tw_ID = 14516910 [last_result] => Array ...
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Table not found error when it actually IS in the database’ is closed to new replies.