User Registration Failing after an Upgrade to 9.2.0

Issue

After upgrading to 9.2.0, new users on the site are failing to register. Users are being created only halfway, in a sense that no roles are automatically assigned to them and registration cannot be completed.

An error can be observed in the log files: "Error: Account Registration is currently unavailable"

DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?tabid=1788&error=An unexpected error has occurred&content=0
DotNetNuke.Services.Exceptions.PageLoadException: Error: Account Registration is currently unavailable. ---> DotNetNuke.Services.Exceptions.ModuleLoadException: Error: Account Registration is currently unavailable. ---> System.ArgumentException: Unknown UserCreateStatus value encountered
Parameter name: userRegistrationStatus
  at DotNetNuke.Entities.Users.UserController.GetUserCreateStatus(UserCreateStatus userRegistrationStatus)
  at DotNetNuke.Modules.Admin.Users.Register.CreateUser()
  --- End of inner exception stack trace ---
  at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage)
  --- End of inner exception stack trace ---
  at DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL)
  at DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc)
  at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage)
  at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc, Boolean DisplayErrorMessage)
  at DotNetNuke.Modules.Admin.Users.Register.CreateUser()
  at DotNetNuke.Modules.Admin.Users.Register.registerButton_Click(Object sender, EventArgs e)
  at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
  at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
  at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
  at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
  at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
  at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Environment

DNN Environment upgraded to version 9.2.0.

 

Audience

This article is intended for Administrators who are performing upgrades.

 

Root Cause

Root Cause hasn't been identified at this point, this bug has been reported and meanwhile, you can use the workaround below.

 

Workaround

Check Site Settings:

  1. Select Site Settings in Persona Bar.
  2. Select Site Behavior.
  3. Select User Profiles.
  4. Check if any default fields have been deleted or are missing (screenshots with default fields are below).

    profile1.jpgprofile2.jpg

Re-create missing default fields i. e. the Photo field. You can fix this easily by creating the field again (check screenshots below the steps for details).

  1. Click Add Field.
  2. Select Field Name* - Photo.
  3. Select Data TypeImage.
  4. Select Property Category*Preferences.
  5. Enter Length - 0.
  6. Leave Default Value - blank.
  7. Leave Validation Expression - blank.
  8. Switch Required - No.
  9. Switch Read Only - No.
  10. Enter 0 into View Order.
  11. Switch Visible to Yes.
  12. Select Default Visibility - All Users.
  13. Click Next.


If Localization is enabled, these extra steps are also required:

  1. Choose Language - English (by default, but change to your Language if needed).
  2. Enter Field Name* - Photo.
  3. Enter Category Name - Preferences.
  4. Click - Save.



Photo.jpg



NOTEWe do not recommend removal of any of the default profile fields, simply don't use them if you do not need them.

 

Confirmation:

  1. Register a user.
  2. Check that user has roles assigned.
  3. Check that error "Account Registration is currently unavailable" is no more present in the log file.

Comments

0 comments

Please sign in to leave a comment.