Scans never complete – memory and timeout errors
-
I’m really struggling to get scans to complete and have seemingly exhausted all options. My current WordPress / PHP config is below:
WordPress 4.9.5
PHP 7.0.29
memory_limit 512M
max_execution_time 120
post_max_size 256MIn light of the problems I’ve been facing, I currently have the below WordFence settings applied:
Scan Type: Limited Scan
Use low resource scanning: Enabled
Time limit that a scan can run in seconds: blank / default
How much memory should Wordfence request when scanning: 256M
Maximum execution time for each scan stage: 96
Enable SSL Verification: DisabledI also have a plugin installed that displays current memory in use by the site, which settles down at around 46MB (9%). The memory available to the WordPress installation is 512MB – it was upgraded to this level by my host after requesting additional resources. They have told me that this is the maximum level that they can increase it to.
Even with the above settings configured as they are (based on WordFence support article / forum advice, I still can’t seem to get a scan to complete. At the same stage each time (“Analyzed 7317 files containing 108.58 MB of data.”), I receive one of two errors:
Fatal error: Out of memory (allocated 60817408) (tried to allocate 1056768 bytes) in /path/to/file/cURL.php on line 484
or
Scan terminated with error: There was an error connecting to the Wordfence scanning servers: cURL error 28: connect() timed out!
I’m at a loss with what to do next. It seems I have sufficient memory available and configured appropriately, but the scans always fail. I’m close to throwing in the towel and trying All In One WP Security and Firewall instead, but I don’t really want to have to do this as I really like WordFence. Any advice would be very much appreciated.
The page I need help with: [log in to see the link]
- The topic ‘Scans never complete – memory and timeout errors’ is closed to new replies.