No rules were updated
-
Hello
At one point wordfence started to refuse to update firewall rules (“No rules were updated. Please verify your website can reach the Wordfence servers.” / The last successful update check was 27 June 2019 15:35). Diagnostic window says that everything is ok. Curl in the ssh console also says that there is no problem:
curl -D – https://noc4.wordfence.com/v1.8/
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Mon, 15 Jul 2019 23:26:30 GMT
Content-Type: application/json
Content-Length: 59
Connection: keep-alive{“success”:false,”errorMessage”:”Invalid action supplied.”}
I’ve snooped around and I’ve found that there’s a class “wfWAFCronFetchRulesEvent” that’s being used to fetch the data with the fire() method. Too bad that it only returns true/false and not the real meaningful messages:
else {
$success = false;
}
}
else {
$success = false;
}
}
else {
$success = false;
}
[…]
return $success;Yep, finding the reason why it is failing will be very easy with the “false” in the every single else. I’d change that class to give proper messages, but you’ve hardcoded that the update can be fired up only 3 times, so I have to wait for the next opportunity (I’d change that also, but I’m to tired to look around files).
So:
1. What should I do to fix rules updating mechanism?
2. Would you be so kind and change the fire() method, so it would provide more detailed data about why it failed?
- The topic ‘No rules were updated’ is closed to new replies.