Support

Home Forums Event Espresso Premium From the Blog – Fatal error: Out of memory

From the Blog – Fatal error: Out of memory

Posted: October 14, 2013 at 9:44 am

Viewing 9 reply threads


Mark Oxenham

October 14, 2013 at 9:44 am

After my server change all looks to be working fine but I am getting this message in the From the Blog panel in the sidebar of the admin area:
Fatal error: Out of memory (allocated 42205184) (tried to allocate 491520 bytes) in /public_html/wp-includes/SimplePie/Item.php on line 1490
As far as I can see the memory limit is set to 128M?


Tony

  • Support Staff

October 14, 2013 at 10:09 am

Hi Mark,

I’m assuming you have done the steps Sindey outlined here

https://eventespresso.com/topic/blank-settings-pages-after-server-change/#post-62686

Adding

define( 'WP_MEMORY_LIMIT', '128M' );

To wp-config.php?

Unfortunately your Host can also override these settings so if you have done the above, I would adivse you to contact you host tech support and check what the memory limit is set to.


Mark Oxenham

October 14, 2013 at 10:16 am

Hi Tony, yes I did that and the hosts said it is 128M. Is there a way I can check what it is actually set to?


Sidney Harrell

October 14, 2013 at 10:28 am

There are several layers where memory limits can be set. WordPress allows you to set a maximum memory limit and php lets you set a maximum memory limit. If both of those are set to 128MB but you are still running out of memory at 42MB, then you are probably running into the physical memory limit. This can either be caused by literally running out of RAM on the server, or more likely, hitting a limit imposed by the hosting provider on how much memory each process can use. If the host has a physical server with 2GB of RAM, and they want to use it to service 50 accounts, then they can set a per-process limit of 40MB. You might want to speak with your host’s technical support to see if they can raise that limit.


Josh

  • Support Staff

October 14, 2013 at 10:34 am

Yes. There’s a script you can download here:

http://magazine.joomla.org/issues/Issue-Dec-2010/item/295-Are-you-getting-your-fair-share-of-PHP-memory

Then upload to your server and run the script by navigating to yoursite.com/phpmemtest.php


Mark Oxenham

October 15, 2013 at 2:13 am

I ran the test and it went up 99M:
You have allocated 99M (103907432) memory in this php script


Josh

  • Support Staff

October 15, 2013 at 7:46 am

Hi Mark,

Here’s a guide that may help in this case:

http://www.isthisyourhomework.com/how-to-fix-the-wordpress-white-screen-of-death/


Sidney Harrell

October 15, 2013 at 7:51 am

Hi Mark, I incorporated a memory limit test into the requirements plugin. You can download it here. Once you’ve uploaded and activated it, go to Tools->requirements check. In the php section, you’ll see a button next to “Test actual PHP memory limit” marked “Test”. That way you can test within the WP environment and help narrow down where the bottleneck is.


Mark Oxenham

October 15, 2013 at 8:16 am

Thanks Sidney, I’ll try that and get in touch with the hosts with the results.


Mark Oxenham

October 15, 2013 at 8:23 am

Thanks Josh & Sidney, I tried the php memory test and it wouldn’t go above 40M. I added the line to the htaccess file in Josh’s link and it now runs up to 128M. Problem solved.
Thanks guys.

Viewing 9 reply threads

The support post ‘From the Blog – Fatal error: Out of memory’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso