zero-spam-for-wordpress icon indicating copy to clipboard operation
zero-spam-for-wordpress copied to clipboard

[BUG] PHP DB notices on first activation

Open bmarshall511 opened this issue 3 years ago • 2 comments

In a fresh WP install, when activating the plugin for the first time, get the following errors:

Query Caller Component Error Message Error Code
DESCRIBE wp_wpzerospam_log; +ZeroSpam\I\DB->update() Plugin: zero-spam-for-wordpress Table 'local.wp_wpzerospam_log' doesn't exist 1146
DESCRIBE wp_wpzerospam_blocked; +ZeroSpam\I\DB->update() Plugin: zero-spam-for-wordpress Table 'local.wp_wpzerospam_blocked' doesn't exist 1146

bmarshall511 avatar Aug 30 '22 13:08 bmarshall511

I have activated/deactivated several times the plugin in Network but the problem remains, why?

DonnieBoy avatar Sep 19 '22 18:09 DonnieBoy

As a note to look into, may need to try a different hook to trigger table creation/updates. Perhaps https://developer.wordpress.org/reference/hooks/upgrader_process_complete/

bmarshall511 avatar Jun 29 '23 17:06 bmarshall511