Title: scan error
Last modified: April 27, 2018

---

# scan error

 *  [winner singh](https://wordpress.org/support/users/winner-singh/)
 * (@winner-singh)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/)
 * HI,
 * Today I got the error while scanning the website via wordfence: [https://ibb.co/j70wPb](https://ibb.co/j70wPb)
 * Even I increased the Maximum execution time for each scan stage to 60
 * “How much memory should Wordfence request when scanning”: 300 Megabytes
 * PHP version is 7.0
 * but still, error is same while scanning [https://ibb.co/j70wPb](https://ibb.co/j70wPb)
    -  This topic was modified 8 years, 1 month ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

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

 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/#post-9761931)
 * Hi,
    I recommend enabling “[debug mode](https://docs.wordfence.com/en/Wordfence_diagnostics#Enable_debugging_mode_.28increases_database_load.29)”-
   temporarily- from (Wordfence > Tools > Diagnostics) then run a new scan and when
   it hangs, send me the scan activity log to “alaa [at] Wordfence [dot] com”.
 * Thanks.
 *  Thread Starter [winner singh](https://wordpress.org/support/users/winner-singh/)
 * (@winner-singh)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/#post-9763193)
 * Hello,
 * The email also sent, As you told me that to enable the Enable debugging mode,
   I enabled it and run the scan again. but still, it says The current scan looks
   like it has failed. Please look at the screenshots.
 * [https://ibb.co/eDd4Ub](https://ibb.co/eDd4Ub)
    [https://ibb.co/ge8tNw](https://ibb.co/ge8tNw)
   [https://ibb.co/jd402w](https://ibb.co/jd402w)
 * Thank you
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/#post-9764142)
 * Hello,
    You must set “Maximum execution time for each scan stage” to be less 
   than the “max_execution_time” set in your PHP settings, I can see you set it 
   to 1000, I don’t believe there is a hosting provider than can let a script running
   for more than 15 minutes, this isn’t applicable, please follow [this guide](https://docs.wordfence.com/en/Wordfence_options#Maximum_execution_time_for_each_scan_stage)
   while setting “Maximum execution time for each scan stage”:
 * > First try 30, save and do a scan. If the scan does not complete, then try 15,
   > save and do a scan. If it still doesn’t complete then try 12. If you still 
   > don’t have any luck getting a scan to complete, then there may be another problem
   > or you may have to ask your hosting provider to increase the amount of time
   > a web server process is allowed to execute.
 * Thanks.
 *  Thread Starter [winner singh](https://wordpress.org/support/users/winner-singh/)
 * (@winner-singh)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/#post-9765672)
 * Now another problem occurs that is “Time limit that a scan can run in seconds”
 * [https://ibb.co/fiMJqG](https://ibb.co/fiMJqG) as it says by default it is 0 
   to 3 hours, what should time I add to this [https://ibb.co/cWHoPb](https://ibb.co/cWHoPb)
 *  Thread Starter [winner singh](https://wordpress.org/support/users/winner-singh/)
 * (@winner-singh)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/#post-9766042)
 * Now again that error comes [https://ibb.co/iGxYPb](https://ibb.co/iGxYPb) I tried
   with 15, 30 (first time no problem second time again error), now I did with 12
   and again error comes [https://ibb.co/iGxYPb](https://ibb.co/iGxYPb) what should
   I do now.
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/#post-9768545)
 * Hi,
    In the plugin’s options page, check “[Scans to include](https://docs.wordfence.com/en/Wordfence_options#Scans_to_Include)”
   section and un-check “[Scan images, binary, and other files as if they were executable](https://docs.wordfence.com/en/Wordfence_options#Scan_image_files_as_if_they_were_executable)”
   and also make sure “[Enable HIGH SENSITIVITY scanning](https://docs.wordfence.com/en/Wordfence_options#Enable_HIGH_SENSITIVITY_scanning)”
   isn’t checked.
 * Also, on this website do you have symlinks? remember that you can always use “
   [Exclude files from scan that match these wildcard patterns](https://docs.wordfence.com/en/Wordfence_options#Exclude_files_from_scan_that_match_these_wildcard_patterns.)”
   to exclude (Log files, backup files or cache files).
 * Let me know how it goes,
    Thanks.
 *  Thread Starter [winner singh](https://wordpress.org/support/users/winner-singh/)
 * (@winner-singh)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/#post-9772342)
 * Finally problem is solved after un-check the option of “Scan images, binary, 
   and other files as if they were executable”
 * but why error comes if i check this option?
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/#post-9776354)
 * It could be that your website has a lot of images with low server resources to
   allow the scanner to scan all of them without hitting some limits, in this case
   I suggest keeping “[Disable Code Execution for Uploads directory](https://docs.wordfence.com/en/Wordfence_options#Disable_Code_Execution_for_Uploads_directory)”
   option enabled.
 * Thanks.
 *  Thread Starter [winner singh](https://wordpress.org/support/users/winner-singh/)
 * (@winner-singh)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/#post-9777683)
 * Yes, I disabled it when I install the plugin, Thank you for your help but tell
   me what if I want to scan all the images folder?

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

The topic ‘scan error’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [winner singh](https://wordpress.org/support/users/winner-singh/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/scan-error-6/#post-9777683)
 * Status: not resolved