WordPress.org

Ready to get started?Download WordPress

Forums

exhausted memory (28 posts)

  1. nubricks
    Member
    Posted 7 years ago #

    I have been reading through the support threads, but it is still unclear exactly how to fix this memory issue. Let me explain my sites issue.

    A while back recived an error stating that my 8Mb memory alloocation was not enough, so I aske my host to increase this to 16Mb for php and everything worked fine until today.

    I decided to add a table from word into my post for today. Once I pressed save I got the following error:

    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 35 bytes) in /xxx/wp-includes/functions.php on line 1250

    Now Im not sure if the two are connected or it was just that I have too many processes running?!

    I have emailed my host who tell me they can’t increase the 16mb anymore and it must be a technical issue?

    I have published and deleted a number of posts, but can’t get rid of this error. If I ask it to save the post it does actually do it, but this error appears first and I have press back on browser? I have also tried using firefox as well but it makes no difference.

    I dont know whether I need to

    a) cut down the amount of plugins I have running
    b) reduce number of posts I have on from page
    c) reduce the number of pictures I have in a post
    d) a combination of these

    I am only 6 months into blogging and having this issue already, which does not bode well for the future. As I can only see expansion of my database and more traffic.

    Any suggestions as to why this is happening?

    Cheers

  2. yosemite
    Member
    Posted 7 years ago #

    I decided to add a table from word into my post for today.

    Sounds like the source of the problem... Suggest you look carefully at that table/formatting, see what else is coming over from Word with that...

  3. nubricks
    Member
    Posted 7 years ago #

    I have deleted the offending post table and all. However the error still comes up when I try to post another entry?

    Has the table got stuck in database somewhere? Seems unlikely as I have deleted the post I added it to.

  4. yosemite
    Member
    Posted 7 years ago #

    Post a link to your site.

    As to Has the table got stuck in database somewhere? only someone with access could answer that. You could attempt a repair and optimize on the db (good practice anyway).

  5. xinfo
    Member
    Posted 7 years ago #

    hey its nothing but you can do this to avoid such error

    jus add this line in your .htaccess file (you add using file manager )

    php_value memory_limit 0M

    it will work better
    NOTE:0=ZERO

  6. nubricks
    Member
    Posted 7 years ago #

    Yosemite: How do you repair and optimise. I have never done that before? What the procedure?

    xinfo: What do you mean its nothing? Is it not an issue? If it is isnt its just a pain!

    I will try that code, what does it actually mean though, so I learn from this?

    Cheers guys

  7. yosemite
    Member
    Posted 7 years ago #

    If you have access to phpMyAdmin or a similar MySQL db manager, you can repair/optimize from there.

    Guide for repair here: http://www.tamba2.org.uk/wordpress/repair/

    Same procedure for optimize, basically.

  8. nubricks
    Member
    Posted 7 years ago #

    Yosemite - OK did the repair only and now I get two errors when I try and post:

    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 512 bytes) in /xxx/wp-includes/functions.php on line 1250

    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 39 bytes) in /xxx/wp-includes/functions.php on line 1246

    Doh?

  9. xinfo
    Member
    Posted 7 years ago #

    the problem is( Allowed memory size of 16777216 bytes exhausted )

    it mean the server configration have to change its memory value which is already restricted it he have shared hosting he can do it by adding this line
    php_value memory_limit 0M
    to .htacess file which is present in the root of the web site

  10. nubricks
    Member
    Posted 7 years ago #

    xinfo: I tried the code in .htaccess and it killed my site?

    So I guess that doesnt work in my case?

    Any other ideas?

  11. xinfo
    Member
    Posted 7 years ago #

    what error it gave you ?

    can you show me your phpinfo file

  12. nubricks
    Member
    Posted 7 years ago #

    The site completely crashed both front and back end, so that was the error.

    Where is the phpinfo file, I have never come across it?

  13. xinfo
    Member
    Posted 7 years ago #

    ohh open the notepad type below code and upload to the server (root)
    save the life as phpinfo.php

    <?php
    phpinfo();
    ?>

    and point the browser and let me know the location of the url where you have uploaded the file

  14. nubricks
    Member
    Posted 7 years ago #

  15. manstraw
    Member
    Posted 7 years ago #

    The only time you should run into that memory error is when you're uploading a really large image or something. There can be a problem when wordpress tries to make a thumbnail from a large image it just uploaded, as it needs to uncompress the image in memory to make the thumb. That's the only time I've ever had an issue with memory. I've got a couple dozen wordpress installs on the same server and don't have problems with regular posts. One of my blogs has a few thousand posts.

    Can you clarify when it's happening? Is it when you attempt to upload images? When you hit publish? Or when you view the page? More information will be helpful here. Other details like which version of wordpress you have, and anything else you can think of will also be helpful.

  16. nubricks
    Member
    Posted 7 years ago #

    Manstraw:

    As the norm I do add many photos to the blog sometimes 5 or 6 to a post. Up until now I havent had a problem, but I added a table cut and pasted from word into a post and then, received the error stated above in my first post.

    I then deleted that post and have subsequently tried to save a new post with a new title and two words in the body just to test and the error remains the same. If I press back on my browser button it has then saved the post. I want to stop the error coming up every time I save or publish a post.

    I have tried the advice above but to no avail, so what can I do to try and sort this issue?

    The version of wordpress I am using is 2.0.2

    I hope that clarifies my situation?

  17. xinfo
    Member
    Posted 7 years ago #

    well i can see that your server memory can support only 16 mb

    can you replace my same code instead of 0M try placing 34M

  18. nubricks
    Member
    Posted 7 years ago #

    I can try adding that code but its my hosting that will object and it doesnt really solve the problem of why this is happening. Most people say that wordpress should go near the 16MB so increasing the capacity is avoiding the real issue.

    Dont know where to go from here? It only seems to be a problem for the post function i.e. when you are "saving and continuing" "save" or "publish"

    The rest of the backend seems fine.

  19. manstraw
    Member
    Posted 7 years ago #

    I really think the database got borked, whatever the reason. Does the backup function within wordpress work? I think that plugin comes with 2.0.2. Anyway, what I'm getting at it that you should run a backup of the database, and then get in there with phpmyadmin and see if you can repair the database. I think someone suggested optimizing it earlier in this thread. There are other functions in phpmyadmin that may repair your problem. You can check, repair, analyse, and optimize each individual table in your mysql database.

    edut: I just read back and see you did some of this.

    I would personally go further, rebuilding the site from scratch. Only to be attempted after a thorough backup of your database and all of your files. Without knowing where the problem is, you may be forced 'cut butter with a chainsaw' if you know what I mean.

  20. manstraw
    Member
    Posted 7 years ago #

    I have another thought. I wonder if this could be somehow due to disk space. I wouldn't really think so, but you seem to be putting a lot of pictures on your site, and they take up disk space. Can you find out how near your limit you are? Do you have some kind of control panel that will tell you?

  21. Chris_K
    Member
    Posted 7 years ago #

    What plugins are we running? What happens if they are disabled?

  22. 1ight
    Member
    Posted 7 years ago #

    Is problem

  23. nubricks
    Member
    Posted 7 years ago #

    Disk Quota: 60.0 / 1000.0 MB Used
    Bandwidth Quota: 1259.249 / 10000.0 MB Used
    So no where near used up!
    At present I have the following plugins running:

    Autometa
    Akismet
    Bad Behavior
    del.icio.us - Bookmark this!
    Dagon Design Form Mailer
    FAlbum
    Google Analytics
    Landing sites
    Feedburner Feed Replacement
    WP-Polls
    Related Posts
    Google Sitemaps
    Subscribe me
    Fuzzy Recent Posts
    Cron
    WordPress Database Backup
    Wp-contact form
    Sidebar Widgets
    Google Search widget
    Google adsense widget

    I havent disabled them should I disable them all?

  24. nubricks
    Member
    Posted 7 years ago #

    I wonder if it has anything to do with my wysiwig editor. When I add a new post and save it I get the error stated above once I click back it seems to have saved what I have put in the field, but wraps all the text together. Could this be a fault which somehow describes to error??

  25. nubricks
    Member
    Posted 7 years ago #

    Resolved the issue.

    It was the Dagon Design Form Mailer Plugin for some reason draining the memory.

    Thanks to all who helped.

  26. manstraw
    Member
    Posted 7 years ago #

    glad you've got it sorted! and I'm really glad you didn't have a borked database. and I really should have suggested you turn off plugins myself! it's the first thing I do when I'm diagnosing anything. I kind of skipped over that with your problem. Fortunately, the force is with handysolo! ;)

  27. Aleister
    Member
    Posted 7 years ago #

    nubricks:

    I am the author of the Dagon Design Form Mailer :)

    Can you tell me what version of the plugin you were using? I had not heard of this issue before, but I would be interested in any information you could share (such as how long had you been using it before noticing these problems, how many forms you had it set to generate, etc..)

    I am actually in the process of a complete rewrite (v5), but I would still like to figure out why it could have been doing this :) Thanks.

  28. supriyadisw
    Member
    Posted 7 years ago #

    I have the same problem right now. I try to deactive some plugin and my wordpress is OK. I think it's about server memory. I can not edit php.ini file anyway, I have asked my admin hosting, but he said he can not do that. Sound sad with cheap hosting :( Any solution please?

    :D Thanks a bunch

Topic Closed

This topic has been closed to new replies.

About this Topic