• Resolved SRD75

    (@srd75)


    Hi, our Wordfence scan produces an error:

    Scan Failed

    The current scan looks like it has failed. Its last status update was 1 hour 10 minutes ago. You may continue to wait in case it resumes or stop and restart the scan. Some sites may need adjustments to run scans reliably. 

    We tried using:

    define('WORDFENCE_SCAN_FAILURE_THRESHOLD', 600);

    but the issue remained, same for

    define('WORDFENCE_SCAN_FAILURE_THRESHOLD', 2400);

    We tried setting Maximum execution time for each scan stageto 20, but the issue remains.

    Help appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support wfmargaret

    (@wfmargaret)

    Hi @srd75,

    Thank you for reaching out!

    Please do the following for me so I can get the information I need:

    • Stop any running scan by pressing the STOP SCAN button.
    • Click on Scan Options and Scheduling.
    • In Advanced Scan Options, enable the option Use only IPv4 to start scans.
    • Hit the SAVE CHANGES button.
    • Go to Wordfence > Tools > Diagnostics and expand the Debugging Options section.
    • Enable the option Enable debugging mode.
    • Disable the option Start all scans remotely if it is enabled.
    • Hit the SAVE CHANGES button.
    • Start a new scan.
    • Copy the last 20 lines or so of the activity log (click the “Show Log” link) once the scan finishes and paste them in this post.

    Remember to disable Enable debugging mode after you have finished.

    Can you also send a diagnostic report to wftest @ wordfence . com? You can find the link to do so at the top of the Wordfence > Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    NOTE: It should look as follows – Screenshot of Tools > Diagnostic > Send by Email

    Thanks,
    Margaret

    Thread Starter SRD75

    (@srd75)

    Hi Margaret,

    When sending the email through Diagnostics > Send Report by Email, there is an error:

    > There was an error while sending the email.

    Plugin Support wfmargaret

    (@wfmargaret)

    Hi @srd75,

    Thank you for letting me know. Please use the EXPORT button instead to export a copy of the diagnostics. Then, manually send an email to wftest @ wordfence . com. Attach the diagnostics to that email and use your forum username as the subject. Let me know here once you’ve sent that.

    Thanks,
    Margaret

    Thread Starter SRD75

    (@srd75)

    Hi Margaret,

    When sending report via email, there is an error:

    There was an error while sending the email.

    Help appreciated.

    Plugin Support wfmargaret

    (@wfmargaret)

    Hi @srd75,

    No worries! Just to clarify: the EXPORT button is different from the “Send Report by Email” feature. Here’s what to do:

    1. Go to Wordfence > Tools > Diagnostics
    2. At the top of the page, click the EXPORT button (not the email link)
    3. This will download a text file to your computer
    4. Open your regular email program (Gmail, Outlook, etc.) and compose a new message to wftest @ wordfence . com
    5. Attach the downloaded text file to that email
    6. Use your forum username (srd75) as the subject line
    7. Reply here once you’ve sent it

    Also, were you able to complete the scan troubleshooting steps from my first reply? Specifically, enabling “Use only IPv4 to start scans,” enabling debugging mode, disabling “Start all scans remotely,” and then running a new scan? If so, please paste the last 20 lines or so from the activity log (click “Show Log” on the scan page) in your reply.

    Thanks,
    Margaret

    The same thing is happening for us too. I followed the steps and still not working, I was able to send through the error log.

    Thread Starter SRD75

    (@srd75)

    i see, thanks Margaret, exported logs emailed to you.

    Plugin Support wfmargaret

    (@wfmargaret)

    Hi @srd75,

    Thank you for sending the diagnostics! I checked your site, and it looks like it’s running on a LiteSpeed server. LiteSpeed servers are known to silently kill long-running PHP processes like Wordfence scans, which could explain why your scans are failing.

    We have a guide specifically for this issue that you can follow to fix it:

    Documentation: https://www.wordfence.com/help/advanced/system-requirements/litespeed/
    Video walkthrough: https://youtu.be/SXvfSaY1q_c

    If the LiteSpeed fix doesn’t resolve the issue, please paste the last 20 lines or so of the scan activity log (click the “Show Log” link on the scan page) once the scan finishes or fails, so I can take a closer look.

    @js2support, we haven’t received an email from you. We also ask that you start your own support topic, as we like to keep topics separate. Every WordPress environment is different, so even though the error message may look the same, the underlying cause is often unique to each site.

    Thanks,
    Margaret

    Thread Starter SRD75

    (@srd75)

    Thanks Margaret,

    That .htaccess code worked:

    # BEGIN LiteSpeed noabort
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=noabort:1]
    </IfModule>
    # END liteSpeed noabort

    The scan completed properly now.

    Thanks!

    Plugin Support wfmargaret

    (@wfmargaret)

    Hi @srd75,

    Excellent, thank you for letting me know! I’ll go ahead and resolve this topic.

    Have a great weekend!

    Cheers,
    Margaret

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

You must be logged in to reply to this topic.