My site was at DNN 7.4.1. I upgraded the site to DNN 9.2.2 and Forum to v5.1.0. After this the forum does not display properly.
I downloaded the Source, compiled, and ran under the debugger. Bless you for making that a very smooth and easy process. At line 947 in Groups.vb we have
If objForum.MostRecentPost.Author IsNot Nothing Then
Deep inside the Author property, at line 192 in Configuration.vb, we create a Configuration object. In my case the ModuleId passed to the constructor is -1. This causes the constructor to throw. Higher up, in Groups.vb, the exception is caught and causes the code to omit closing some div tags.
I tried hacking the Author property of PostInfo to convert the exception to a Nothing return.
That was enough to allow the Forums front page to display in a correct layout. The data was incomplete as it was missing the author information.
Clicking through to an individual forum though showed a corrupted display. I didn't investigate that in detail, but I think some similar problem has caused the code to emit incorrect html.
I am in well over my head here. It seems to me that the module id should not have been -1. I don't know if this is a problem in the forums tables of my database, or a problem in the code.
Any ideas on fixing this? The site is not private. I can make a backup of the site files and the database available.
My site was at DNN 7.4.1. I upgraded the site to DNN 9.2.2 and Forum to v5.1.0. After this the forum does not display properly.
I downloaded the Source, compiled, and ran under the debugger. Bless you for making that a very smooth and easy process. At line 947 in Groups.vb we have
If objForum.MostRecentPost.Author IsNot Nothing ThenDeep inside the Author property, at line 192 in Configuration.vb, we create a Configuration object. In my case the ModuleId passed to the constructor is -1. This causes the constructor to throw. Higher up, in Groups.vb, the exception is caught and causes the code to omit closing some div tags.
I tried hacking the Author property of PostInfo to convert the exception to a Nothing return.
That was enough to allow the Forums front page to display in a correct layout. The data was incomplete as it was missing the author information.
Clicking through to an individual forum though showed a corrupted display. I didn't investigate that in detail, but I think some similar problem has caused the code to emit incorrect html.
I am in well over my head here. It seems to me that the module id should not have been -1. I don't know if this is a problem in the forums tables of my database, or a problem in the code.
Any ideas on fixing this? The site is not private. I can make a backup of the site files and the database available.