The Mighty Blog

Aug21

Written by:Will
8/21/2007  RssIcon

There is an obscure and seemingly untraceable error that may occur with the DotNetNuke (DNN) Core Forums Module. This error states, "User Settings is currently unavailable." I believe that I have nailed down how this happens and how to fix it!

There is an obscure and seemingly untraceable error that may occur with the DotNetNuke (DNN) Core Forums Module.  This error states, "User Settings is currently unavailable."  I believe that I have nailed down how this happens and how to fix it!

This appears to be a logical and data structure conflict within the Forum Module (versions 3.20.09 and below).  I am not 100% sure about the exact combination of events to reproduce this, but when you have a User account which is in the Administrators role, and you add this role as a Moderator to at least one forum, and then at some point add this same account to the Global Moderators, this will happen.  (Sorry for the run-on sentence...)

In my case, this error only happens to the user accounts that have some combination of the above events.  All other user accounts behave normally when you try to view their profiles within the Forum Module.

In order to fix this, I needed to run an SQL script against the database. 

WARNING!!!  Do not run this script without first backing up your database!!!

Here is what I did:

DECLARE @UserId INT;
-- change the ID number to match the user you are trying to fix
SELECT @UserId = 1;
UPDATE [dbo].[Forum_Users] SET [IsGlobalModerator] = 0
WHERE [UserID] = @UserId AND [IsGlobalModerator] = 1
DELETE FROM [dbo].[Forum_Moderators] WHERE [UserId] = @UserId
INSERT INTO [dbo].[Forum_Moderators]([UserID],[ForumID],[AssignedDate],[PostsModerated])
SELECT @UserId, [ForumId], GETDATE(), 0 FROM [dbo].[Forum_Forums]
-- optional SELECT statement to see the results
SELECT [UserID],[ForumID],[AssignedDate],[PostsModerated]
FROM [dbo].[Forum_Moderators]
ORDER BY [ForumID], [UserId]

The final SELECT statement was just so I can look at the results of the Moderators table to see what I had done.  It isn't required.

After running this SQL script on your database, I would imagine that you will also no longer have this problem.  :)

1 comment(s) so far...


By the way, a new version of the Forum Module has been released. One of the MANY upgrades was this specific issue. However, I wouldn't suggest upgrading yet, as there are quite a few new bugs introduced that would prevent me from moving it into any live web site.

By wills on   11/27/2007

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Comment:
Security Code
CAPTCHA image
Enter the code shown above in the box below
Add Comment   Cancel 
Add to Technorati Favorites
Tweet about my blog
Will Strohl - The Mighty Blog - RSS Feed

Tag Cloud

Sort by:Tag | SizeRSS
camp   community   dnn   dotnetnuke   dotnetnuke®   event   example   free   get   group   integer   jquery   meeting   module   new   odug   orlando   search   session   think  
The opinions expressed here are the personal opinions of Will Strohl and do not necessarily represent the views and opinions of the DotNetNuke Corporation.
© Copyright 2004-2010 by Will Strohl. All rights reserved.Website Skinned By: Ralph Williams  Website Hosted By: Applied Innovations