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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can not add userCan not add user
Previous
 
Next
New Post
11/27/2011 7:24 AM
 

Imran -

I took a look at the source code related to this issue and can see that with the introduction of the new DST aware time-zone feature, an automatic update to a user's profile information may occur when their profile information is first loaded and that this issue could happen if a newly created user's UserId is still -1 at the time the update to the preferred time-zone profile property occurs. I was, however, not able to reproduce the issue in either a fresh DNN 6.01.01 source install or in one that was upgraded through several versions from 5.06.03.

Please answer the following questions to help reproduce and track down the cause of this issue:

1. Which user registration mode is selected in Site Settings, Advanced Settings, Security Settings? Private, Public, or Verified?

2. Are any non-default options for registration set in User Accounts, User Settings, User Account Settings?

3. Is the requirement for a valid user profile on registration enabled in User Accounts, User Settings, User Account Settings?

 


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
12/1/2011 2:11 AM
 
For us, the answers are:
1. any of the three (private, public,verified) and the problem is there
2. The only one is the display name [firstname] [lastname]
3. either selections and the problem is still there.

 
New Post
12/2/2011 6:27 PM
Accepted Answer 
Hi Daniel,

William, hit it on the spot.  A User Profile Property is trying to be inserted for a UserID with an id of -1.  To correct this, one of the stored procedures need a tweak, namely UpdateUserProfileProperty.

The ELSE in the sproc needs to have the following conditional statement on it: 

ELSE IF @UserID IS NOT NULL AND @UserID > -1

This should hopefully resolve your Foreign Key issue.

.::. Vince.



 
New Post
12/8/2011 1:50 PM
 

Thanks Vincent, I've added the condition to the sp, but the errors are still there.

What I don't see:

On the User Accounts >> Manage Roles tab I don't see any ROLES people are enrolled in listed. The usual list is blank.

What I do see:

If I ADD ROLE TO USER, with the (SEND NOTIFICATION) checked, then I get the error:

Error: 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.Security.Roles.RoleController.SendNotification(UserInfo objUser, RoleInfo objRole, PortalSettings PortalSettings, UserRoleActions Action) at DotNetNuke.Security.Roles.RoleController.AddUserRole(UserInfo objUser, RoleInfo objRole, PortalSettings PortalSettings, DateTime effDate, DateTime expDate, Int32 userId, Boolean notifyUser) at DotNetNuke.Modules.Admin.Security.SecurityRoles.cmdAdd_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---

If I ADD ROLE TO USER, without the (SEND NOTIFICATION) checked, then I DONT get the error, the page refreshes, but still doesn't show any roles - and in checking the database, the role (any role) has NOT been added.

So far this is only showing up in an upgraded dnn 5.4 >> 6.1

Any further thoughts?


 
New Post
5/13/2013 11:05 AM
 

It's a long shot, but I'm having the SAME exact issue. Did you ever figure out how to fix this?

Thanks!

Josh

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can not add userCan not add user


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