I am experiencing a problem where a topic added with an event that has a duration specifies breaks the forum due to a script time-out in functions_calendar.php on line 897. (That's in function display_calendar)
As an example, I've put a topic on with an event on 22nd March 2004, at 21:30. Post that and all is fine. If I add a time into the "During" (sp?) box for 6 0 0 so that the event lasts 6 days, all subsequent pages fail to load, eventually giving a critical error due the script exceeding the maximum execution time. For some reason my forum never gets out of this loop:
Code: Select all
// mark the offset as used for the whole event period
$offset_date = $event_start;
while ($offset_date <= $event_end)
for ($l=count($map[$offset_date]); $l <= $map_offset; $l++)
$map[$offset_date][$l] = -1;
$map[$offset_date][$map_offset] = $i;
$offset_date = mktime( 0,0,0, date('m', $offset_date), date('d', $offset_date)+1, date('Y', $offset_date));
that's the bit causing my problem. I've checked my install, I'm pretty certain I've run all the sql updates.
The date in the database is 1079991000 and the duration is 518399.
(test system is Apache 1.3.27 with php 4.3.2 on W2k)