WordPress database error Incorrect DATETIME value: ‘1000-10-00 10:00:00
-
I’m getting the following error from this plugin:
WordPress database error Incorrect DATETIME value: '1000-10-00 10:00:00' for query UPDATE wp_aiowps_login_activity SET logout_date = '2020-07-23 17:23:00' WHERE user_id = 0 AND login_ip = '172.30.0.1' AND logout_date = '1000-10-00 10:00:00' made by wp_clear_auth_cookie, do_action('clear_auth_cookie'), WP_Hook->do_action, WP_Hook->apply_filters, AIOWPSecurity_User_Login->wp_logout_action_handler"
I’ve found the reason for this to be new behavior in MySQL version 5.7 and higher: https://stackoverflow.com/a/38115616/803801
It looks like this issue can be fixed by replacing every instance of
1000-10-00 10:00:00
in the code with1000-10-10 10:00:00
.That would be one instance here: https://plugins.svn.www.ads-software.com/all-in-one-wp-security-and-firewall/trunk/classes/wp-security-user-login.php
And three instances here: https://plugins.svn.www.ads-software.com/all-in-one-wp-security-and-firewall/trunk/classes/wp-security-installer.php
Could the developers please make these change?
- This topic was modified 4 years, 4 months ago by .
- This topic was modified 4 years, 4 months ago by .
- This topic was modified 4 years, 4 months ago by .
- This topic was modified 4 years, 4 months ago by .
- This topic was modified 4 years, 4 months ago by .
- This topic was modified 4 years, 4 months ago by .
- The topic ‘WordPress database error Incorrect DATETIME value: ‘1000-10-00 10:00:00’ is closed to new replies.