D Taylor
Nuke Newbie Posts:9
|
03/11/2012 1:54 PM |
|
An error has occurred. 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 DotNetNuke.UI.Skins.Controls.LeftMenu.CheckShowPath(Int32 tabId, RadPanelItem panelItemToCheck, String pageName) at DotNetNuke.UI.Skins.Controls.LeftMenu.BuildPanelbar(RadPanelItemCollection rootCollection) at DotNetNuke.UI.Skins.Controls.LeftMenu.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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
03/12/2012 7:27 AM |
|
I think that this one is relatively easy. It refers to LeftMenu and I assume that you are using the Telerik LeftMenu in your skin. This is a bug in the updated version of the LeftMenu that was installed with 6.1.4. The solution is to get a copy of the 5.6.2 Install Package and extract two files: LeftMenu.ascx, and LeftMenu.ascx.vb. You will find these in the Admin/Skins subirectory. Copy them into the Admin/Skins subdirectory of you DotNetNuke installation, replacing the files that are there. Actually, you will see that there is a LeftMenu.ascx.cs file, not one ending in.vb. You can delete it. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Salem Khalidi Posts:10
|
09/10/2012 7:29 AM |
|
Your reply was enlighting! I upgraded from 5.6.5 to 6.2.2 I did not have any problem with load Exception (I use the leftmenu on most of my pages) In my new admin\skin folder all files are .cs non have any .vb extensions anymore, it seem they were deleted during upgrade (I used the install package with /install/install.aspx?mode=upgrade). It added another file leftmenu.xml which was not present in the old installation. The issue I have is the icon in the leftmenu disappeared after the upgrade, with the exception of the new icons of the admin pages installed with the upgraded version. I checked the page setting and the small icon setting points to the icons correctly I check the path of the icons and there is a duplication of the path http://mysite.com/Portals/0//Portals/0/Icons/Menu/myicon.png Can this be fix from the leftmenu files ??? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
09/10/2012 7:52 AM |
|
With DotNetNuke 6, everything is written in c# and not VB. That's why version 6 has .cs files rather than .vb files. If you follow my post and grab the two files from a 5.6.2 installation, you will get a .vb file. But, I'm guessing that the problem I addressed has been address at least in 6.2.2. I'll have to take a look at the other issues. My 6.2.2 test site does have a leftmenu.xml file. You should have had a copy of this file in older applications. Where ,exactly, is the path duplicated? Is that in the file structure or somewhere else? |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Joseph Craig DNN MVP Posts:11667
|
09/10/2012 7:52 AM |
|
With DotNetNuke 6, everything is written in c# and not VB. That's why version 6 has .cs files rather than .vb files. If you follow my post and grab the two files from a 5.6.2 installation, you will get a .vb file. But, I'm guessing that the problem I addressed has been address at least in 6.2.2. I'll have to take a look at the other issues. My 6.2.2 test site does have a leftmenu.xml file. You should have had a copy of this file in older applications. Where ,exactly, is the path duplicated? Is that in the file structure or somewhere else? |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Salem Khalidi Posts:10
|
09/10/2012 8:23 AM |
|
With the .cs files I am not getting any page load exceptions. On the contrary if I use the .vb files from my 5.6.5 installation and copy it to on the 6.2.2 installation (and delete the .cs files), I get a page load exception error. Yes, indeed the leftmenu.xml is present only in the 6.2.2 installation and not the 5.6.x The menu icon path is: http://mysite.com/Portals/0//Portals/0/Icons/Menu/myicon.png the: Portals/0/ is duplicated |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
09/10/2012 7:14 PM |
|
For 6.2.2, I would not suggest copying files. With 6.2.2, can you restate the problem? |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Salem Khalidi Posts:10
|
09/10/2012 7:27 PM |
|
The menu small icons do not appear, they appear only in the horizontal menu. They appeared well in 5.6.5 and previous editions As earlier in my post, image path is not correct, it duplicate two folders. I tried applying the icon again (from the page settings) and use a different folder, but no luck
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
|
Salem Khalidi Posts:10
|
|
Joseph Craig DNN MVP Posts:11667
|
09/12/2012 7:43 AM |
|
Very interesting ... As the icons appear correctly in the main dropdown menu, it does seem like the problem is LeftMenu. I'm not sure if this is a bug or not. Could you paste the code from your skin file? Or even attach the skin file so that I can look at it. If it is a bug, you probably can write a little jQuery to get all of the links and change /Portals/0/Portals/0 to /Portals/0. That's an ugly way around the problem, but it probably will work. Get all of the images with class rpImage and then grab the src and edit that. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Salem Khalidi Posts:10
|
|
Joseph Craig DNN MVP Posts:11667
|
09/13/2012 5:47 AM |
|
This sure looks like a bug. I need to do a bit more testing on this. Hopefully today. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Salem Khalidi Posts:10
|
09/20/2012 3:21 AM |
|
Any chance of you having a look at it? |
|
|
|
|
Salem Khalidi Posts:10
|
09/20/2012 4:24 AM |
|
A workaroud, I placed all the icons for the LEFTNAV in the System Image folder. In DNN 6.2.2 is is located at C:\inetpub\mywebsite\Icons\Sigma It seem as the path shows the portal path is corrupted |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
09/20/2012 12:33 PM |
|
Unfortunately, I haven't gotten anywhere with this one. I think that it's a bug, though. And, your solution seems reasonable. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Salem Khalidi Posts:10
|
09/21/2012 7:47 PM |
|
Thanks for your effort! really appreciated Once I upgrade to 6.2.3 version or above, will post my result. FYI: I just renewed my subscription, I really like the videos covering the advance topics. Very informative. Looking for more V6.x stuff |
|
|
|
|