• Resolved immortalmortal

    (@immortalmortal)


    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://ww.wp.xz.cn/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

    (@qtwrk)

    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.