| View previous topic :: View next topic |
| Author |
Message |
dutchmarktets
Joined: 06 Oct 2006 Posts: 38 Location: The Hague - Holland - Netherlands
|
Posted: Mon Nov 13, 2006 10:36 am Post subject: Fatal error: Allowed memory size of 16777216 bytes exhausted |
|
|
Hello,
We are running Thyme 1.3. The server runs under FreeBSD and MySQL under MySQL 4.1.15-Debian_1ubuntu5.
After having populated the calendar with a few hundred events for 2007, the YEAR view tells the visitor the following message :
| Quote: |
"Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 54 bytes) in /home/users/myaccount/www/myserverdirectory/include/date_utils.php on line 320"
|
When I tried again its says :
| Quote: |
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 38 bytes) in home/users/myaccount/www/myserverdirectory/include/date_utils.php on line 721
|
Trying again with a reload, it shows nothing at all, just a blank frame, not even an empty calendar, just blank.
For the year 2006 (less events, filled only the last 3 months) there is no problem.
But for year 2008 (full of events) the same problem as for 2007 occurs.
Also the MONTH and WEEK views show no problem at all.
I used /Firefox 0.8 browser under Linux/SuSE 9.1.
Another test under Windows/XP with IE6.0 browser :
| Quote: |
"Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 45 bytes) in /home/users/myaccount/www/myserverdirectory/include/class.event_matrix.php on line 496"
|
Another test under Linux/SuSE9.1 with Firefox browser :
| Quote: |
"Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 130 bytes) in /home/users/myaccount/www/myserverdirectory/class.repeater.php on line 841"
|
I do not think this situation is browser dependent, though.
All of the above happens only when I select ALL events to be displayed in YEAR. When I select a particular event category : no problem.
Is there a limit as for the maximum number of events in a YEAR ? Should I have a separate database for the calendars ? Currently I have all Thyme tables in the same database as lots of other tables from the rest of the website.
This never happened before. Just this day. All we have done is to enter events.
What does this mean and what can I do to prevent this situation ? _________________ George Philip
(somehow i misspelled my userid ;-)
http://www.sitegevonden.nl |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Mon Nov 13, 2006 1:05 pm Post subject: |
|
|
Hi,
This is a memory limit set by your PHP configuration. Specifically the php.ini memory_limit setting. It is only about 175 events total, but given repeating events, in the year 2007, you have about 11,000 - 12,000 occurrences. This is a lot for PHP to handle.
Please download http://www.extrosoft.com/products/thyme/class.event_matrix-large-ioncube.dat
rename to class.event_matrix.php and upload over your existing one include/classes/class.event_matrix.php in Thyme's folder.
This will resolve the issue with the year view, but break rss feeds for year views and exports of the year views. I don't think you use either of those so you should be set. |
|
| Back to top |
|
 |
dutchmarktets
Joined: 06 Oct 2006 Posts: 38 Location: The Hague - Holland - Netherlands
|
Posted: Mon Nov 13, 2006 1:29 pm Post subject: |
|
|
Hello Ian,
Indeed I have disabled all exports, such as RSS.
I replaced the class.event_matrix.php with the one you suggested, and now it works perfectly !
How I should express my proper gratitude I do not know, but thanking you as many times as the world population would still be an understatement.
My customer did not want the link to Extrasoft, but I will make sure that other wesbites will carry that link to Extrasoft. As a "thank you".
Best regards,
George _________________ George Philip
(somehow i misspelled my userid ;-)
http://www.sitegevonden.nl |
|
| Back to top |
|
 |
jholstein
Joined: 21 Jun 2006 Posts: 15
|
Posted: Thu Nov 30, 2006 5:42 pm Post subject: Zend file for Year display fix |
|
|
Ian, do you have the fixed class.event_matrix.php file for Zend Optimizer instead of ioncube?
Please download http://www.extrosoft.com/products/thyme/class.event_matrix-large-ioncube.dat
rename to class.event_matrix.php and upload over your existing one include/classes/class.event_matrix.php in Thyme's folder. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Thu Nov 30, 2006 6:00 pm Post subject: |
|
|
Hi,
Not at the moment. Before I create one, I want to be sure you are having the same issue. You get this same error when clicking on the Year tab? |
|
| Back to top |
|
 |
jholstein
Joined: 21 Jun 2006 Posts: 15
|
Posted: Thu Nov 30, 2006 9:39 pm Post subject: Year display error |
|
|
| Yes, I get the same error. Its for www.rcreader.com, we are about ready to go live with the calendar and have a lot of content within it. I appreciate your quick responses as always Ian:) |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
|
| Back to top |
|
 |
Guest
|
Posted: Sat Dec 02, 2006 5:28 pm Post subject: Fix worked |
|
|
Thanks Ian. That works. Few more questions.
1.)when going to 'events view' it says it showing upcoming events, but it shows the days previous events instead of todays (for instance today is Dec 2nd, but it shows Dec 1st events - even though if you go to month view it says its dec 2nd)
2.) The default list size in Event View is currently 10, where can I change that setting to allow more by default? |
|
| Back to top |
|
 |
admin
Joined: 01 Jul 2005 Posts: 20
|
Posted: Sat Dec 02, 2006 8:08 pm Post subject: |
|
|
Hi,
Make sure that your time zone as well as the default time zone in Admin -> Default Options are set correctly.
There is no option to set the default list size. I'll have to get this added in. |
|
| Back to top |
|
 |
|