• Hi there,

    I’m receiving the following error when using iThemes security:

    filectime() [function.filectime]: stat failed for /home/username/public_html/wp-content/uploads/ithemes-security/lockout_[IPADDRESS].lock

    Where [IPADDRESS] is an IP address that has presumably been locked out of the site.

    I can see that the file(s) reported by the error don’t actually exist in the /wp-content/uploads/ithemes-security/ folder.

    I’ve tried relaxing the permissions on the folder to see if it was because the files couldn’t be created and thus the filectime() function would fail, but without any joy.

    Would be most grateful if anyone else has any ideas?

    Cheers.

    p.s. Using iThemes Version 4.5.8

    https://wordpress.org/plugins/better-wp-security/

Viewing 1 replies (of 1 total)
  • Turns out the lockout_[IPADDRESS].lock is not a file but a directory
    Apparently the PHP filectime() function can also be performed on a directory … (even though PHP online manual only mentions files …)

    Do you have WP_DEBUG set to true in wp-config.php ?

    Is the error you receive more specific on which line from which file it fails ?

    As far as I can see the only time iTSec uses the filectime() function is in class-itsec-files.php file. And its use is preceeded by @:

    $dir_age = @filectime( $lock_file );

    So when filectime() function fails (because $lock_file does not exist) no error is displayed … –> $dir_age = false

    dwinden

Viewing 1 replies (of 1 total)

The topic ‘filectime() error in class-itsec-files.php’ is closed to new replies.