zero-spam-for-wordpress
zero-spam-for-wordpress copied to clipboard
[BUG] PHP DB notices on first activation
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 |
I have activated/deactivated several times the plugin in Network but the problem remains, why?
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/