Welcome to Blog – iRedlof

Random Post Refresh

iRedlof Google Analytics Stats [Wordpress Plugin] Updated v2.0

Current Version: 2.0 [Updated 10-May-09] Snapshots: iRedlof GA Stats Snapshot 1 iRedlof GA Stats Snapshot 2 iRedlof GA Stats Snapshot 3 Description: iRedlof Google Analytics(GA) Stats is a wordpess admin panel...
Read More ...
Help

If you need any help, leave a comment here or mail me »

Member Login
Not a member yet? Sign Up!

Math Required!
What is the sum of: 4 + 2    

Forgot Password !

Powered by

28

May

2009

How To Solve WP Error: Fatal error: Allowed memory size of 33554432 bytes exhausted

By admin. Posted in Wordpress

0 Comments »   |   Share   |  


Nearly every hosting space provider are providing 32MB of Memory limit for php code execution (Quite a big number).

Due to wordpress being open to third party developers, sometimes added a few new modules to your wordpress with non-optimized php code can make your wordpress can increase memory usage and once you hit the maximum memory limit, you are screwed cos then your site will only be left with an error like:

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

So, you should be little more careful while adding new plug-ins to your wordpress, cos debugging is not easy once you are hit my such errors.

How to fix this ?

Although, this might not work every time for every one of you, but most of the time it works perfect.

You need to increase your max. memory limit settings in wordpress settings file.

Steps:

  1. Open wp-settings.php in your wordpress installation root directory
  2. Go to line no. 13
  3. Change define(‘WP_MEMORY_LIMIT’, ‘32M’); to define(‘WP_MEMORY_LIMIT’, ‘64M’); (Maximum amount of memory a script may consume is 64MB).
  4. Save you settings and now try again to see if it works.
  5. If you still get same error as above but with 67108864 bytes in place of 33554432 bytes, then you can try changing it to define(‘WP_MEMORY_LIMIT’, ‘80M’); or more (Not Recommended at all).
  6. Alternatively, debug and modify (optimize) the plugin creating problem or disable it.

Note: Your host may not allow the 32M to 64M increase, or they may have a setting which overwrites the change you made to your wp-settings.php. This is something which can also be changed in the php.ini or the .htaccess, depending on the host.

.htaccess Settings:

If your host is overriding your wp_settings.php configuration or you don’t have access to PHP.ini, try adding this to an .htaccess file in your wordpress directory:

php_value memory_limit 16M

Do share your experience in comments.

VN:F [1.8.4_1055]
Rating: 5.5/10 (2 votes cast)
VN:F [1.8.4_1055]
Rating: 0 (from 0 votes)
How To Solve WP Error: Fatal error: Allowed memory size of 33554432 bytes exhausted5.5102

admin Email this author | All posts by admin | Subscribe to Entries (RSS)

 

Leave a Reply

You must be logged in to post a comment.

You can buy xeloda here