Support » Plugin: Sucuri Security - Auditing, Malware Scanner and Security Hardening » Sucuri plugin causing login page to break, forced to use recovery mode to access

  • We are receiving an email from WordPress to access our site in recovery mode and disable Sucuri plugin. The plugin worked without issue for a couple of months on this site and on the another there has not been an issue.

    The issue highlighted in the email is: An error of type E_ERROR was caused in line 431 of the file /public_html/wp-content/plugins/sucuri-scanner/src/fileinfo.lib.php. Error message: Allowed memory size of 41943040 bytes exhausted (tried to allocate 4194312 bytes). Not sure where to begin to resolve the issue since there is little information on where in the scanning process the memory size gets exhausted. The site had previous issues with bad actors, so we a cautious of ignoring file locations.

    Any insight or assistance is appreciated.

    Thanks in advanced,


Viewing 7 replies - 1 through 7 (of 7 total)
  • @salzheimertrc Are you able to share the domain name? It looks like this particular PHP function would be resource heavy as it is turns every line of text from files into arrays, so a large file (many thousands lines of code) could trigger the php.ini memory_limit.

    I’m guessing it was something within wp-content/plugins/ or wp-content/themes/ but would need more info to be more accurate.

    I am having this problem also.

    I also have this issue on 2 websites.
    The reason is a heavy memory consumption that runs into PHP memory limit.
    On one of the websites, I was able to increase this memory limit (128M -> 256M) but unfortunately on the second one, which lies on a cheaper hosting offer, this was not possible so I had to deactivate the plugin.

    I’m now waiting for a new Sucuri release that, hopefully, fixes the problem…

    I am also having this issue on a couple of site – ugh. Waiting on Sucuri to update their plugin!

    The same issue is also happening in one of the sites – strangely enough, that is the only site that encounters such issue despite there are numerous sites that have Sucuri plugin installed in the same server (with the same memory limit assigned to them)

    I am having the same error. Error message: Allowed memory size of 268435456 bytes exhausted (tried to allocate 67108872 bytes)



    Same issue and only on one of my sites. I cant deactivate it either as I get an error message when doing so.

    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    It is throwing the above error performing pretty much any action within the WP Admin site. So I couldnt deactivate the plugin. After some googling, please see how I fixed the issue below.

    For anyone that is having trouble,
    – FTP to your files and rename the wp-content\plugin directory to something like wp-content\pluginbackup.
    – Reload your plugin page on your site and you should get a message for each plugin saying its been deactivated.
    – Now rename the folder back to the original.
    – Reload the plugin page and you can reactivate the plugins again.

    In this case minus the Sucuri plugin. The site is now working again.

    • This reply was modified 2 weeks ago by waynesingh.
    • This reply was modified 2 weeks ago by waynesingh.
    • This reply was modified 2 weeks ago by waynesingh. Reason: Added solution and reformatted
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.