YAFLogo

ViralCipher
  • ViralCipher
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
Hello,

I installed the YAF.NET DotNetNuke Module 1.96.1 on DotNetNuke Community Edition 7.0.2 and the installation worked fine and I am able to use it as the Administrator account on the page I added the module on. However, when any other user hits the page with the module this error happens. I also noticed that the Administrator is the only registered user on the forum, but I have several users on my DotNetNuke website. Is it supposed to integrate with the membership of the DotNetNuke site?

Note: I had to play around with the web.config a lot to get it to actually install. Not sure if I configured anything incorrectly.

These errors are shown in the DotNetNuke EventViewer Module

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 YAF.DotNetNuke.Utils.UserImporter.CreateYafUser(UserInfo dnnUserInfo, MembershipUser dnnUser, Int32 boardID, PortalSettings portalSettings, YafBoardSettings boardSettings) at YAF.DotNetNuke.YafDnnModule.CreateOrUpdateUser() at YAF.DotNetNuke.YafDnnModule.DotNetNukeModule_Load(Object sender, EventArgs e) --- End of inner exception stack trace

I am also getting this error when I try to post or view a post.

DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at YAF.Controls.DisplayPostFooter.DisplayPostFooter_PreRender(Object sender, EventArgs e) at System.Web.UI.Control.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

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

i installed the YAF.NET DotNetNuke Module 1.96.1 on DotNetNuke Community Edition 7.0.2 and the installation worked fine and I am able to use it as the Administrator account on the page I added the module on. However, when any other user hits the page with the module this error happens. I also noticed that the Administrator is the only registered user on the forum, but I have several users on my DotNetNuke website. Is it supposed to integrate with the membership of the DotNetNuke site?

Originally Posted by: ViralCipher 

Yes it should. Its normal on new install you only see the admin user. As soon as a member logs in to the site and open the forum, the user is imported (if everything is setup correctly). You can also import users with one click via the import User page which is access able via the Actions Menu of the Module.

Note: I had to play around with the web.config a lot to get it to actually install. Not sure if I configured anything incorrectly.

Originally Posted by: ViralCipher 

Looks like you breaks something. If your installation is a new dnn installation and you are using the default web.config there is no need to modify the web.config.

The only thing you need to do if you have a new dnn 7 installation is to run the sql script i posted here:

http://forum.yetanotherforum.net/yaf_postsm57161_DNN-7-and-YAF.aspx#post57161 

ViralCipher
  • ViralCipher
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
Thanks,

I figured out what happened. For some reason when I installed the module for the first time it didn't properly add all of the web.config entries needed for YAF, so I was trying to add what was missing myself, but I didn't have all of what is needed. I uninstalled the module and then reinstalled it and this time the web.config updated properly and it is working.

However, I think the build of 1.96.1-1551 is built in debug mode. Do I have to get the source and re-build it as release in Visual Studio and install the module again using this build? I don't want it displaying that debug info to everyone at the bottom of the page.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
12 years ago
The debug message is only shown to admin. But if you want to get rid of the message simply redownload the install package, and simply extract the dlls from the updated zip file and copy the files to the bin folder of your dnn installation.
ViralCipher
  • ViralCipher
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
Thanks,

Mostly everything is working now, but I am having a few problems still. When I view the 'Team' page to display the Admins and Moderators of the forum I get a DotNetNuke error page.

Here is the EventViewer Log:

DotNetNuke.Services.Exceptions.PageLoadException: e:\web\aatcuniv\DesktopModules\YetAnotherForumDotNet\pages\team.ascx(75): error CS0103: The name 'YafContext' does not exist in the current context ---> System.Web.HttpCompileException: e:\web\aatcuniv\DesktopModules\YetAnotherForumDotNet\pages\team.ascx(75): error CS0103: The name 'YafContext' does not exist in the current context at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at YAF.Forum.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Also, whenever I try to create a New Rank, the page will reload; however the webpage turns gray and the rank is never saved. I do not get an error in the Event Viewer of DotNetNuke or the Event Log of the YAF forum, and when I enabled the display of Birthdays I am getting Invalid column name 'Birthday' constantly in the Event Log of the forum.

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

Thanks,

Mostly everything is working now, but I am having a few problems still. When I view the 'Team' page to display the Admins and Moderators of the forum I get a DotNetNuke error page.

Here is the EventViewer Log:

DotNetNuke.Services.Exceptions.PageLoadException: e:\web\aatcuniv\DesktopModules\YetAnotherForumDotNet\pages\team.ascx(75): error CS0103: The name 'YafContext' does not exist in the current context ---> System.Web.HttpCompileException: e:\web\aatcuniv\DesktopModules\YetAnotherForumDotNet\pages\team.ascx(75): error CS0103: The name 'YafContext' does not exist in the current context at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at YAF.Forum.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Originally Posted by: ViralCipher 

Problem found i attached the updated file copy it to the folder "DesktopModules\YetAnotherForumDotNet\pages"

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

and when I enabled the display of Birthdays I am getting Invalid column name 'Birthday' constantly in the Event Log of the forum.

Originally Posted by: ViralCipher 

Go to your user profile and save it then the feature will work correctly.

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

Also, whenever I try to create a New Rank, the page will reload; however the webpage turns gray and the rank is never saved.

Originally Posted by: ViralCipher 

Normally a message box should appear with the error message. But i know what the error message says. By default there is no Number entered for User Albums Number and Album Images Number. If you provide a number here it should work.