• Using iThemes Security 5.6.3

    Trying to add another directory to Files and Folders List in File Change Detection throws the following errors.

    1. “A validation function for file-change received data that did not have the required entry for latest_changes.”

    2. “The settings could not be saved. Please correct the error above and try again.”

    Deleted plugin and reinstalled with same issue. Unable to add any folders.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter webcitymedia

    (@webcitymedia)

    Seeing this in all the sites we manage on different hosts.

    I am seeing the same error on the File Change Warning settings in my client sites.

    Oops, looks like something slipped through that should not have.
    Try and remove any code lines related to the ‘latest_changes’ setting in the following 2 files:
    (Create backup copies first !)

    • core\modules\file-change\scanner.php:
    • $this->settings['latest_changes'] = array(
      	'added' => count( $files_added ),
      	'removed' => count( $files_removed ),
      	'changed' => count( $files_changed ),
      );
    • core\modules\file-change\settings.php:
    • 'latest_changes' => array(),

    Works for me ??

    • This reply was modified 8 years, 4 months ago by pronl.

    … or update to 5.6.4 (released today).
    According to the 5.6.4 Changelog:

    Bug Fix: Fixed issue that could prevent saving of File Change settings, resulting in an error messages of “A validation function for file-change received data that did not have the required entry for latest_changes.”

    great! I just had this error when I try exclude w3tc cache from file changes

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Validation Function Error’ is closed to new replies.