DB error when debug is enabled

4.94K viewsCore
0

WordPress database error: [Table ‘myplan_domain.wp_ap_meta’ doesn’t exist]
SELECT count(*) as count, p.post_status FROM wp_posts p INNER JOIN wp_ap_meta m ON p.ID = m.apmeta_actionid WHERE (p.post_type = ‘question’ OR p.post_type = ‘answer’) AND m.apmeta_type=’flag’ GROUP BY p.post_status

in admin dashboard.

1

I experienced the same problem with WordPress 4.6.1 (multi-site) and AnsPress 3.0.7. I tried to delete the plugin via the WordPress admin panel and it kept coming up with an error and wouldn’t delete (perhaps because of the missing tables?!?). So I deleted the folder “anspress-question-answer” from the “plugins” folder in the WordPress installation. I then re-installed AnsPress 3.0.7 and magically the “wp_ap_meta” and four other “wp_ap_” tables appeared in the database.

Most importantly, I  no longer see a flood of “Table ‘xxx.wp_ap_meta’ doesn’t exist” messages in the debug log! 🙂

You are viewing 1 out of 2 answers, click here to view all answers.