I have found the same error:
ModuleId: 506
ModuleDefId: 4
FriendlyName: Events
ModuleControlSource: DesktopModules/Events/Events.ascx
AssemblyVersion: 03.02.02
Method: DotNetNuke.Modules.Events.EventInfoHelper.AddEventRecurrences
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 4
PortalName: Project K.E.Y.S ERP Portal
UserID: 70
UserName: kent\mcraig0
ActiveTabID: 114
ActiveTabName: Student Team Calendar
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
ExceptionGUID: dff86128-e09e-49bd-9c6a-43bfbc51d612
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Attempted to divide by zero.
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Attempted to divide by zero. ---> System.DivideByZeroException: Attempted to divide by zero. at DotNetNuke.Modules.Events.EventInfoHelper.AddEventRecurrences(EventInfo oEventEvent, DateTime SelectBeginDate, DateTime SelectEndDate) at DotNetNuke.Modules.Events.EventInfoHelper.LoadEventDateRange(Int32 ModuleID, DateTime BeginDate, DateTime EndDate, Boolean Initialize) at DotNetNuke.Modules.Events.EventMonth.BindDataGrid() at DotNetNuke.Modules.Events.EventMonth.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: DENT
HOWEVER, I have found my problem with it and I think some of it is validation checking in the web page.
I had a user that put an entry in the calendar to start on a date, in the database when calling the EVENTSGETBYRANGE stored procedure from Query Analyzer, I noticed the entry had a RepeatType of 1W, had a period of 0011100 and the Every was set to 0. I fixed it by changing the RepeatType to N.
Found in the calendar when adding a new entry you were able to do a repeat weekly, Repeated every 0 week on Tue, Wed and Thursday (Hence the 0011100 period) and it accepted it. Since the 0 week gave a period of 0, the event would fail with a divide by 0.
Can someone else verify this as a bug? I am using Version 03.02.00 of the Events module.
Thank you.
Nathan