Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 80 bytes) in /home/diamong1/public_html/baycitylions/sites/all/modules/gcal_events/simplepie.inc on line 13232

See at www.baycitylions.com

CommentFileSizeAuthor
#9 gcal_events.module.txt38.41 KBSe7enLC
#4 gcal_events.module.txt37.85 KBSe7enLC

Comments

Se7enLC’s picture

Can you share the XML address of the calendar you are using? By default, it requests 2500 events and then filters down to the number needed. If you actually have a large calendar, that could be a problem.

As a temporary fix, try increasing the size of available memory in php.ini and see if it still exhausts it

theaceswt’s picture

Title: Fatal Error: simplepie.inc, memory exhausted » Why do I get a gCal Fatal Error
Category: support » bug
theaceswt’s picture

Where do I find the php.ini file?

Se7enLC’s picture

StatusFileSize
new37.85 KB

It's usually in /etc/php or /etc/apache if you're running linux. It depends on the distribution you are running.

Try this debug version of the module - I changed it so that instead of an arbitrarily large number of entries (2500), it only downloads the number requested. Make sure to call it "gcal_events.module" and overwrite the one you have.

Let me know if that does anything different - if it works, I'll fix it up and make a release out of it in case anyone else runs into this.

Se7enLC’s picture

I did some analysis of my own site and noticed that PHP is using between 15 and 25MB just loading drupal. Your PHP seems to be limited to 32MB, which might be a bit low (mine is set to 128MB as a comparison). The debug version I just sent probably won't help much if you're already really close to the memory limit.

Here's what I have for mine (yours may be different depending on distribution and version):
/etc/php/apache2-php5/php.ini:
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)

Se7enLC’s picture

Category: bug » support

Here's the Drupal FAQ for that error:
http://drupal.org/node/76156

Se7enLC’s picture

Title: Why do I get a gCal Fatal Error » Fatal Error: simplepie.inc, memory exhausted

I just did some more testing and increased the number of events to 500. Memory usage went up to 50MB. Looks like simplepie can be a bit of a memory hog.

theaceswt’s picture

The Debug module you sent did the trick. Thanks...Should I still raise my PHP limits?

Se7enLC’s picture

Title: Why do I get a gCal Fatal Error » Fatal Error: simplepie.inc, memory exhausted
Category: bug » support
StatusFileSize
new38.41 KB

Try this newer debug version. It should list memory limits and memory usage in the debug output. Just look for each time it says a memory usage and see what it is. If it's ever 20-25 or higher, you might want to raise your memory limit from 32 to 64. If it's down below 20 you might be fine.

theaceswt’s picture

Right now it is between 14 and 15 so we should be fine. Thank you for your help in getting this issue resolved. I appreciate it. Wish I knew more about programming.

Se7enLC’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.