WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Is WordPress "Out of memory"? (18 posts)

  1. dylan
    Member
    Posted 6 years ago #

    I'm encountering a similar error, ONLY on /wp-admin/edit.php

    the error reads:

    Fatal error: Out of memory (allocated 74448896) (tried to allocate 40 bytes) in /wp-includes/wp-db.php

    Can i tell my host something more specific than "sort out the MySQL server"? My host, Dreamhost, is as stumped as I am.

  2. Chris_K
    Member
    Posted 6 years ago #

    Memory for WP, like any PHP app, is configured via php.ini. The default for max mem tends to be 8MB. Yours appears to be significantly above that.

    What plugins are you running -- and are they all current? Some can dramatically increase the amount of memory needed.

  3. dylan
    Member
    Posted 6 years ago #

    I am running no plugins at all, just to be safe.

  4. spfarquhar
    Member
    Posted 6 years ago #

    I am running with PW 2.2 and about 30 plugins. The hungriest plugin so far is Google XML sitemaps which needs about 12Mb of memory. I have basic blogs with a few plugins running with 8Mb.

    Your error says that you have 74Mb so something is configured wrong with your shared server configuration settings, or if on a dedicated host, then apache or PHP is configured wrong. Best to contact the host provider saying that a basic WP only uses a max of 8Mb.

  5. dylan
    Member
    Posted 6 years ago #

    I did contact my host, and after a long conversation with them, they determined that they can't help me. Their only support for wordpress is setup. They installed a fresh setup, and that worked, so I'm on my own.

    I did have the google sitemaps plugin installed. Even though it is disabled, is it possible that the plugin is still using memory?

  6. jeffmcneill
    Member
    Posted 6 years ago #

    Here is what I did to fix this on Site5. Basically u need to create a custom php.ini and up the ram limits on php threads:

    Thread in Site5 forum with instructions.

    The real script that does the magic (must modify at least a little).

    I <3 site5! btw, this works while using PHP5 (add the following line to your .htaccess)

    AddHandler application/x-httpd-php5 .php

    Cheers!

  7. dylan
    Member
    Posted 6 years ago #

    I tried adding that line to my .htaccess file, and it totally broke my install. Browsing to the home page made the browser think it was time to download a file. I had to erase the wordpress files and reinstall wordpress to get it running again.

    Still, I get that error at /wp-admin/edit.php

  8. dylan
    Member
    Posted 6 years ago #

    I finally found the cause of this pesky error: Ultimate tag warrior.

    For more info: see this post: http://thewrecker.net/?p=182

    Can I just say that plugin authors really do need to build better ways for their plugins' data to be REMOVED.

  9. ia
    Member
    Posted 6 years ago #

    Am having the same problem with Feedwordpress. I tried to add a new feed source and then it spewed this error:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 147555 bytes) in /home/XXXXXX/XXXXXX/XXXXXX/wp-includes/wp-db.php on line 97

    Maybe it can't handle too many feeds at the same time.

  10. Chris_K
    Member
    Posted 6 years ago #

    Well, no.

    Your PHP is configured at the default of 8MB for max memory.
    You'll want to increase it as you add more plugins.

  11. helldrain
    Member
    Posted 6 years ago #

    I have the same memory exhausted problem ... i read all the topics .. i googled... and I can't find a solution. I send an email to my webhost an they said that the maximum aloed memory size is 10Mb and the can't/won't change that.

    I tried to install the blog (not plugins just the blog) and i got Allowed memory size of 10485760 bytes exhausted (tried to allocate 122880 bytes)

    I tried to add the .htaccess file but there was a server error saying something like i don't have the right to inxcrease the memory limit.

    Is there a way to install... maybe increase the processing time and decrease the occupied memory size...

    Or can someone recommend me another blog???

  12. Chris_K
    Member
    Posted 6 years ago #

    Something's not adding up. There are tons of WP blogs running under 8MB PHP defaults.

    Are you positive you don't have any plugins enabled? Some auto-installer thingies add some. Some themes embed 'em.

  13. helldrain
    Member
    Posted 6 years ago #

    i downloaded the zip file from the site ... nothing more.. i don't even know how to install the plugins

  14. helldrain
    Member
    Posted 6 years ago #

    i also tried to install on my computer and i put the blog onto the webserver .. it worked but when i tried to go to the admin section i got that memory exhausted error again

  15. helldrain
    Member
    Posted 6 years ago #

    i downloaded the tag.gz file .. and i managed to make the installation work ... i don't know what the problem was

  16. ia
    Member
    Posted 6 years ago #

    The way I got it fixed was contacting the web host and asking them to fix the security issue (it seems that was the reason for the limit). It could be that for your case. :)

  17. twist3d
    Member
    Posted 6 years ago #

    I get this same issue but nothing said here has fixed my issue.

  18. twist3d
    Member
    Posted 6 years ago #

    WordPress works fine on hasweb.com servers but doesn't work on my new host. Even when doing a fresh install

Topic Closed

This topic has been closed to new replies.

About this Topic