WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Allocated Memory Size Exhausted in ObjectCache.php (9 posts)

  1. beernews
    Member
    Posted 3 years ago #

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 113 bytes) in /home/beerpuls/public_html/testing/wp-content/plugins/w3-total-cache/lib/W3/ObjectCache.php on line 230

    I get this error when accessing one of my custom post type admin "edit" pages that loads 36,000 posts. It uses up a lot of memory for that one request and takes 18-20 sec. to load but at least I can load it without this plugin activcated.

    No matter how I tweak the settings, I still get the error.

  2. kfawcett
    Member
    Posted 3 years ago #

    You need to increase the memory limit in your php.ini file. It's normally set to 32mb. depending on the type of host you have try upping the RAM to 100mb.

  3. beernews
    Member
    Posted 3 years ago #

    I can load the page without this plugin enabled so you're saying that I need to up the setting (currently 240mb on 768mb RAM server) to make it load with this plugin enabled?

  4. kfawcett
    Member
    Posted 3 years ago #

    I don't see why W3TC should be causing the problem, other than that you might be minifying or caching a plugin that is causing a problem. Try disabling all plugins and then see if the problem goes away. Then re-enable one plugin at a time, hopefully you can find the cause.

  5. beernews
    Member
    Posted 3 years ago #

    I upped it to 400 and still no luck. Maybe there is a setting in W3 Total Cache plugin files that is overriding my Apache php.ini settings?

  6. beernews
    Member
    Posted 3 years ago #

    Disabled all other plugins and no change. I discovered the 256mb memory limit in wp-admin which corresponds to the error message above. The only solutions are to optimize the query, increase the wp-admin memory limit or use a different caching plugin. Two of those require modifying the core code but I think it's ok where it's just a small backend tweak. I think that's less of a hassle than finding another plugin that works like super cache, caches db queries and utilizes APC like this one does and configuring it.

  7. sibyy
    Member
    Posted 3 years ago #

    I had the same issue upon installing the plugin.

    So I had already installed the plug-in on one site and that went just fine.

    Yesterday I installed the w3 total cache plugin on a different site and pressed activate, I then couldn't reach wp=admin but got the 'Fatal error: Allowed memory size' error.

    Increasing the memory available in wp-config fixed the issue but it's definetely and issue with this plugin and probably a cross-interaction with other plugings

  8. beernews
    Member
    Posted 3 years ago #

    For me, I have 36,000 posts in one of my custom post types and WordPress was loading them all at once. By saving a bookmark to my bookmarks toolbar with a search result (so that I don't have to click to the post type main edit screen), I don't have the problem anymore.

    W3TC doesn't appear to be able to handle massive admin requests.

    And WordPress doesn't appear to be able to handle massive post tables.

  9. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    The next release has ~70% memory savings to help people get started easier.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic