Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsAttempted to divide by zero Error...Attempted to divide by zero Error...
Previous
 
Next
New Post
6/20/2006 10:30 AM
 
I'm getting the following error on the page that I only have the calendar on.  Any ideas?  I'm hoping this is an easy deal.

Error: Parks and Recreation Calendar is currently unavailable.
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 ---
 
New Post
6/27/2006 9:13 AM
 

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

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsAttempted to divide by zero Error...Attempted to divide by zero Error...


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out