• Resolved ericofelipo

    (@ericofelipo)


    When I have ‘Scan image files as if they were executable’ checked, I get this error:

    [Sep 15 16:36:13:1442334973.731280:1:error] <br /> <b>Fatal error</b>: Maximum execution time of 30 seconds exceeded in <b>/home/jshanequery/degreequery.com/wp-content/plugins/wordfence/lib/wordfenceScanner.php</b> on line <b>161</b><br />
    [Sep 15 16:34:55:1442334895.687481:4:info] Scan process ended after forking.
    [Sep 15 16:34:45:1442334885.169537:4:info] Scanning contents: wp-content/uploads/2014/08/SplitShire_3444-2.jpg (Size:3.35M Mem:39.5M)
    [Sep 15 16:34:45:1442334885.167650:2:info] Scanned contents of 763 additional files at 1.08 per second
    [Sep 15 16:34:44:1442334884.391969:4:info] Scanning contents: wp-content/uploads/2014/08/SplitShire_3444-2-300x200.jpg (Size:32992B Mem:39.5M)
    [Sep 15 16:34:44:1442334884.035396:4:info] Scanning contents: wp-content/uploads/2014/08/SplitShire_3444-2-150x150.jpg (Size:17367B Mem:39.5M)
    [Sep 15 16:34:44:1442334884.033523:2:info] Scanned contents of 761 additional files at 1.08 per second
    [Sep 15 16:34:38:1442334878.095182:4:info] Scanning contents: wp-content/uploads/2014/08/SplitShire_3444-2-1024x682.jpg (Size:265349B Mem:39.5M)
    [Sep 15 16:34:38:1442334878.081710:2:info] Scanned contents of 760 additional files at 1.09 per second

    https://wordpress.org/plugins/wordfence/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WFMattR

    (@wfmattr)

    Scanning large files can cause PHP to run out of time — it looks like your host has a limit of 30 seconds.

    Often, this can be fixed by adjusting the max execution time in Wordfence — in your case since it is already failing, you may need to set it as low as “12” — details on the option are included here:
    My scans don’t finish, what would cause that?

    If this still doesn’t help, you would need to ask your host to raise the max_execution_time in php.ini. Most Wordfence users don’t have image file scanning enabled, unless cleaning up a hack, so you might just need to disable that, if the host will not help.

    Thread Starter ericofelipo

    (@ericofelipo)

    I updated php.ini to

    max_execution_time = 500
    memory_limit = 256M

    and set ‘Maximum execution time for each scan stage’ to 100.

    Not sure if it’s too much but it works. thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘fatal error when scanning images as executable’ is closed to new replies.