[Solved] Calendar 0.7.13 recurring events error fills up the database
Posted: Fri Mar 21, 2008 8:28 pm
I am running CMSMS 1.2.3 with Calendar 0.7.13.
If a recurring event is created so that the recurring event selector is "No" while the "Recur until:" date is set to some point in the future, the script goes into a loop creating new events with exactly the same time as the parent event. Since the "recur until" date is never reached, this fills up the table in the database until some limit is reached at which point it stops. I have had over 130,000 events created this way.
While the database is filling up, the site is completely incapacitated. Eventually however, the database activity stops and the main part of the site is again available. If I am patient and wait for an error message from the Calendar script I get:
When I triggered this problem the first time I didn't know what had occurred and there were few events so I deleted the Calendar module and then reinstalled it. When I triggered it last night there were a lot of entries so I edited the tables directly to remove the offending entries.
I was not clear on why the error was occuring so I've been experimenting this morning on a new calendar on a different site (same servers). It seems the problem occurs regardless of whether I am editing an exisiting event or creating a new one. The main point is the "Recur until:" date is set to a point in the future while the recurring event type selector is still set to "No".
I've been using CMSMS since mid-February and I haven't got a clue how to formally submit a "bug report" for the Calendar module. I hope posting here will suffice. My apologies if this is an inappropriate forum.
I'll have a closer look at the scripts and see if I can pinpoint the problem but I don't know enough to patch the problem myself.
Leslie
If a recurring event is created so that the recurring event selector is "No" while the "Recur until:" date is set to some point in the future, the script goes into a loop creating new events with exactly the same time as the parent event. Since the "recur until" date is never reached, this fills up the table in the database until some limit is reached at which point it stops. I have had over 130,000 events created this way.
While the database is filling up, the site is completely incapacitated. Eventually however, the database activity stops and the main part of the site is again available. If I am patient and wait for an error message from the Calendar script I get:
An attempt to view the calendar itself resulted in the following error message:Fatal error: Maximum execution time of 30 seconds exceeded in /usr/www/users/von/planet/lib/adodb_lite/adodb.inc.php on line 384
The calendar admin page is completely inaccessible as the default view is the list of events. This makes it impossible to delete the offending event via the Calendar module.Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 712 bytes) in /usr/www/users/von/planet/modules/Calendar/function.displaycalendar.php on line 131
When I triggered this problem the first time I didn't know what had occurred and there were few events so I deleted the Calendar module and then reinstalled it. When I triggered it last night there were a lot of entries so I edited the tables directly to remove the offending entries.
I was not clear on why the error was occuring so I've been experimenting this morning on a new calendar on a different site (same servers). It seems the problem occurs regardless of whether I am editing an exisiting event or creating a new one. The main point is the "Recur until:" date is set to a point in the future while the recurring event type selector is still set to "No".
I've been using CMSMS since mid-February and I haven't got a clue how to formally submit a "bug report" for the Calendar module. I hope posting here will suffice. My apologies if this is an inappropriate forum.
I'll have a closer look at the scripts and see if I can pinpoint the problem but I don't know enough to patch the problem myself.
Leslie