• Hi,
    I’m using WP 3.8. When I open the new-post page, i see a white page with nothing. I Checked the error.log file and I got this error:

    PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /var/www/wp-includes/cache.php on line 572$

    I set unlimited memory in wp-config.php:
    ini_set(‘memory_limit’, ‘-1’);

    And also in php.ini:
    memory_limit = -1M ;or a huge value

    And restarted apache. But steel i can not open the new-post page and i get the same error.

    I deactivated two plugins (one by one) and after deactivating each of them, I could open the new-post. But I need those plugins and I am sure that there is no error in them.

    Why do I steel get a memory fail error?

Viewing 1 replies (of 1 total)
  • Thread Starter mostapha777

    (@mostapha777)

    I solved it temporarily.
    I had to change the cache.php and add line
    ini_set(“memory_limit”,”4000M”);
    to one of that functions.
    I don’t know why wordpress(or maybe cache.php) does not accept this config in wp-config.php.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Fatal error: Allowed memory’ is closed to new replies.