FILE SCAN exclusions failing
-
Hi,
I noticed the File Scan exclusions failing on all my sites, tons of emails all of a sudden since a recent update.
I’ve not changed anything, but when I do try to add new exclusions or re-save, I’m alerted by “A validation function for file-change received data that has an entry for notify_admin when no such entry exists.”I’ve tried resetting notification/admin, which I know works as I get them!
Deactivation of the plugin, and I’ve also read WP-Optimize plugin can cause this, but I I’ve addded /wp-content/wpo-cache to my exclusion list but that error still pops up, I’m not sure it’s related to my problem which seems to be both ignoring exclusions, and this new error message.Anyone got any ideas please?
-
Hi Exo,
This type of error is probably due to some sort of failure during updating of the plugin. And yes it does prevent newly added exclusions from being saved.
If not already add the line below to the wp-config.php file:
define('ITSEC_DEBUG', true);This should add an extra Debug menu item under the Security menu option.
Then navigate to Security > Debug.
Under the Settings section select file-change and then click on the Load button.
There should be 5 entries displayed which more or less look like below (Data types: 2 arrays, 1 object, 1 integer and a boolean):
{ "file_list": [], "types": [], "expected_hashes": {}, "last_scan": 0, "compare_file_hashes": true }For visual aid I’ve intentionally left out (full) values for the first 3 entries.
If, by any chance there is a “notify_admin” entry (or any other unmatching) entries, try and remove those “entry”: value, combinations. Once removed click on the Save button.
Do the above at your own risk (preferably after making sure there is a recent database backup available).
+++++ To prevent any confusion, I’m not iThemes +++++
nlpro, thank you so much for your detailed reply.
Awesome, that fixed it for one site of mine.However, I’ve 50+ sites all doing the same, there’s no way I’m doing this on all of them – so will iThemes put out a fix do you think?
It’s obviously a bug in the new version as it’s happened before, and now it happens on ALL my installations since updating only iThemes Security.
My fingers are crossed a fix comes out soon.
Ok, thank you for your feedback.
Was the “notify_admin” entry the only one that needed to be removed ?
I’ll have a quick look at the File Change update/upgrade code. With some luck I hope to be able to identify the bug that is causing this issue.
Oh I may need the following data:
In the Debug page Settings section select global and click on the Load button.
Please share the integer values displayed for “build” and “initial_build”.
-
This reply was modified 3 years, 5 months ago by
nlpro.
Thanks again for your reply, it’s appreciated.
Curiously I could not remove single entries, but had to delete all of this:-
"last_scan": 171524, "notify_admin": true, "show_warning": true, "email": false, "split": false, "last_run": 1522573523, "last_chunk": false, "method": "exclude",Trying to remove just “notify_admin”: true, would not do it, upon save and then re-load it would be back.
On removing all of that above, maybe it’s just suppressed the warning and will still fail?
But I noticed a new entry now:
"compare_file_hashes": true,In answer to your Global settings request:
"build": 4125, "initial_build": 4112,Curiously, in those settings I can see log_location & nginx_file are totally wrong (possibly from a site hosting change a year or so ago), not sure why they should remain wrong.
Curiously, in those settings I can see log_location & nginx_file are totally wrong (possibly from a site hosting change a year or so ago), not sure why they should remain wrong.
If you are currently using the Apache web server instead of Nginx an incorrect value for the global[‘nginx_file’] setting is no problem. Only when you switch back to using Nginx, the value for the global[‘nginx_file’] setting needs to be corrected.
Likewise an invalid path value for the global[‘log_location’] setting only needs to be corrected if the “How should event logs be kept” UI setting is set to either “File Only” or “Both”. You are probably currently using “Database Only” which is the recommended value due to a bug recently discovered in file logging.
Anyway both of these settings are categorized as “conditional-settings” in the module.json file of the global module.
When you originally reported this issue you stated:
I noticed the File Scan exclusions failing on all my sites, tons of emails all of a sudden since a recent update.
What exact update took place ? (I prefer an answer like: Updated xxx plugin from version x to version y).
What exact update took place ? (I prefer an answer like: Updated xxx plugin from version x to version y).
Only iThemes Security plugin was updated recently. I’ve not really updated anything else on the majority of my sites.
I mentioned WP-Optimize as I’ve seen it mentioned needs to be added to exclusions for file changes in it’s own folder, but I’ve not updated that for about a month.I use MAINWP to update my sites (100+), and updated 50+ on iThemes Security as it’s one of the few plugins I keep updated very frequently.
Otherwise, I’d be looking at other plugins possibly causing this. But it’s happened before and had been resolved in updates, so I can only hope it will again.
Hi @richardshea, apologies for the delayed response, and thank you for detailing your updates here. As this issue is related to this ticket, I’d like to submit a bug report for this, so we can hopefully track what triggers the error notice. Unfortunately, I couldn’t replicate the error on my test sites. Could you please provide the ff details:
-Browser
-PHP Version
-WordPress Version
-Plugin Version
-Any applicable WordPress/console/PHP errors.
-Steps taken leading to the error notice.I’d like to thank @nlpro as well for the assistance!
Hi @shanedelierrr, thanks for your reply.
I’ve got this happening on ALL my installations, and all started since the last update. In answer to your questions:-
ALL browser (Edge,Firefox, Chrome etc) -Browser
7.4.32 & 8.0 -PHP Version
6.0.2 -WordPress Version
7.2.1 [latest] -Plugin Version
NONE -Any applicable WordPress/console/PHP errors.
Only debug which @nlpro mentions fixes it, or a reinstall -Steps taken leading to the error notice.If you PM me (is that possible here?), I’m happy to provide admin access to one of the sites for you to double check things.
Hi @richardshea, would you please send an email here and mention my username in the message body? Thank you!
I’m getting the same “A validation function for file-change received data that has an entry for email when no such entry exists.” whenever I tried to save the exclusions file. Was there any solution beyond the above?
Hi @richardshea & @charlesrodmell, could you please update to the latest version and see if it helps?
I had to deactivate the plugin and delete it and then reinstall. Then it worked (no version change).
@shanedelierrr thank you, I can confirm the latest version now seems to have fixed this.
Please thank the rest of the team who worked on this update.All the best.
Hi @richardshea and @charlesrodmell, thank you for the update, and I’m happy to hear that the 7.2.3 version has fixed the File Change Detection exclusion issue. I’ll now mark this topic as resolved. Please don’t hesitate to reach out to us if you have other concerns that you’d like us to assist with.
-
This reply was modified 3 years, 5 months ago by
The topic ‘FILE SCAN exclusions failing’ is closed to new replies.