MYSQL errors in multisite scenario
-
Hi! I just wanted to point out that there are issues in the way the queries are requested by the plugin.
I’m using Simple Login Log 0.9.5 with WP Multisite 3.5.1 and my php error logs are recording a lot of issues because the cleaning process of the plugin is trying to clean data in tables that doesn’t exist.
The plugin is recording logins in table wp_simple_login_log. But the instance in every individual site is trying to clean from the table prefixed with the site ID, which does not exist, like xxxxx.wp_7_simple_login_log.
These are some examples:
[14-Feb-2013 18:22:05] Error Table ‘tureslr_wordpress.wp_7_simple_login_log’ doesn’t exist de la base de datos de WordPress para la consulta DELETE FROM wp_7_simple_login_log WHERE time < DATE_SUB(CURDATE(),INTERVAL 365 DAY) realizada por do_action_ref_array, call_user_func_array, SimpleLoginLog->cron, SimpleLoginLog->truncate_log
[15-Feb-2013 00:00:24] Error Table ‘tureslr_wordpress.wp_4_simple_login_log’ doesn’t exist de la base de datos de WordPress para la consulta DELETE FROM wp_4_simple_login_log WHERE time < DATE_SUB(CURDATE(),INTERVAL 90 DAY) realizada por do_action_ref_array, call_user_func_array, SimpleLoginLog->cron, SimpleLoginLog->truncate_log
[15-Feb-2013 15:58:33] Error Table ‘tureslr_wordpress.wp_6_simple_login_log’ doesn’t exist de la base de datos de WordPress para la consulta DELETE FROM wp_6_simple_login_log WHERE time < DATE_SUB(CURDATE(),INTERVAL 90 DAY) realizada por do_action_ref_array, call_user_func_array, SimpleLoginLog->cron, SimpleLoginLog->truncate_log
[15-Feb-2013 16:14:47] Error Table ‘tureslr_wordpress.wp_8_simple_login_log’ doesn’t exist de la base de datos de WordPress para la consulta DELETE FROM wp_8_simple_login_log WHERE time < DATE_SUB(CURDATE(),INTERVAL 10 DAY) realizada por do_action_ref_array, call_user_func_array, SimpleLoginLog->cron, SimpleLoginLog->truncate_logYou just need to fix the name of the table where the plugin is trying to truncate old data.
https://www.ads-software.com/extend/plugins/simple-login-log/
- The topic ‘MYSQL errors in multisite scenario’ is closed to new replies.