• Resolved Marcos Nobre

    (@onyx808)


    All of the sudden I started getting this email alerts with * Scan Time Limit Exceeded.

    What changed with the latest version? it never had this issue before.

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support wfphil

    (@wfphil)

    Hello,

    Can I confirm what version of Wordfence that you have installed please and I will ask the development team if anything has changed?

    In the meantime you can read our documentation below on scan time limits to see if there is a solution there for you.

    https://docs.wordfence.com/en/Scan_time_limit

    If you need any further assistance please feel free to ask.

    Thread Starter Marcos Nobre

    (@onyx808)

    Version 6.3.4, I run 4 different websites in different machines, and all 4 of them have this issue with exceeding the time limit for scanning…

    Plugin Support wfphil

    (@wfphil)

    Hello,

    Thank you for confirming the version that you have installed.

    Did you find the documentation useful in trying to resolve the issue? Also did you look at your error logs to see if there was anything pointing to a problem? You can download them from the Wordfence Diagnostics Tab on the Tools menu in the section “Log Files (Error messages from WordPress core, plugins, and themes)”

    Thread Starter Marcos Nobre

    (@onyx808)

    OK I think Im getting somewhere, for some reason it seems to be scanning all over the place, the activity logs say this

    Scan interrupted. Scanned 23168 files, 21 plugins, 1 themes, 1536 pages, 103 comments and 842286 records in 3 hours 2 seconds.

    I checked the website folder and there is only 1900 files total, why is it scanning 23k files?

    What are 842286 records?

    Thank you!

    • This reply was modified 7 years, 8 months ago by Marcos Nobre.
    • This reply was modified 7 years, 8 months ago by Marcos Nobre.
    Plugin Support wfphil

    (@wfphil)

    Hello,

    Thanks for the feedback. One solution for the high file count and scan time limit being exceeded is to adjust the maximum execution time as this has fixed the problem before.

    Go to the Wordfence Tools page, click the Diagnostics tab, and scroll to the bottom of the page.

    Click the link to view your system’s configuration.

    Look for the value for max_execution_time

    Set the “Maximum execution time for each scan stage” in the Options page to about 80% of the value for max_execution_time that you found above. So if it’s 90, try setting the option to 75.

    Try another scan and see if that solves the problem.

    One other possible reason for the incorrect high file count and scan time limit being exceeded is that you may have one or more symlinks in your document root which can cause a loop.

    A symlink, if you don’t know, may appear to be a directory in your website file-system but it doesn’t contain any files. Instead its purpose is to link to another file or directory, like a shortcut on Windows or an alias on a Mac.

    Let me give you an example. Let’s say you have a symlink called www in your document root ( e.g. public_html/www ) and its purpose is to link to your public_html directory. Wordfence can get caught in a loop following this symlink and keeping a track of the file count in your public_html folder as it goes around this loop. Eventually the scan can exceed the scan time limit.

    Can you check for me if you have any apparent symlinks in your website document root file-system.

    If so you you can add any symlink’s name, or the path of any symlink’s name, to the field “Exclude files from scan that match these wildcard patterns” on the Wordfence Options page. You may find enabling debugging helpful and send a detailed log.

    1. Go to the Diagnostics page and turn on “Enable debugging mode” near the bottom of the page

    2. Run a scan manually

    3. When the scan has finished (even if it stops early), click the link “Email activity log” above the Scan Detailed Activity box, and then click the Send button

    4. Then turn off the debugging mode option again on the Diagnostics page, for best performance.

    Plugin Support wfphil

    (@wfphil)

    As you haven’t replied to the instructions that I provided I will assume that the instructions did solve your issue and I will now mark this topic as resolved.

    If however, for whatever reason, you are still experiencing this issue and it is not resolved please respond to the post, which moves it back up the queue, and mark this topic as “not resolved”.

    Thank you.

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