• Resolved lzr0

    (@lzr0)


    Hi,
    When trying to run standard scan, getting repeatedly this error message:

    `Scan Failed
    The scan has failed because we received an unexpected response from the Wordfence servers. This may be a temporary error, though some sites may need adjustments to run scans reliably. Click here for steps you can try.

    The error returned was:

    Wordfence API error: Your site did not send an API key when contacting the Wordfence servers.`

    A few month ago the scan run normally. Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @lzr0, thanks for getting in touch with us!

    I have seen changes with hosting settings cause a previously working scan to stop, but firstly it’s worth getting some log information to see what’s happening.

    • Kill the existing scan if it is still running (The “Start New Scan” button turns in to a “Stop” button while the scan is running)
    • Go to your Scan > Scan Options and Scheduling page and locate the “Performance Options”
      Set “Maximum execution time for each scan stage” to 20 on the options page
    • Click to “Save Changes”
    • Go to the Tools > Diagnostics page
    • In the “Debugging Options” section check the circle “Enable debugging mode”
    • Click to “Save Changes”.
    • Start a new scan
    • 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.

    If this fixes the issue and scans run again, you can leave all the settings above except for “Enable Debugging Mode”.

    However, if the scan still fails, when posting the log here, could 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: For the fastest response time, please make sure and add any information or questions directly to this topic and not the email address above unless asked.

    Thanks,

    Peter.

    Thread Starter lzr0

    (@lzr0)

    Hi, Peter,
    Thank you for the suggestions, which I am going to implement. Before I saw your reply, I came across an old post where was suggested to delete entire WF folder, install WF assistant, clear all WF tables and re-installing WF- it did the trick.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wordfence API error- scan will not run’ is closed to new replies.