Fix wordpress fatal error allowed memory size exhausted

Fatal error: Allowed memory size of …… bytes exhausted (tried to allocate …. bytes) in home/of/some/thing/fishy.php :)

Wordpress Fatal Error allowed memory size exhaustedI experienced this weird Wordpress or rather PHP error last night when trying to view my blog when i got home, at first i thought that there was a technical problem at my server so i waited, then i waited and waited and waited again for almost 7 hours then i cant wait no more i want to blogggg… so i contact my hosting provider and they told me that there is nothing wrong with the server nahhh WTF! i told to my self. . :) but i cant figure out the problem at first. .then i figure out that i can access other part of my site. .so i said to myself.. hmm maybe its because of the plugin that i last installed so again i waited and let the night past but the error was still there when i woke up. .did you know what did i do? haha call me dumb coz i dont know what to do so i decided to delete my blog files and install wordpress again but ofcourse i backed up my database so i can restore. . but the problem is still there nahh WTF again i said to my self. . haha :) until i found a bit of code that can save my life sana haha :ohhyeahh: . . PHP Memory Allocation Error was the real problem it is an error returned by php when it used up the default memory limit, it occurs when PHP is handling or processing a large amount of data or records more that its default memory allocation. I found to 3 ways to Fix this problem

1st: Increase the memory limit of an individual PHP file

ini_set(”memory_limit”,”16M”);

Put this code at the top of every PHP file that errors are showing, you can expand the memory by changing the 16M to a other value if your still getting errors,. you can set it to 16M, 18M etc..

2nd: edit your PHP.INI file – this option will apply to all the php files in your site

search your php.ini file and find memory_limit: put values like at the top for example

memory_limit: 16M

3rd: use .htaccess to expand the memory allocation – this option will apply to all the php files in your site

php_value memory_limit 32000000

Copy and paste the code above to your .htaccess file

Thats it! the errors are gone :D

Share and Bookmark this Post..

  • Digg
  • Yahoo! Buzz
  • Twitter
  • Facebook
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Technorati
  • Reddit
  • Sphinn
  • MySpace
  • Slashdot
  • BlinkList
  • Live
  • Mixx
  • NewsVine
  • Yahoo! Bookmarks
  • Ratimarks
  • LinkedIn





Tags: , , , ,

8 Responses to “Fix wordpress fatal error allowed memory size exhausted”







Leave a Reply

This blog will make your link do follow after you leave 5 comments. i check every comment posted and reply to each also. please do not spam i hate spam, there is no room for spam here in my blog thanks!

CommentLuv Enabled
:argh: :| :$ :B :cool: :*( :curious: x_x :gasp: =D :happy: :/ :D :injured: :lol: :lol2: :love: :X :meh: O_o :ohhyeahh: D: :omg: :raisebrow: :P :( 0_0 :shocked: :sly: :) :] ;] :worry: :wow:

Subscribe to feed

this blog use Comment Luv

Featured Post


Make your Wordpress URL Search Engine Friendly
Simple steps to make your wordpress url search engine friendly..


Give some luv with comment luv
This blog is now comment luv powered..


Fix Wordpress PHP fatal error memory size exhauster
Ways on how to solve PHP fatal error or PHP memory limit on wordpress blogs anr other opensource web apps..


Download Norton Antivirus Internet Security for free
Read this post to know how you can download a free norton antivirus or internet security..


Sponsored Links


 5 Users Online