Thanks for your suggestion. I tried to repair the table and I get the message:
The storage engine for the table doesn't support repair.
The table structure is:
CREATE TABLE IF NOT EXISTS wp_wfBlocks (
IP binary(16) NOT NULL DEFAULT '',
blockedTime bigint(20) NOT NULL,
reason varchar(255) NOT NULL,
lastAttempt int(10) unsigned DEFAULT '0',
blockedHits int(10) unsigned DEFAULT '0',
wfsn tinyint(3) unsigned DEFAULT '0',
permanent tinyint(3) unsigned DEFAULT '0',
PRIMARY KEY (IP),
KEY k1 (wfsn)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Further investigation shows that the error is getting triggered at wordfenceClass.php line 333 in the runInstall method.
$db->queryWriteIgnoreError("alter table $prefix"."wfBlocks add column permanent tinyint UNSIGNED default 0");
I also notices a few tables in wordfence that are using latin1_swedish_ci
instead of utf8_general_ci
. Is that by design?
These tables are:
wp_wfBadLeechers
wp_wfCrawlers
wp_wfHits
wp_wfLeechers
wp_wfReverseCache
wp_wfScanners
I’m going to try removing the plugin and re-installing it. Hopefully this will solve the issue.