Title: Memory Exhausted with Default Comments
Last modified: October 9, 2022

---

# Memory Exhausted with Default Comments

 *  Resolved [jordanr](https://wordpress.org/support/users/jordanr/)
 * (@jordanr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/memory-exhausted-with-default-comments/)
 * SG Security seems to be incompatible with default WP comments for me. When I 
   enable comments I get memory errors. When I disable the plugin everything works.
   The comments actually do get posted to the database. I just get redirected to
   error page. 500 errors. It started happening I think related to most recent update
   of plugin (before then it worked fine) but going back to prior plugin versions
   doesn’t resolve issue. Anyone had this happen to them?
 * I am hosted on Siteground. Site tools says my PHP memory limit is 768M
 *     ```
       Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 20480 bytes) /public_html/wp-includes/wp-db.php on line 2135
       There has been a critical error on this website.
   
       Learn more about troubleshooting WordPress.
   
       Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 77824 bytes) in /public_html/wp-content/plugins/sg-security/templates/error.php on line 7
       ```
   

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

 *  Thread Starter [jordanr](https://wordpress.org/support/users/jordanr/)
 * (@jordanr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/memory-exhausted-with-default-comments/#post-16082902)
 * Also it happens when I post comments as a guest…not as a logged in user.
 *  Plugin Support [Dimitar Petrov](https://wordpress.org/support/users/demiro/)
 * (@demiro)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/memory-exhausted-with-default-comments/#post-16082919)
 * Hello [@jordanr](https://wordpress.org/support/users/jordanr/),
 * I was unable to replicate the issue on my test WordPress instance. Would you 
   please post a ticket on our end from your SiteGround User Area? That way we will
   have the required access for further investigating the issue.
 * Thank you for your cooperation.
 * Best Regards,
    Dimitar Petrov
 *  Thread Starter [jordanr](https://wordpress.org/support/users/jordanr/)
 * (@jordanr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/memory-exhausted-with-default-comments/#post-16082922)
 * Got it. I have a message thread going…

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

The topic ‘Memory Exhausted with Default Comments’ is closed to new replies.

 * ![](https://ps.w.org/sg-security/assets/icon-256x256.gif?rev=2971855)
 * [Security Optimizer - The All-In-One Protection Plugin](https://wordpress.org/plugins/sg-security/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-security/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-security/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [jordanr](https://wordpress.org/support/users/jordanr/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/memory-exhausted-with-default-comments/#post-16082922)
 * Status: resolved