Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
Quotes

" ... I want to tell you that your thyme product is functional and valuable beyond words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."

" ... Thanks for such a complete project, its making my job much easier. ..."

" ... I have now deployed 4 different calendars and our users love them ... "

" ... Easy to install and use and a great look/design. ..."

" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
Fatal error: Allowed memory size of 16777216 bytes exhausted

 
Post new topic   Reply to topic     Forum Index -> Hacking Thyme
View previous topic :: View next topic  
Author Message
dutchmarktets



Joined: 06 Oct 2006
Posts: 38
Location: The Hague - Holland - Netherlands

PostPosted: Mon Nov 13, 2006 10:36 am    Post subject: Fatal error: Allowed memory size of 16777216 bytes exhausted Reply with quote

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
View user's profile Send private message Visit poster's website
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Mon Nov 13, 2006 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
dutchmarktets



Joined: 06 Oct 2006
Posts: 38
Location: The Hague - Holland - Netherlands

PostPosted: Mon Nov 13, 2006 1:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jholstein



Joined: 21 Jun 2006
Posts: 15

PostPosted: Thu Nov 30, 2006 5:42 pm    Post subject: Zend file for Year display fix Reply with quote

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
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Thu Nov 30, 2006 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jholstein



Joined: 21 Jun 2006
Posts: 15

PostPosted: Thu Nov 30, 2006 9:39 pm    Post subject: Year display error Reply with quote

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
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Thu Nov 30, 2006 10:19 pm    Post subject: Reply with quote

> 36,000 events in one calendar.. wow. I've created / uploaded http://www.extrosoft.com/products/thyme/class.event_matrix-large-zend.dat

Follow the same instructions above. Taking care to upload in binary mode.
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Sat Dec 02, 2006 5:28 pm    Post subject: Fix worked Reply with quote

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

PostPosted: Sat Dec 02, 2006 8:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Hacking Thyme All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.