Title: Scan hangup
Last modified: July 3, 2020

---

# Scan hangup

 *  Resolved [Indent](https://wordpress.org/support/users/indent/)
 * (@indent)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/)
 * I’ve been using Wordfence (free version) couple of months with no problems. I
   don’t understand why it suddenly says “The current scan looks like it has failed.”
   I’ve added `define('WORDFENCE_SCAN_FAILURE_THRESHOLD', 600);` in wp-config.php,
   also edited the Scan Options & Scheduling > Performance Options > Maximum execution
   time for each scan stage to 20. The scan always stops at 5554 analyzed files 
   with notification of “Scan Failed”. Any suggestions?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/scan-hangup/page/2/?output_format=md) 
[→](https://wordpress.org/support/topic/scan-hangup/page/2/?output_format=md)

 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13079142)
 * Can you do the following so I can get the information I need to help you?
 * * 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 from the Log (click the “Show Log” link) or
   so of the activity log and paste them here
 * Tim
 *  Thread Starter [Indent](https://wordpress.org/support/users/indent/)
 * (@indent)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13089678)
 * Thanks for your response. The diagnostic page is blank. If I drop a phpinfo()
   file on the server I get all the PHP info, so I guess that’s not disabled.
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13092673)
 * Can you try a complete reinstall? Make sure and select the option (Global Options
   page) to Delete all wordfence tables and data and save the changes first.
 * This will remove all your settings so you may want to export the settings on 
   the Wordfence Tools > Import/Export page first. Also remove extended protection
   on the firewall.
 * Let me know how it goes.
 * Tim
 *  Thread Starter [Indent](https://wordpress.org/support/users/indent/)
 * (@indent)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13152781)
 * Hi, sorry I took so long to get back to you.
 * I followed your instructions, but when I try to activate a fresh install of the
   plugin I get an internal server error 500 (?).
 * Don’t know if this is relevant, but I’m using SSL.
 * Jan
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13158018)
 * Did you completely delete the wordfence plugin folder in wp-content/plugins? 
   If not can you try that using FTP and then reinstall Wordfence from the **plugins**
   > **add new** page on your site?
 * Tim
 *  Thread Starter [Indent](https://wordpress.org/support/users/indent/)
 * (@indent)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13158030)
 * Yes, I deleted Wordfence plugin folder, wflogs folder, wordfence-waf.php, user.
   ini, Wordfence WAF in .htaccess and all wp_wf-tables.
 *  Thread Starter [Indent](https://wordpress.org/support/users/indent/)
 * (@indent)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13158056)
 * Installed Wordfence via “plugins > add new”, same error.
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13158116)
 * Can you check the server error logs for any messages around the time this happens?
 * Tim
 *  Thread Starter [Indent](https://wordpress.org/support/users/indent/)
 * (@indent)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13160078)
 * From the server error log:
 * /wp-admin/plugins.php?plugin_status=all&paged=1&s” “Mozilla/5.0 (Macintosh; Intel
   Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 
   Safari/537.36″ WordPress database error Table ‘d27462.wp_wfConfig’ doesn’t exist
   for query SELECT name, val, autoload FROM wp_wfConfig WHERE name = ‘allowLegacy2FA’
   made by activate_plugin, include_once(‘/plugins/wordfence/wordfence.php’), require_once(‘/
   plugins/wordfence/lib/wordfenceClass.php’), wfCredentialsController::useLegacy2FA,
   wfCredentialsController::allowLegacy2FA, wfConfig::get
 * /wp-admin/plugins.php?plugin_status=all&paged=1&s” “Mozilla/5.0 (Macintosh; Intel
   Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 
   Safari/537.36″ WordPress database error Table ‘d27462.wp_wfConfig’ doesn’t exist
   for query SELECT name, val, autoload FROM wp_wfConfig WHERE name = ‘debugOn’ 
   made by activate_plugin, include_once(‘/plugins/wordfence/wordfence.php’), wordfence::
   install_actions, wordfence::runInstall, wordfence::status, wordfence::isDebugOn,
   wfConfig::get
 * /wp-admin/plugins.php?plugin_status=all&paged=1&s” “Mozilla/5.0 (Macintosh; Intel
   Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 
   Safari/537.36″ /opt/php/bin/default: symbol lookup error: /opt/php/bin/default:
   undefined symbol: curl_mime_free
 * /wp-admin/plugins.php?plugin_status=all&paged=1&s” “Mozilla/5.0 (Macintosh; Intel
   Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 
   Safari/537.36″ End of script output before headers: plugins.php
 * /wp-admin/plugins.php?plugin_status=all&paged=1&s” “Mozilla/5.0 (Macintosh; Intel
   Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 
   Safari/537.36” /opt/php/bin/default: symbol lookup error: /opt/php/bin/default:
   undefined symbol: curl_mime_free
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13165312)
 * It looks like all the tables aren’t being created. wfconfig is very important.
   Check your database permissions because “CREATE” may be missing.
 * Tim
 *  Thread Starter [Indent](https://wordpress.org/support/users/indent/)
 * (@indent)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13166726)
 * I have to check with the web host about user privileges because that option is
   disabled in phpMyAdmin, but I see that when I try to activate the plugin all 
   WF tables are created, wp_wfconfig table is also created and has 186 rows. Content
   > wflogs folder is also created, no changes in .htaccess though.
    -  This reply was modified 5 years, 11 months ago by [Indent](https://wordpress.org/support/users/indent/).
    -  This reply was modified 5 years, 11 months ago by [Indent](https://wordpress.org/support/users/indent/).
    -  This reply was modified 5 years, 11 months ago by [Indent](https://wordpress.org/support/users/indent/).
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13180062)
 * Thanks for letting us know.
 * Can you try these steps again so we can see the scan log entries?
 * * 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 from the Log (click the “Show Log” link) or
   so of the activity log and paste them here
 * Tim
 *  Thread Starter [Indent](https://wordpress.org/support/users/indent/)
 * (@indent)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13180519)
 * I’m not sure how that’s possible.
 * > Can you try a complete reinstall? Make sure and select the option (Global Options
   > page) to Delete all wordfence tables and data and save the changes first.
   > This will remove all your settings so you may want to export the settings on
   > the Wordfence Tools > Import/Export page first. Also remove extended protection
   > on the firewall.
   > Let me know how it goes.
   > Tim
 * > Hi, sorry I took so long to get back to you.
   > I followed your instructions, but when I try to activate a fresh install of
   > the plugin I get an internal server error 500 (?).
   > Don’t know if this is relevant, but I’m using SSL.
   > Jan
 * > Did you completely delete the wordfence plugin folder in wp-content/plugins?
   > If not can you try that using FTP and then reinstall Wordfence from the plugins
   > > add new page on your site?
   > Tim
 * > Yes, I deleted Wordfence plugin folder, wflogs folder, wordfence-waf.php, user.
   > ini, Wordfence WAF in .htaccess and all wp_wf-tables.
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13208456)
 * Until we hear back from the hosting provider about the database permissions I
   don’t think there is anything further we can do. The last errors you sent showed
   the tables weren’t created.
 * Tim
 *  Thread Starter [Indent](https://wordpress.org/support/users/indent/)
 * (@indent)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/scan-hangup/#post-13219588)
 * I finally got word from my hosting provider, the problem was with the compiling
   in their version of PHP 7.3. With PHP 7.2 everything worked just fine. I’m a 
   little frustrated, to say the least, as are you I imagine. What a waist of time.
 * Thanks for not giving up on this.
 * J

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/scan-hangup/page/2/?output_format=md) 
[→](https://wordpress.org/support/topic/scan-hangup/page/2/?output_format=md)

The topic ‘Scan hangup’ 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/)

 * 16 replies
 * 2 participants
 * Last reply from: [Indent](https://wordpress.org/support/users/indent/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/scan-hangup/page/2/#post-13246725)
 * Status: resolved