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
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | gcal_events.module.txt | 38.41 KB | Se7enLC |
| #4 | gcal_events.module.txt | 37.85 KB | Se7enLC |
Comments
Comment #1
Se7enLC commentedCan 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
Comment #2
theaceswt commentedhttp://www.google.com/calendar/f
Comment #3
theaceswt commentedWhere do I find the php.ini file?
Comment #4
Se7enLC commentedIt'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.
Comment #5
Se7enLC commentedI 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)
Comment #6
Se7enLC commentedHere's the Drupal FAQ for that error:
http://drupal.org/node/76156
Comment #7
Se7enLC commentedI 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.
Comment #8
theaceswt commentedThe Debug module you sent did the trick. Thanks...Should I still raise my PHP limits?
Comment #9
Se7enLC commentedTry 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.
Comment #10
theaceswt commentedRight 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.
Comment #11
Se7enLC commented