YAFLogo

BWG
  • BWG
  • 100% (Exalted)
  • YAF Lover Topic Starter
2 years ago
Hi,

I'm seeing the following error when users try to register on my forum, YAF 3.1.8 .

Any idea what the cause is? (I've not had chance to try debugging yet)

Object reference not set to an instance of an object.

at YAF.Core.Model.UserRepositoryExtensions.AspNet(IRepository`1 repository, Int32 boardId, String userName, String displayName, String email, String providerUserKey, Boolean isApproved, User existingUser) in C:'inetpub'wwwroot'YAFNET_3_1_8_source'yafsrc'YAF.Core'Model'UserRepositoryExtensions.cs:line 555
at YAF.Core.Helpers.AspNetRolesHelper.CreateForumUser(AspNetUsers user, String displayName, Int32 pageBoardID) in C:'inetpub'wwwroot'YAFNET_3_1_8_source'yafsrc'YAF.Core'Helpers'AspNetRolesHelper.cs:line 111
Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
2 years ago

Any idea what the cause is? (I've not had chance to try debugging yet)

Yes the error thrown when your board dont have any rank with the Start Flag set. Atleast one rank in your board needs to be the start Rank.

BWG
  • BWG
  • 100% (Exalted)
  • YAF Lover Topic Starter
2 years ago

Any idea what the cause is? (I've not had chance to try debugging yet)

Originally Posted by: tha_watcha 

Yes the error thrown when your board dont have any rank with the Start Flag set. Atleast one rank in your board needs to be the start Rank.

Thanks - that was the problem. 👍

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
2 years ago

Any idea what the cause is? (I've not had chance to try debugging yet)

Originally Posted by: BWG 

Yes the error thrown when your board dont have any rank with the Start Flag set. Atleast one rank in your board needs to be the start Rank.

Originally Posted by: tha_watcha 

Thanks - that was the problem. 👍

I added an error log describing the issue, if the error occurs.