Wordfence leaves a mess in the database
-
Hi,
I have been hit by this issue several times in the past. If the server ran out of memory/disk space or such the database would be fine except for wordfence issues. I have seen several pages telling the problem is with the environment. This time I have hit the issue without any memory/disk space error.
I have been using the plugin in other sites on the same server. The problem is only with this specific site. After installation I see only 3 tables –
| sbqte_wfKnownFileList |
| sbqte_wfNotifications |
| sbqte_wfPendingIssues |The rest are not getting created. I do not know if I can create the tables using another site where it is installed successfully. I tried to export the settings as well but since the tables are not creating it would not let me save any options.
I am circling in a loop where it keeps popping the message for the tour incessantly.
What I have tried so far?
$ mysqlrepair -o -u root -pXXXX dbname
Manually deleting the tables –
wp_wfBadLeechers
wp_wfBlockedIPLog
wp_wfBlocks
wp_wfBlocksAdv
wp_wfConfig
wp_wfCrawlers
wp_wfFileMods
wp_wfHits
wp_wfHoover
wp_wfIssues
wp_wfLeechers
wp_wfLockedOut
wp_wfLocs
wp_wfLogins
wp_wfNet404s
wp_wfReverseCache
wp_wfScanners
wp_wfStatus
wp_wfThrottleLog
wp_wfVulnScannersas suggested in some of the posts.
Moving the files under – /var/lib/mysql/dbname/
$ mv /var/lib/mysql/dbname/wp_wf* /tmp/
A complete reset as suggested in the link below is not possible since I can’t save the options –
I wish since the problems related to the database are so frequent, these problems are fixed for good or the corruption of the database avoided. If lets say the disk space is not sufficient can the wordfence plugin not be writing to the database? The other plugins don’t break so bad. I know a disk space issue should not occur but if it did the plugin should handle it more gracefully.
This time the issue is not with space even. I am not able to install wordfence on this site and it is part of my wpcore list. I keep seeing the annoying message that it is better installed. Each time I try to install I lose so much time.
If I use another database and manage to populate some of the tables, it allows me to save the options. After enabling the delete tables on deactivate, I tried deactivating and reactivating. It got reset. The tables went but never came back.
The notification keeps showing up always –
Wordfence could not get an API key from the Wordfence scanning servers when it activated. You can try to fix this by going to the Wordfence “options” page and hitting “Save Changes”. This will cause Wordfence to retry fetching an API key for you. If you keep seeing this error it usually means your WordPress server can’t connect to our scanning servers. You can try asking your WordPress host to allow your WordPress server to connect to noc1.wordfence.com.
The /var/log/apache2/error.log is full of messages talking about missing wordfence tables.
I am disabling the plugin for now. Hoping it should be easier than this to fix the problem. I have spent last 3 hours debugging this issue and this is not the first time I have been hit by the wordfence tables issue.
If anything I would think the problem could be with the setup of the permissions for the database but then I don’t understand why those 3 tables are getting created and not the rest.
Please advise. Any help on this is greatly appreciated.
Thanks in advance,
Mayank
- The topic ‘Wordfence leaves a mess in the database’ is closed to new replies.