Field ‘attackLogTime’ doesn’t have a default value
-
Hi,
I’m getting the following error in nginx errors logs:
2021/05/25 19:38:22 [error] 43013#43013: *1951552 FastCGI sent in stderr: “PHP message: WordPress database error Field ‘attackLogTime’ doesn’t have a default value for query INSERT INTO
{blanked}_wfhits
(ctime
,statusCode
,isGoogle
,IP
,userID
,URL
,referer
,UA
,jsRun
,action
,id
) VALUES (‘1621967899.091028’, ‘200’, ‘0’, ‘\0\0\0\0\0\0\0\0\0\0{blanked}’, ‘282’, ‘{blanked}/xmlrpc.php’, ”, ‘Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0’, ”, ‘loginFailValidUsername’, ‘0’) made by wfModel::insert” while reading upstream, client: {blanked}, server: {blanked}, request: “POST /xmlrpc.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php-fpm.sock:”, host: “{blanked}”I thought this may have occurred after we migrate the entire database to a new server, so I’ve just:
1) Took a backup of the Wordfence settings.
2) Enabled the delete tables on disable.
3) Update .user.ini to stop loading wordfence.
4) Disabled the plugin.
5) Delete the plugin.
6) Confirmed the tables were removed (all except the 2fa ones).
7) Re-installed Wordfence.
8) Import the backed up settings.
9) Update .user.ini to load it again.The tables were recreate and it’s correct ‘attackLogTime’ (and ‘ctime’) still have no default value. The above INSERT is still erroring because of the ‘attackLogTime’.
Any chance this can be looked at? It’s making it hard tracking down other real errors.
Cheers,
- The topic ‘Field ‘attackLogTime’ doesn’t have a default value’ is closed to new replies.