Title: PHP Fatal Error Memory Allocation problem &#8211; Possible infinite loop?
Last modified: February 4, 2025

---

# PHP Fatal Error Memory Allocation problem – Possible infinite loop?

 *  Resolved [immortalmortal](https://wordpress.org/support/users/immortalmortal/)
 * (@immortalmortal)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-memory-allocation-problem-possible-infinite-loop/)
 * Hey!
 * I am trying to create a WooCommerce site for the first time and I am running 
   into the same problem since the beginning – my site keeps crashing when editing
   stuff in the admin area and the only way to fix it is to disable the litespeed
   plugin in my cpanel. I tried other combination and different themes but the site
   gets only accessible once I disable the plugin. Since the last php crash today,
   I changed the preset from Advanced (with some small tinkering from the knowledge
   site from my hoster) to basic, hoping that I fix the problem before launching
   the site to the public
 * The bug I encounter:
 * [03-Feb-2025 11:59:03 UTC] PHP Fatal error: Allowed memory size of 2147483648
   bytes exhausted (tried to allocate 4295229440 bytes) in /home/***/***/wp-includes/
   theme.php on line 325
 * In the beginning it was on line 189, since the past few days only on line 325.
   It seems that the site gets into a infinite loop through litespeed. I am using
   the woodmart, the recommended plugins for the theme (slider revolution, elementor,
   safesvg and contact form 7) and a smtp plugin for mails. I sadly can’t reproduce
   the error, it occurs mostly when I switch around fast in my different subpanels
   of my admin page. The minimum recommended RAM for the theme are only 512MB, I
   already pumped it up to 2GB, but I still run into the issue, my hoster plan would
   be powerful enough to support 4GB, but I don’t think it’s a ressource issue, 
   since when I was using the standard config of the server, it was requesting 2GB
   ram, now it is 4GB.
 * My issue is similar to the one described below with the same error, but he doesn’t
   use litespeed, instead he uses another cache plugin.
 * [https://wordpress.org/support/topic/php-fatal-error-allowed-memory-size-4/](https://wordpress.org/support/topic/php-fatal-error-allowed-memory-size-4/)
 * I would really appreciate some sort of direction pointing since I don’t know 
   how to troubleshoot something like this.

Viewing 1 replies (of 1 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-memory-allocation-problem-possible-infinite-loop/#post-18285465)
 * did you enable object cache ? if so , please try set it to OFF
 * if you can gain access to any page with plugin enabled, you can edit database
   directly by modify wp_options -> `litespeed.conf.object` , set it to `0` as disable,
   then remove file `/wp-content/object-cache.php`

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal Error Memory Allocation problem – Possible infinite loop?’ 
is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [infinite loop](https://wordpress.org/support/topic-tag/infinite-loop/)

 * 1 reply
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-memory-allocation-problem-possible-infinite-loop/#post-18285465)
 * Status: resolved