Title: Scan Failed: Scan Failed: The previous scan has failed. Some sites may
Last modified: August 10, 2023

---

# Scan Failed: Scan Failed: The previous scan has failed. Some sites may

 *  [barryseal](https://wordpress.org/support/users/barryseal/)
 * (@barryseal)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/scan-failed-scan-failed-the-previous-scan-has-failed-some-sites-may/)
 * Hi,
 * I have been experiencing consistent scan errors since my WordPress site was migrated
   from an Australian based server to a US based server via my hosting company. 
   I contacted them about the issue and they replied saying they have increased 
   the max_execution_time to infinity.
 * The previous scan error read: “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.” We adjusted the “Maximum execution time for each scan stage”
   to 15 as suggested in a Wordfence YouTube video and we believe that error may
   have resolved for now.
 * However, a new scan error has emerged which reads: “Scan failed: Wordfence file
   scanner detected a possible infinite loop.” I need help in fixing this issue 
   and I have sent an error report to Wordfence via the Diagnostics > Tools area
   with this username: ‘barryseal.’
 * Thank you for helping me fix this issue as it has been persistent for some weeks
   now.
 * Barry
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fscan-failed-scan-failed-the-previous-scan-has-failed-some-sites-may%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/scan-failed-scan-failed-the-previous-scan-has-failed-some-sites-may/#post-16962336)
 * Hi [@barryseal](https://wordpress.org/support/users/barryseal/), thanks for getting
   in touch.
 * We have seen issues where `max_execution_time` being set higher than `60` causes
   scan problems, so even though I don’t recommend it being infinite, it sounds 
   like there was a problem before this was changed anyway.
 * Migrations can sometimes cause issues with optimization, but I think sending 
   us a diagnostic through the **Wordfence > Tools** menu is the best action to 
   take so we can look at your other settings on the new server. You can send that
   to us at **wftest @ wordfence . com**. 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](https://www.wordfence.com/wp-content/uploads/2021/09/diagnosticsendbyemail.png)
 * Thanks,
   Peter.
 *  Thread Starter [barryseal](https://wordpress.org/support/users/barryseal/)
 * (@barryseal)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/scan-failed-scan-failed-the-previous-scan-has-failed-some-sites-may/#post-16964098)
 * Hi [@wfpeter](https://wordpress.org/support/users/wfpeter/),
 * Thank you for your response. I have sent the report by email to Wordfence as 
   indicated in your previous message and attached my forum username: barryseal 
   in the required field. I look forward to your assessment of the situation and
   how to resolve the issue.
 * Thank you,
 * Barry
 *  Thread Starter [barryseal](https://wordpress.org/support/users/barryseal/)
 * (@barryseal)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/scan-failed-scan-failed-the-previous-scan-has-failed-some-sites-may/#post-16966920)
 * Hi [@wfpeter](https://wordpress.org/support/users/wfpeter/),
 * A courtesy follow up on my previous message to see if you’ve had a chance to 
   analyse the report I sent from my WordPress site, as per our previous messaging?
   The scan issue in Wordfence is still occuring.
 * Thank you,
 * [@barryseal](https://wordpress.org/support/users/barryseal/)

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

The topic ‘Scan Failed: Scan Failed: The previous scan has failed. Some sites may’
is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [scan](https://wordpress.org/support/topic-tag/scan/)

 * 3 replies
 * 2 participants
 * Last reply from: [barryseal](https://wordpress.org/support/users/barryseal/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/scan-failed-scan-failed-the-previous-scan-has-failed-some-sites-may/#post-16966920)
 * Status: not resolved