• Hello, I am hoping someone can help me. I’ve spent hours on this today, trying to problem solve an out of memory error when trying to install a plugin for Simple Press, and although I’ve paid them for premium support, they are not helping me problem solve this.

    When I go to install a plugin for the plugin, I get this out of memory error:

    Fatal error: Out of memory (allocated 76808192) (tried to allocate 53 bytes) in ****/wp-includes/capabilities.php on line 778

    But I checked my server, and I have 2GB of RAM. Searching, I found suggestions to edit .htaccess, php.ini, and wp-config, which I did.

    When I edit .htaccess my site crashes. I created the php.ini and put this in it:

    <? phpinfo(); ?>
    memory_limit = 128M

    I then put the php.ini in my wp-admin folder.

    I also added the following code just above the last entry in my wp-config:

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

    If anyone has any suggestions on what I could try next, I’m all ears!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you contact your hosting company? They may have their own limitations that override your settings or another suggestion for you.

    That’s the wrong directive to put in php.ini. Only use:

    memory_limit = 128M

    The function <? phpinfo(); ?> will cause an error or render the php.ini file not executable.

    But php.ini files will not be read unless you have enabled php.ini files to be read. Is this your own VPS or server?

    Add the define('WP_MEMORY_LIMIT', '128M'); line in wp-config.php a few lines of white space below the opening <?php of the file.

    Thread Starter Halo Diehard

    (@halo-diehard)

    Awesome, songdogtech, will do! I don’t know anything about enabling php.ini files to be read, only that others have done with my server, so it should be ok.

    The other thing, though, is I just did the view-php-info thing this morning, and I got 120M that way, but when I installed a plugin that’s supposed to tell me my usage, it says 128, like I’ve determined in those files. The plugin also says I’m using around 35M, so I don’t think it matters, but I’m curious where the 120M is coming from.

    i have same problem but now resolved. Thanx dude your Words also Work on my free hosting now i can change my limit to 500m awesome u rocks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin install – Fatal error: Out of memory, Host RAM is 2GB’ is closed to new replies.