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 ForumsForumForumProblem in Adding New Forum SectionsProblem in Adding New Forum Sections
Previous
 
Next
New Post
8/6/2008 8:42 PM
 

I am agree with Chris, it looks like the same issue, on a not corrected IUpgardeable running on a previous upgrade.  I still have no change to fix this with a simple sql-script.  But the first 3 scripts on that link you posted did help some users. 

 
New Post
8/6/2008 9:53 PM
 

Unfortunately, I already had that data in my Permission table, so that wouldn't work for me.  I'm trying to debug exactly where the null reference exception is.  It might help if I had the PDB for 4.4.3, is that available? 

Chris

 
New Post
8/7/2008 5:04 AM
 

Exactly. I checked and I can't even edit existing forum sections. Can we expect any working fix for this problem soon?

 
New Post
8/7/2008 6:28 AM
 

A database documentation is availible from www.dnnforums.com

 
New Post
8/8/2008 1:18 AM
 

Matthias Schlomann wrote

A database documentation is availible from www.dnnforums.com

I'm not sure if you were replying to my request for the PDB, but I was asking for the program database file that the compiler creates during a build, to make debugging easier.

At any rate, I figured out the problem I was having, and in fully testing, figured out the problem DNN User was having as well.  I was also experiencing DNN User's issue, it just wasn't noticed until he brought it up.  I'm suprised no one else has seen this yet, or if they have they've fixed it in silence.  The underlying issue is that the script to fix-up the lists in this post http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/7/threadid/181497/scope/posts/Default.aspx has a couple of bugs in it. 

The following are the last three inserts from the post as it stands right now:

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumType', '2', 'Normal', 0, 0, 1, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumType', '2', 'Notification', 0, 0, 2, @ModuleDefId)

INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, ParentID, Level, SortOrder, DefinitionID)
VALUES
('ForumType', '2', 'Link', 0, 0, 3, @ModuleDefId)

All three forum types are set to the same value.  I compared this with a system that was working.  Normal should be 0, Notification is 1, Link is 2.  Once I fixed this in the DB, I could edit an existing forum.

Since DNN User first reported not being able to add one, I tested that and fixing the ForumTypes didn't fix the inability to add a new forum.  The issue with adding a new one (again in my database, YMMV, but it's pretty clear to me that the sql script was lacking) was that all of my ForumBehavior items were missing.  These items should have been added to the sql script in the post referred to above, since it's a workaround to the IUpgradeable not working correctly in some cases.  Once I added the ForumBehavior items (I copied them from a working system, you could also create the rows by looking at AddLists() in UpgradeLogic.vb), I was able to add new forums.

I know people involved with the project care, so my suggestion would be to do a SQL Compare (using RedGate or similar utility) to ensure that various supported upgrade scenarios end up with the same data as a freshly installed system.  This was clearly not done.  Instead, I had to take my site offline, create crashdumps with windbg after reproducing the issue, unassemble where the exception was thrown, compare it to the source code, and deduce from there why certain items were null.

Right now what should be done is the sql script in the referred to post should be fixed ASAP.  It should include everything in UpgradeLogic.vb, because it seems like if it doesn't get run, there's more missing than what is currently in the script, like ForumBehavior.

Hope that helps someone besides me.

Regards,
Chris Rock

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumProblem in Adding New Forum SectionsProblem in Adding New Forum Sections


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