• Hello,
    I have been trying to get this resolved for hours but it’s not happening.
    I’m getting the following error but only when I click appearance -> customize or header or background.
    I tried the following scenarios to resolve it but with no luck:
    – Disabled all plugins
    – Restored the theme to the default one.

    The error is:

    
    [16-Sep-2016 01:22:51 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home/..../..../wp-includes/post.php on line 4263
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @jadmadi,

    Hmm, that’s 268MB of memory which doesn’t seem huge – I’m only using a cheap host and I have double that available.

    Is this a standalone installation or multisite? Also, who is your host?

    I’ve just come across this which offers some excellent advice (including what I was going to follow up with)… https://tommcfarlin.com/wordpress-fatal-error-memory-exhausted/

    It’s more than possible that the amount of memory provided by your host is a bit low, but other than switch hosts, that doesn’t really help. So this will give some context to what the error means and what you can do to work with what is available.

    Obviously, let me know if this doesn’t help you ??

    Thread Starter jadmadi

    (@jadmadi)

    Hey @dartiss
    Well, the point is that my blog is a fresh installation with zero traffic. I do believe that WordPress does not consume that much, if I recall correctly it can run with 48Mb of memory as long as the traffic is minimal and the installation is clean, and minimal is way more than what I have now of traffic ??

    Unfortunately I do not have room to expand the current memory, but again it is a fresh and clean installation.

    I have other WordPress instances on the same server with the same configurations and they work just fine.

    What’s happening is rather weird IMO.

    Yes, it is weird I have to admit – it may be worth speaking with your host as they could verify if anything external is eating up the memory.

    That link I gave, though, is worth pursuing – more specifically the link in that points to the following in the Codex… https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    You can follow that to tell WordPress to limit itself to your memory configuration and, hopefully, prevent that error. Of course, that’s just a band-aid over the issue as, ideally, you need to find out why so much is being consumed – this is where I think your Host can help better than anybody else.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Allowed memory size exhausted (tried to allocate 72 bytes)’ is closed to new replies.