even though I changed the memory limit up to 32M in the php.ini file and added a line with memory limits in the specific script described in the error below, no way to get the calendar working
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 122880 bytes) in /Library/WebServer/Documents/openemr/interface/main/calendar/modules/PostCalendar/pnincludes/Smarty/Smarty_Compiler.class.php on line 325.
Please help me out
Daniele Pontillo, MD
The Memory Limit in my php.ini is set to 20M and I consider that dangerously high. I don’t like my web scripts eating up so much memory. Remember, it’s a per-instance memory chunk. So if I have 5 connections each sucking down 20MB of RAM that’s 100MB in total. In my environment I could have as many as 100 silmultaneous connections so you can figure the math pretty quickly.
Anyway…
The root of the memory trouble might be due to the number of events being listed in the calendar at one time. In the newest CVS version of the software the calendar goes a little lighter on memory use than it used to. Yet I can still get it to crash with a memory limit error. I have 130+ people as ‘providers’ so when I’m viewing the Week-View and All-Providers the php script barfs with the error.
The short term solution is to not display the week view with all providers.
The long term solution is to fail gracefully perhaps by informing the user their request is too great and they need to revise their viewing criteria (ie. only a few providers or a different calendar view).