Fatal error: Allowed memory size (Bluehost)

• • August 22, 2008 • Comments (3)

When trying to view my posts in WordPress on this site, I get an error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/public_html/ etc. in edit-post-rows.php

I also get the same error when I try to look at my Plugin Directory

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 88259 bytes) in home/public_html/ etc. in /wp-admin/includes/plugin.php

I only have 32 posts :\ and it’s only trying to show page 1 of 3.
When I filter it to just show a particular category.. it works.. its just using up too much memory trying to show the rest of them? Bit of a worry since this blog is so new.
Suspect one of my plugins causing it, since this is my "Test Blog" so to speak of all the aforementioned wordpress plugins and Im always activating and deactivating and testing and playing heheh.

Although I don’t have too much confidence in this old bluehost server that these sites are hosted on (Every one of my sites hosted on this server is slow, yet when I access my other blogs and sites hosted on 2 other bluehost servers, they are very fast).

Excepting the possibility that it could be one of my scripts on this server causing this whole mess :)

  1. Changed PHP 5 (FastCGI) to PHP5 on Bluehost (phpconfig)
  2. Changed php.ini script to be memory_limit = 64M
  3. Uploaded it to /public_html/
    (Made no difference)
  4. Tried uploading the modified php.ini to the various directores involved
    (Made no difference)

Found a post that says you can try changing the memory limit for one specific script by including this line at the top of the script:
ini_set("memory_limit","12M");

But couldn’t work out where to put that :)

Deleted all unused plugins in WordPress Plugin directory.
No difference.

Only by de-activating the Lighter Menus plugin did I get my plugin directory back
(Weep, it’s my FAVE Plugin on the planet – always the way hey!)

But I was still getting the memory error so it isnt the only cause.

Deactivated:
- Google XML Sitemaps
- Lightbox 2
- Bookmarkify
- Lighter Menus
- Berri Technorati
- DropCap First Character
- alinks

Got my posts back.
Can access everything again, but I’m now getting a similar Fatal memory error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home/public_html/wp-includes/kses.php(840) : runtime-created function on line 1

Deactivated:
Manageable
Invite Friends
Live BlogRoll
Post Tabs
TweetMyBlog

But when I try to re-enable any of them, I get the memory error back.
Suggesting to me that its Bluehost/Memory issue rather than a particular plugin….

I’ve gotta find this memory leak, I’m going nuts here! :)

Am I on the wrong track I wonder?

I give up for the day.. keeping all the above deactivated until I’m in the mood again to take another look :)

I’ve re-enabled my lighter menus plugin without any side-effects excepting that same continual error I get regardless of whether its enabled or not.

These are the left-over plugins that could be causing the error:

  • AddThis Social Bookmarking Widget (drop-down)
  • Ajax Newsletter
  • Akismet
  • Dean’s FCKEditor For WordPress
  • FeedBurner FeedSmith
  • Google Analytics for WordPress
  • Homepage Excerpts
  • Lighter Menus
  • LiveSig
  • MaxBlogPress Favicon
  • Maxref Widgets
  • MyBlogLog
  • Profilactic
  • Register Plus
  • SEO Smart Links
  • SEO Title Tag
  • Show Me Options
  • SimplePie Core
  • Simple Tags
  • Skype Button – Widget
  • Snazzy Archives
  • Subscribe Remind
  • Tabbed Widgets
  • Text Link Ads
  • Twitterdoodgle
  • Twitterfountain
  • TwitThis
  • Viper’s Plugins Used
  • Viper’s Video Quicktags
  • WP-UserOnline
  • WP-UserOnline Widget
  • WP Ajax Edit Comments
  • WP Comment Remix
  • WP VideoTube

Sigh, what do I expect on a test site lol..
Damnit, I expect every plugin to play well together and to not get errors that I can’t fix :)

*stamps feet*

—————————-
Update:

Ok, so no errors since modifying this file: wp-settings.php

if ( !defined(‘WP_MEMORY_LIMIT’) )

    define(‘WP_MEMORY_LIMIT’, ’64M’);

(Was set to 32M)

But I haven’t reactivated all the plugins yet and it still doesn’t resolve what is actually causing all the memory to be used.. but a *Bandaid* fix until someone smarter than me points out the obvious :)

pixel Fatal error: Allowed memory size (Bluehost)

Tags: addthis social bookmarking widget plugin could not be activated because it triggered a fatal error., allowed memory size bluehost, bluehost, bluehost memory, bluehost memory size, bluehost wordpress memory error, fatal error facebook memory how, fatal error: allowed memory size bluehost, fatal error: allowed memory size of 262144 bytes exhausted (tried to allocate 122880 bytes) in /home/friendsc/public_html/wp-admin/admin-header.php on, fatal error: allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes), simple invoices fatal error: allowed memory size, simple invoices fatal error: allowed memory size of 18874368 bytes exhausted, simple invoices fatal error: allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes), wordpress, wordpress fatal error: allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes), Wordpress Troubleshooting

Category: Wordpress Troubleshooting

Share, Subscribe & Bookmark

About the Author

I help businesses get more leads via Internet Marketing and real-time marketing such as Social Media marketing (Facebook, Twitter, YouTube, Wordpress & other online Social Networking platforms).

Comments (3)

Trackback URL | Comments RSS Feed

  1. Me resolvio los problemas de memoria con wordpress http://bit.ly/ed9Oy

  2. Penny says:

    @Damian Taggart
    Thanks for the link, thats great – it seems to do the same job regardless, but it’s good to know which way wordpress recommends you do it. I can’t see anything on that page that suggests problems with modifying the wp_settings instead but would prefer to make my adjustments the same as what wordpress recommends, so thanks again for sharing :) – Penny x

  3. Damian Taggart says:

    You should actually put this line in your wp-config.php file instead of directly editing your settings file:

    define(‘WP_MEMORY_LIMIT’, ’64M’);

    http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

Go Ahead, Speak Your Mind




If you want a picture to show with your comment, go get a Gravatar.