Missing site_itsec_bans table caused site crash
-
It looks like a new table was added but didn’t get created on our site. Our site was down this morning. I created the table based on the code in core/lib/schema.php and all is well now, but this was a bit dramatic for us today.
Here is the PHP error from the missing table when errors were turned on (actual site name replaced):
Fatal error: Uncaught mysqli_sql_exception: Table ‘wordpress_mysite.site_itsec_bans’ doesn’t exist in /var/www/vhosts/mysite.com/httpdocs/wp-includes/wp-db.php:2033 Stack trace: #0 /var/www/vhosts/mysite.com/httpdocs/wp-includes/wp-db.php(2033): mysqli_query() #1 /var/www/vhosts/mysite.com/httpdocs/wp-includes/wp-db.php(1922): wpdb->_do_query() #2 /var/www/vhosts/mysite.com/httpdocs/wp-includes/wp-db.php(2673): wpdb->query() #3 /var/www/vhosts/mysite.com/httpdocs/wp-admin/includes/upgrade.php(2703): wpdb->get_results() #4 /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/better-wp-security/core/lib.php(2161): dbDelta() #5 /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/better-wp-security/core/lib/schema.php(177): ITSEC_Lib::db_delta_with_error_handling() #6 /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/better-wp-security/core/lib.php(62): ITSEC_Schema::create_database_tables() #7 /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/better-wp-security/core/setup.php(81): ITSEC_Lib::create_database_ta in /var/www/vhosts/mysite.com/httpdocs/wp-includes/wp-db.php on line 2033
- The topic ‘Missing site_itsec_bans table caused site crash’ is closed to new replies.