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...Upgrading DNN P...Upgrading DNN P...7.4.2 to 8.0.3 - User Profile exception7.4.2 to 8.0.3 - User Profile exception
Previous
 
Next
New Post
11/2/2016 1:26 AM
 

Hi all

I've just discovered that the user profile page is no longer accessible on my system. It throws the error below.

This is an old DNN instance upgraded over time.

I've checked the DataType lists against a working 8.0.3 and as a result I changed the country control from this:

DotNetNuke.UI.WebControls.DNNCountryEditControl, DotNetNuke 

to this:

DotNetNuke.UI.WebControls.DnnCountryAutocompleteControl, DotNetNuke

But that didn't help.

I've also wiped and replaced the items in DesktopModules\Admin\ViewProfile\ with what comes in the 8.0.3 installer to be sure it's all good.

Any ideas are appreciated.

Regards
Rob

 

Error: My Profile 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.Entities.Users.ProfilePropertyAccess.DisplayDataType(ProfilePropertyDefinition definition) at DotNetNuke.Entities.Users.ProfilePropertyAccess.GetRichValue(ProfilePropertyDefinition property, String formatString, CultureInfo formatProvider) at DotNetNuke.Entities.Users.ProfilePropertyAccess.GetProperty(String propertyName, String format, CultureInfo formatProvider, UserInfo accessingUser, Scope currentScope, Boolean& propertyNotFound) at DotNetNuke.Services.Tokens.BaseCustomTokenReplace.replacedTokenValue(String objectName, String propertyName, String format) at DotNetNuke.Services.Tokens.BaseTokenReplace.ReplaceTokens(String sourceText) at DotNetNuke.Services.Tokens.TokenReplace.ReplaceTokens(String sourceText) at DotNetNuke.Modules.Admin.ViewProfile.ViewProfile. (EventArgs e) --- End of inner exception stack trace ---

 
New Post
11/2/2016 3:57 AM
 
most likely, there are records in UserProfile table containing value of wrong type, e.g. Country and Region now need to contain numbers (entryID from Lists table) instead of names or ISO codes.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/2/2016 6:52 AM
 
hmm.. as part of trying to resolve this I've found a bug in the registration process.

If one enables the country field in the registration form, then when a user views the form, the country field is pre-populated with the country.. possibly by browser locale or something.

If the user registers without modifying that country, then the profile table will be populated with the literal country name and not the country ID... and this is not correct.

Only if the user clicks into the country field, clears it and then begins typing and selects a suggested country, then the profile table will get the country ID and not the name.

So that's definitely a bug, but it doesn't appear to affect the issue I'm having. I'll continue with this.
 
New Post
11/2/2016 6:57 AM
 
In fact, the above appears to happen even without the country field in the reg form. The user profile is populated with the detected written country every time, unless it is specifically edited and a selection made from the autosuggest.
 
New Post
11/2/2016 7:14 AM
 
Ok and now I can see the problem with my system

I don't know why this would be done during the upgrade but it will have wiped the biography datatype value of 490 and replaced it with 513, leaving all of the existing portals with the old value broken.

crazy stuff but thankfully I can fix it now.
Regards
ROb
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...7.4.2 to 8.0.3 - User Profile exception7.4.2 to 8.0.3 - User Profile exception


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