• I am getting this error on a website: Fatal error: Maximum execution time of 30 seconds exceeded in /wp-content/plugins/wordfence/lib/wordfenceScanner.php on line 312. Not sure what is up. I’ve never seen this error before. If it helps, this site is hosted on GoDaddy

Viewing 4 replies - 1 through 4 (of 4 total)
  • Maximum execution time can be change in .htaccess

    Next, add this line to your .htaccess file:
    php_value max_execution_time 300

    HI,

    It’s my first time using this forum, I have a similar error code but on a different file and line. It is ok to post here or is it better to create a new post ?

    The scan worked without problem for 2 days and yesterday, as I tried it started to give me this error. I tried changing the maximum execution in the wordfence’s options, as it was suggested (first, 30, then 15 and finally 12). None of this worked.
    Did changing htaccess did the trick @clamoreaux ?

    Fatal error: Maximum execution time of 30 seconds exceeded in /services/webpages/e/d/editionsedito.com/public/wp-content/plugins/wordfence/lib/wordfenceURLHoover.php on line 122

    thank you in advance for your help.

    Hello – I am getting the exact same error (wordfenceURLHoover.php on line 122 – just with a different timeout value of 120). It was working fine. I did update to word fence 6.3.7 just the other day – so is this the cause of the issuee?

    I have tried applying timeout adjustments in htaccess – but makes no difference.

    Please can someone advise.

    Thanks in advance

    TL;DR:

    Try again at a later time. Your issue may be Wordfence scanning while the use of other resources running your blog cause the Wordfence scan to exceed its max limit.

    EDIT: There’s also a setting in Wordfence (https://docs.wordfence.com/en/My_scans_don%27t_finish._What_would_cause_that%3F). A Maximum execution time for each scan stage setting is toward the bottom of the Wordfence Options page.

    The info text there says, “Blank for default. Must be greater than 7 and 10-20 or higher is recommended for most servers.” Obviously if you’re timing out at 30 seconds and you’ve tried re-running your scan (or repeating whatever action caused your PHP error in Wordfence) then you may consider increasing this number above 30.

    DETAILS

    I’m showing up a little late on this conversation, and my error was similar

    Maximum execution time of 30 seconds exceeded in … /wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/rules.php on line 758

    I took a look at the Wordfence Doc & Guides (https://docs.wordfence.com/en/Wordfence_options) and noticed that the only mention of ‘Max execution time’ is in the section about Maximum execution time for each scan stage so I reasoned the issue may be related to Wordfence exceeding its time limit when both it and other blog resources cause the Wordfence scan to run too slow. After reading this bit in WF Doc & Guides I repeated the action that caused my error and it worked with no error.

    Best wishes.

    • This reply was modified 7 years, 1 month ago by geoconklin. Reason: added resources
    • This reply was modified 7 years, 1 month ago by geoconklin.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Maximum execution time of 30 seconds exceeded’ is closed to new replies.