Title: Scan will not complete
Last modified: August 21, 2016

---

# Scan will not complete

 *  Resolved [sassafrascal](https://wordpress.org/support/users/sassafrascal/)
 * (@sassafrascal)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/scan-will-not-complete/)
 * Hi there, when I installed WordFence everything worked fine – when I upgraded
   everything stopped working. (Maybe not due to the upgrade, but timing) It’s constanly
   getting stuck on scans at “Comparing core WordPress files against originals in
   repository” and I can’t see any Live Updates anymore – the wheels just keep spinning
   over and over.
 * Have I done something in the settings for this to start happening?
 * [http://wordpress.org/extend/plugins/wordfence/](http://wordpress.org/extend/plugins/wordfence/)

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

 *  [bcr8tive](https://wordpress.org/support/users/bcr8tive/)
 * (@bcr8tive)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780676)
 * Same here Sassafrascal – never ends … on and on … til you kill it.
 *  [neilfin](https://wordpress.org/support/users/neilfin/)
 * (@neilfin)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780762)
 * Same here. Any progress on this?
 *  [fjavier](https://wordpress.org/support/users/fjavier/)
 * (@fjavier)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780766)
 * It is supposed to be working constantly (24 /7) scans live to auto protect, isn’t
   that its purpose?
 *  Thread Starter [sassafrascal](https://wordpress.org/support/users/sassafrascal/)
 * (@sassafrascal)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780767)
 * It wasn’t working consistently – it was getting stuck on one part of the scan.
 * I had to turn off Live Updates since I am working with W3 Total Cache, I don’t
   know why – but they were clashing. I also reset the scan configurations to the
   default values.
 * It’s working fine now.
 *  [fjavier](https://wordpress.org/support/users/fjavier/)
 * (@fjavier)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780768)
 * Sorry I lied, it should not be running in a permanent manner, here is the sheet
   from the developer addressing the issue… [](http://www.wordfence.com/docs/frequently-asked-questions/#6)
 *  [bcr8tive](https://wordpress.org/support/users/bcr8tive/)
 * (@bcr8tive)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780769)
 * fjavier,
 * Did you mean to attach something? Here is _what_ sheet?
 * I wish the developers would address this instead of it being in limbo for MONTHS.
 *  Plugin Author [Mark Maunder](https://wordpress.org/support/users/mmaunder/)
 * (@mmaunder)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780774)
 * Hi Guys,
 * We offer support on [http://www.wordfence.com](http://www.wordfence.com) in our
   forums and of course premium support via email. I’m just getting to these forums
   now so I do apologize for the delay. If anyone’s still having this issue please
   let me know and I’ll address it.
 * Regards,
 * Mark.
 *  [mikeotgaar](https://wordpress.org/support/users/mikeotgaar/)
 * (@mikeotgaar)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780776)
 * Similar issue with a site running WP 3.6.1 – plugin version 3.8.3
    New install
   on that site, not plugin update.
 * Scan gets stuck at “Scanned contents of (e.g.) 287 additional files at … per 
   second”
    Have to force kill to end scan
 * This extract from error log may be relevant
 * PHP Warning: Invalid argument supplied for foreach() in /home/****/wp-admin/includes/
   plugin.php on line 1290
 * PHP Warning: Cannot modify header information – headers already sent by (output
   started at /home/****/wp-admin/includes/plugin.php:1290) in /home/*****/wp-content/
   plugins/wordfence/lib/wfUtils.php on line 507
 * Wonder if this is a blank additional line at end of file issue?
 * Also noted ajax/cron error in server error logs (500 type error)
    /wp-admin/admin-
   ajax.php?action=wordfence_doScan&isFork=0&cronKey=9a5bb9437a87ee05bc0d0 and several
   server 500 errors for /wp-admin/admin-ajax.php
 *  [mikeotgaar](https://wordpress.org/support/users/mikeotgaar/)
 * (@mikeotgaar)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780777)
 * Partially resolved the scan not completing issue
    Found some information on the
   plugin forum that **AskApache caused problems**. I had this plugin installed,
   but not activated. Deleted it, and added htaccess rule for /wp-admin/admin-ajax.
   php – allow from all (Not an ideal solution)
 * Scan now completes when run manually. That’s good enough for me. Still getting
   the mentioned PHP Warnings in error logs – but I can live with that – WordFence
   is doing it’s job protecting the site.
 *  [Scott DeLuzio](https://wordpress.org/support/users/scottdeluzio/)
 * (@scottdeluzio)
 * [12 years ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780790)
 * I know this is an older question, but for anyone who is having this issue, check
   out the WordFence FAQ article on this topic. It might help you out. [http://support.wordfence.com/support/solutions/articles/1000011129-my-scans-don-t-finish-what-can-i](http://support.wordfence.com/support/solutions/articles/1000011129-my-scans-don-t-finish-what-can-i)
 *  [netcentsii](https://wordpress.org/support/users/netcentsii/)
 * (@netcentsii)
 * [12 years ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780791)
 * Oizuled
 * There seems to be a problem with that article instructions as written as this
   line:
 * “Set the “Maximum execution time for each scan stage” to about 80% of that value.
   So if it’s 90, try setting the option to 75.”
 * I’ve set the time to 15 seconds.
    My options page DOES NOT contain an option 
   labeled: ““Maximum execution time for each scan stage” “
 * There is a “max_execution_time” but that’s clearly not the same.
 *  [netcentsii](https://wordpress.org/support/users/netcentsii/)
 * (@netcentsii)
 * [12 years ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780792)
 * My scans will not complete, either. I have the latest WordPress version and plugin
   version installed and activated.
 * Except one time, every SCAN stalls at about 2200-2400 files and 25-35 MB data
   analyzed.
 * I checked the server error-log in the CPANEL as instructed by my host’s Tech 
   Support. It was empty. I checked the php error-log in root directory. No entries
   in eleven days since the site was created.
 * One time it completed when I iteratively increased the Options “Maximum memory
   Wordfence can use” from 256 to 384 MB. It’s still on 384 MB now but the scans
   won;t complete.
    I did set the “Maximum execution time for each scan stage” to
   15 secs too.
 *  [netcentsii](https://wordpress.org/support/users/netcentsii/)
 * (@netcentsii)
 * [12 years ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780793)
 * Where should I upload or submit the server error-log files?

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

The topic ‘Scan will not complete’ 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/)

 * 13 replies
 * 8 participants
 * Last reply from: [netcentsii](https://wordpress.org/support/users/netcentsii/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/scan-will-not-complete/#post-3780793)
 * Status: resolved