I'm using version 03.03.08 of the Events module and running into errors with the EventList. The Event List is my default view of the Event Module and it resides on the home page. Before logging into the site I see an error stating "An Error has occured. Error: xxx Calendar is currently unavailable." where "MyDNNPortal" is part of my title (i think). When I log into the host account I see the following exception:
Error: MyDNNPortal Calendar is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Events.SelectCategory.get_SelectedCategory() at DotNetNuke.Modules.Events.EventList.BindDataGrid() at DotNetNuke.Modules.Events.EventList.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
After I'm logged in I can switch to another view of the calendar and everything displays fine. If I switch back to the List view, I see my 100 some odd events with no issue. I believe this has something to do with Categories. If I change the settings to not allow category selection I do not have this problem.
Upon further inspection of the event list control's source code, I believe the problem has to do with the fact that nothing is preselected in the Categories dropdown list. Has anyone tried tried initializing the dropdown list to the first item in the list, or checking that something is indeed selected before trying to use it? I'm not a VB developer, but I know in C# if you do not select an item on page load, errors will certainly follow when you try to get the selected item.
Is there already a fix for this problem? If so, can someone tell me where to find it?
Thanks