The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

max memory issue (4 posts)

  1. leisegang
    Posted 3 years ago #

    I have a multisite.

    in my PHP settings i have max memory set at 512 mb

    Fatal error: Allowed memory size of 268435456 bytes exhausted

    i get this all the time. and thats only 256mb ram. waht can i do to get this to work? i cannot have that error shoing to my users when they ie. change theme. post a post.

    i also have this in my wp-config.php:

    define('WP_MEMORY_LIMIT', '512M');

    i host on a cpanel server with cent os and 24gb ram.

  2. What plugins are you running?

    What brand of PHP are you using? (DSO, ModPHP, FastCGI...)

    (I got that error when I had Shell Fork protection turned on, but only when I ran things via command line)

  3. leisegang
    Posted 3 years ago #

    FCGI i sort of fixed it i think?

    define('WP_MEMORY_LIMIT', '1024M');
    define('WP_MAX_MEMORY_LIMIT', '1024M');

    the last line fixed it because all errors were in the admin.

  4. Ah. Yeah, I can see that :/

    FastCGI uses more memory than other PHPs.

Topic Closed

This topic has been closed to new replies.

About this Topic