WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: allowed memory size exceeded (6 posts)

  1. andreasf85
    Member
    Posted 1 year ago #

    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!!

  2. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

  3. 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.

  4. andreasf85
    Member
    Posted 1 year ago #

    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?

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

  6. andreasf85
    Member
    Posted 1 year ago #

    Thanks very much! I appreciate the help.

Topic Closed

This topic has been closed to new replies.

About this Topic