DB error when debug is enabled

4.88K 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! 🙂

0

its because

wp_ap_meta

table does not exist. try reinstalling and your issue will be solved.

Yes the two tables do not exist. Not sure why. I tried reinstalling, but same error. In my test website it work great.

How can i reinstall and (force) run the check anspress is doing ?