• Resolved memeworx

    (@memeworx)


    I keep getting the following error but my PHP settings are already set very high and at the limit.

    ERROR RECEIVED:
    Scan Failed
    The previous scan has terminated because the time limit of 3 hours was reached. This limit can be customized on the options page.
    Scan Time Limit Exceeded
    Type: Time Limit

    PHP SETTINGS:
    Memory limit: 512MB
    Max execution time: 120 minutes

    What else can I do to fix this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @memeworx, thanks for reaching out to us.

    Believe it or not, a higher max_execution_time value has been found to be detrimental to scan speed. We have seen issues arise when this number is above 60, although Wordfence will only ever attempt to use half of this value by default. Certainly try changing that number before trying the following so I can get the information I need to help you?

    • Stop the existing scan if it is still running (The “Start New Scan” button turns into a “Stop” button while the scan is running).
    • Go to your Wordfence > Scan > Manage Scan and locate the “Performance Options” section. Set “Maximum execution time for each scan stage” to 20.
    • Click to “Save Changes”.
    • Go to the Tools > Diagnostics page.
    • In the “Debugging Options” section check the circle “Enable debugging mode”.
    • If “Start scan remotely” is checked, uncheck this option.
    • Click to “Save Changes”.
    • Start a new scan on the Scan page.
    • If the scan fails again, copy the last 20 lines or so from the Log (click the “Show Log” link) once the scan finishes and paste them in the post.

    On some sites, this will correct the issue. Adding “20” for the “Maximum execution time for each scan stage” tells the scan to pause every 20 seconds and start again where it left off, which makes the scan more performance-friendly for some servers. If this fixes the issue and scans run again, you can leave all the settings above except for “Enable Debugging Mode”.

    For a screenshot of my recommended Performance setting options – Click Here.

    Thanks,

    Peter.

Viewing 1 replies (of 1 total)
  • The topic ‘Scan Time Limit Exceeded’ is closed to new replies.