Database error Column ‘country_iso_code’ cannot be null
-
Hi, I have WP Defender installed on multiple sites and I’m getting errors related to the ‘country_iso_code’ column on all of them. Flooding the error logs of each site. Here are what some of the errors looks like:
[16-May-2022 01:28:33 UTC] WordPress database error Column ‘country_iso_code’ cannot be null for query INSERT INTO
wp_defender_lockout_log
(id
,log
,ip
,date
,user_agent
,type
,blog_id
,tried
,country_iso_code
) VALUES (NULL, ‘Locked out due to attempted login with banned user agent’, ‘51.222.253.8’, ‘1652664513’, ‘mozilla/5.0 (compatible; ahrefsbot/7.0; +https://ahrefs.com/robot/)’, ‘ua_lockout’, 1, ‘mozilla/5.0 (compatible; ahrefsbot/7.0; +https://ahrefs.com/robot/)’, NULL) made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, WP_Defender\Bootstrap->init_modules, DI\Container->get, DI\Container->resolveDefinition, DI\Definition\Resolver\ResolverDispatcher->resolve, DI\Definition\Resolver\ObjectCreator->resolve, DI\Definition\Resolver\ObjectCreator->createInstance, WP_Defender\Controller\Firewall->__construct, WP_Defender\Controller\Firewall->maybe_lockout, WP_Defender\Component\User_Agent->block_user_agent_or_ip, WP_Defender\Component\User_Agent->log_event, WP_Defender\DB->save, Calotes\DB\Mapper->save[16-May-2022 01:52:33 UTC] WordPress database error Column ‘country_iso_code’ cannot be null for query INSERT INTO
wp_defender_lockout_log
(id
,log
,ip
,date
,user_agent
,type
,blog_id
,tried
,country_iso_code
) VALUES (NULL, ‘Failed login attempt with username censored’, ‘134.209.231.225’, ‘1652665953’, ‘Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36’, ‘auth_fail’, 1, ‘censored’, NULL) made by wp_signon, wp_authenticate, do_action(‘wp_login_failed’), WP_Hook->do_action, WP_Hook->apply_filters, WP_Defender\Component\Login_Lockout->process_fail_attempt, WP_Defender\Component\Login_Lockout->log_event, WP_Defender\DB->save, Calotes\DB\Mapper->save
- The topic ‘Database error Column ‘country_iso_code’ cannot be null’ is closed to new replies.