Support » Fixing WordPress » Fatal error: allowed memory size exceeded

  • Any time I try to add a plugin or theme, I get an error similar to this one:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 847667 bytes) in /home/andreas7/public_html/wp-admin/includes/file.php on line 630

    The only thing that changes is the numbers (“tried to allocate XXXXXX” and “on line XXX”)

    I have tried a complete re-install of WP in my cpanel and it happened both times. I also called my hosting and confirmed that I am not even CLOSE to my storage limit (using 24MB of 5GB). I’ve never had this problem before and I always use the same process: domain and hosting from directnic, use installatron to install WP. I’ve probably got some setting that I stupidly set wonky, but I’m not seeing it.

    Any ideas? Thanks very much!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator kmessinger


    Moderator Mark Ratledge


    Forum Moderator

    confirmed that I am not even CLOSE to my storage limit (using 24MB of 5GB).

    That’s hard drive space; that has nothing to do with RAM memory.

    Using FTP you can try increasing the memory for PHP and WordPress in several different ways:

    1) You can edit the memory_limit line in your php.ini (if you have access to that file) to increase memory to 64M:

    memory_limit = 64M;

    2) Try adding the ‘define” line below in your wp-config.php file a few lines of white space below the opening <?php in the file:

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

    3) If those don’t work, try adding this line at the top of your .htaccess file:

    php_value memory_limit 64M

    If that doesn’t work or throws a “500 Internal Server Error”, delete the line from .htaccess.

    If none of those work, your host probably doesn’t allow memory allocation overrides. You’re stuck with what they give.

    Sadly none of that worked. Thanks for the help though! Is there any way I can see which plugins are eating up all the memory?

    Moderator Mark Ratledge


    Forum Moderator

    Nothing you can do but ask the host for more memory or find a few host: Recommended WordPress Web Hosting

    Thanks very much! I appreciate the help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error: allowed memory size exceeded’ is closed to new replies.