WordPress.org

Ready to get started?Download WordPress

Forums

WordPress File Monitor Plus
[resolved] PHP Fatal error when scanning with Hash check 'On'. (4 posts)

  1. o6asan
    Member
    Posted 2 years ago #

    I have a PHP error when scanning the files since updating to version 2.0.

    It occurs when I use File Hash Check Method is 'On'.

    Today, I updated. But nothing changed.
    Still I have "PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\WWWROOT\\wp-content\\plugins\\wordpress-file-monitor-plus\\classes\\wpfmp.class.php on line 292" on my Apache error log.

    When I don't use File Hash Check Method, the plugin works very well.

    How can I fix it?

    Thanks in advance.

    http://wordpress.org/extend/plugins/wordpress-file-monitor-plus/

  2. o6asan
    Member
    Posted 2 years ago #

    I made a mistake in writing.

    On the new version, it's not 'line 292' but 'line 296'.
    Anyway, the plugin stuck at the line,
    $dirs[$full_file_name]["md5"] = md5_file( $full_dir_file_name );

    Thanks in advance.

  3. Scott Cariss
    Member
    Plugin Author

    Posted 2 years ago #

    Basically what is happening is that with the hashing check switched on the scan is taking longer than 30 seconds to complete and is exiting as your PHP setting is only set to run no more than 30 seconds.

    You could try putting set_time_limit(60); in your WordPress config file to give you an extra 30 seconds to run the script.

  4. o6asan
    Member
    Posted 2 years ago #

    Thanks a lot, Scott.

    When I put set_time_limit(90); in my WordPress config file, it works.

    My own present server, the old laptop computer, has low specs.
    Mobile Intel Pentium 4M, 1.8GHz
    Only 512 MB RAM,
    and its OS is WindowsXP Home Edition. But my site is not very big.

    Until version 1.4.1 which did not support multisite, I had no that kind of error. The old version scanned each child site, and the new scans all sites as A big site. So, it takes much longer time than usual. Am I right?

    On the next or more newer version, is it possible to continue multisite support and to scan each child site like the old version? If possible, I will appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.