Plugin Support
bb
(@doanducanh)
Hi @giaco91dena
Have you been ever tried to change something directly in Database or delete slim_seo_404 table before?
To fix this issue, please follow these steps:
- Go to Slim SEO Settings page
- Select Redirection tab
- Click Settings
- Turn OFF Enable 404 logs setting
- Turn ON Delete 404 logs table setting
- Save changes
- Click Settings again
- Turn ON Enable 404 logs setting
- Save changes
We have made a sample video https://vimeo.com/786476614 so you can follow the steps easier
-
This reply was modified 2 years, 4 months ago by
bb.
I encountered the same database error on a fresh installation of WordPress.
The issue stems from the scheduled event:
do_action_ref_array('delete_404_logs'),
WP_Hook->do_action, WP_Hook->apply_filters,
SlimSEO\Redirection\Loader->run_schedule,
SlimSEO\Redirection\Database\Log404->delete_older_logs
Which does not check if the table exists.
The table is only ever created here when visiting the Settings page:
apply_filters('admin_print_styles-settings_page_slim-seo'),
WP_Hook->apply_filters,
SlimSEO\Redirection\Settings->enqueue
To resolve this error, the plugin would either need to:
- Create the table sooner such as when the Redirection module is enabled (which is enabled by default).
- Ensure the table exists before deleting older logs (such as with
"SHOW TABLES LIKE {$wpdb->slim_seo_404}"
.
- Ensure “Enable 404 logs” is turned on.
Plugin Support
bb
(@doanducanh)
Thank @mcaskill for your suggestion, we have fixed it!