Also experienced this in rc2:

Fatal error: Maximum execution time of 30 seconds exceeded in /Applications/xampp/xamppfiles/htdocs/parroter5/sites/all/modules/date/date_repeat/date_repeat_calc.inc on line 264

Trying to create an event starting on 2008-08-18 18:00 and which ends on 2008-08-18 20:00.

It is set to repeat every week(s), until 2009-06-15, except 2008-12-22

Comments

karens’s picture

Are you using PHP5.2 or above, or a version below that? It sounds like another PHP4 issue since the PHP4 code is more processor-intensive.

pkej’s picture

phpinof() says: PHP Version 5.2.6. This is with an xampp installation 1.7.6. Same result both on Windows and on Mac OS X. On the Windows box the erroer was:

Fatal error: Maximum execution time of 60 seconds exceeded in C:\Documents and Settings\n18134\Skrivebord\xampp\htdocs\parroter5\sites\all\modules\date\date_repeat\date_repeat_calc.inc on line 291

A bit interesting that they fail on different parts. I will try to increase the max execution time to 5 minutes, but it seems ridiculous. The Event module is able to create a repeating event of the same type (without exceptioned dates) without any problem (well, hrm, there is a bug in repeating events which make them fall on the day before the targeted day...)

Anyway, I also tried without "except 2008-12-22", and it still timed out, both on windows and on my mac.

karens’s picture

Status: Active » Closed (duplicate)

Then I think this is a duplicate of http://drupal.org/node/274250, which I still haven't been able to reproduce.

Anything you can provide to help replicate this will help me debug it. It doesn't do this for me at all.

Please post additional info on the other issue.

arnaud.ranson’s picture

I ve done a lot of tests and i'm sure that the probleme come from locale

Using root (uid = 1), i tried in french and english.
English causes no problems
French gives the timeout error

tried whith drupal 5 / Date 5.2

webengr’s picture

I think I might be seeing the same thing, November 17th, I just was trying the except for date repeat for the first time myself. I also am using 5.2.5 php, drupal 5.14 and the latest stable for calendar and date, 5.x-2.5, I just got today. (yes I did update.php).

I had a recurring date set for Jan 2008 through Dec 2011
I tried with it reset for through Dec 2009 and it seemed to take longer before giving up.. weird...
And top showed the web server was hogging cpu big time....
PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
2580 www 61 0 34M 36M onproc/1 - 0:59 72.71% httpd

Btw, I don't have DATE COPY enabled.

I tried setting repeat every thursday using the first thursday and the end of this month the except one date of christmas, still times out... even if I don't use advanced to say every thursday.

"Fatal error: Maximum execution time of 30 seconds exceeded in ..../drupal/sites/all/modules/date/date_repeat/date_repeat_calc.inc on line 387"

"Fatal error: Maximum execution time of 30 seconds exceeded in .../drupal/sites/all/modules/date/date_repeat/date_repeat_calc.inc on line 434"

"Fatal error: Maximum execution time of 30 seconds exceeded in .../sites/all/modules/date/date_repeat/date_repeat_calc.inc on line 264"

So it dies with timeout in loop?

webengr’s picture

Maybe....

OpenBSD and some other unices are using "hardened" php for the port,
http://www.hardened-php.net/suhosin/

my phpinfo:
This server is protected with the Suhosin Patch 0.9.6.2
Copyright (c) 2006 Hardened-PHP Project

I remember that for zencart, it had a problem with session information being encrypted because a module in the admin section tried to get cart information direct from reading the session....

This is interesting in php.ini

; If you fear that Suhosin breaks your application, you can activate Suhosin's
; simulation mode with this flag. When Suhosin runs in simulation mode,
; violations are logged as usual, but nothing is blocked or removed from the
; request. (Transparent Encryptions are NOT deactivated in simulation mode.)
;suhosin.simulation = Off

UNFORTUNATELY setting
suhosin.simulation = On
DID NOT HELP :(