Title: Scan doesn&#039;t complete
Last modified: August 31, 2016

---

# Scan doesn't complete

 *  Resolved [hanino](https://wordpress.org/support/users/hanino/)
 * (@hanino)
 * [10 years ago](https://wordpress.org/support/topic/scan-doesnt-complete-1/)
 * Hello team and users,
 * when I run a scan, it stucks when comparing wp core against originals and when
   scanning for known malware files (I killed the process after 2 days). The activity
   log shows:
 *     ```
       ...
       [May 11 10:42:33] Analyzed 900 files containing 7.95 MB of data so far
       [May 11 10:42:35]  Fatal error: Out of memory (allocated 105644032) (tried to allocate 20939201 bytes) in /mnt/webt/b2/82/52576382/htdocs/wp-includes/wp-db.php on line 1262
       ```
   
 * My memory limit ist 128M. The wordfence memory test shows:
 *     ```
       Wordfence Memory benchmarking utility version 6.1.7.
       This utility tests if your WordPress host respects the maximum memory configured
       in their php.ini file, or if they are using other methods to limit your access to memory.
   
       --Starting test--
       Current maximum memory configured in php.ini: 128M
       Current memory usage: 10.25M
       Setting max memory to 90M.
       Starting memory benchmark. Seeing an error after this line is not unusual. Read the error carefully
       to determine how much memory your host allows. We have requested 90 megabytes.
       Completing test after benchmarking up to 80.25 megabytes.
       --Test complete.--
   
       Congratulations, your web host allows you to use at least 80.25 megabytes of memory for each PHP process hosting your WordPress site.
       ```
   
 * The max_execution_time variable is set to 0. My php-version is 5.6.
 * I tried various things:
    - Set maximum execution time for each scan stage to 15s
    - Set requestet memory to 300, 350 and 400
    - Set php to version 7
 * With php 7 the scan analyses some more files (15MB) and no error is logged. But
   unfortunately the scan doesn’t complete as well.
 * Is 128M memory limit enough? The plugin wp-memory-usage indicates that 9% of 
   memory are used…
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  [zmtgf](https://wordpress.org/support/users/zmtgf/)
 * (@zmtgf)
 * [10 years ago](https://wordpress.org/support/topic/scan-doesnt-complete-1/#post-7369351)
 * I have the same problem. Help please
    Tnx
 *  [zmtgf](https://wordpress.org/support/users/zmtgf/)
 * (@zmtgf)
 * [10 years ago](https://wordpress.org/support/topic/scan-doesnt-complete-1/#post-7369352)
 * I have the same problem. Help please
    Tnx
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/scan-doesnt-complete-1/#post-7369498)
 * Hello hanino,
    Version 6.1.8 is now available and it includes this fix: “Change
   wfConfig::set_ser to split large objects into multiple queries”. We are hoping
   that this fix will sort out most issues with the prepare function in wp-db (wp-
   db.php lines 1246-1266in WordPress 4.5). The fix does require the PHP extension
   MySQLi. You can check if MySQLi is enabled on your site via the “Click to view
   your system’s configuration in a new window” on Wordfence Diagnostics page. Just
   click that link and see if you find “MySQLi” on the list. If your host has disabled
   php_info, please contact your host to find out if you have the extension MySQLi.
 * Please update to the latest version of Wordfence and let us know how you’re doing
   after that!
 *  Thread Starter [hanino](https://wordpress.org/support/users/hanino/)
 * (@hanino)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/scan-doesnt-complete-1/#post-7369501)
 * Thank you wfasa!!
 * MySQLi is active and with wf 6.1.8 scans complete successfully.
 * Bye

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

The topic ‘Scan doesn't 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/)

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [hanino](https://wordpress.org/support/users/hanino/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/scan-doesnt-complete-1/#post-7369501)
 * Status: resolved