Register
Login
 

Support House of Nuke

  

 House of Nuke Forums  
Subject: skin object gives exception
Prev Next
You are not authorized to post a reply.

Author Messages
cow godUser is Offline
Novice
Novice
Posts:5

06/01/2007 12:50 PM Alert 

i just installed the housemenu skin object onto a brand new dnn 4.5.3 version and created a new skin.

the skin was as simple as could be with only the [HOUSEMENU] object and div with id ContentPane.

i made sure to add the object to the skin.xml file with the default settings.

when i load the page, the menu shows up, but there is no styling for it, and there is a dnn error message as follows:

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 TimRolands.DNN.SkinObjects.HouseMenuSkinObject.HouseMenuSkinObject.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

cow godUser is Offline
Novice
Novice
Posts:5

06/01/2007 2:21 PM Alert 
it looks like the problem is that it can't find the style associated with the menu. if i take out the stylename from the xml file i don't get any errors.

where do i extract the styles.zip file? it doesn't look like the dnn installer installed these files anywhere.
Tim RolandsUser is Offline
Your Host
Professional
Professional
Posts:97


06/01/2007 2:26 PM Alert 

The styles should be in a folder named "styles" under the HouseMenuSkinObject folder. Same thing goes for the module version -- a "styles" folder inside the module folder.

Thanks for the tip. I will try to determine why those style files aren't getting installed by DNN. Probably a bug in the skinobject manifest file....

Tim


avastonetechnologies.com
writergear.com
timrolands.com
cow godUser is Offline
Novice
Novice
Posts:5

06/01/2007 3:20 PM Alert 

tim,

thanks for the quick reply. i have unzipped all the files to DesktopModules\HouseMenuSkinObject\styles and the error still shows up.  however, if i change the StyleName to one of the css file names in the styles folder (such as 3dGray) there is no error.  however, the styles are not being applied.  it doesn't matter what i put for StyleName, no styles get applied.

cow godUser is Offline
Novice
Novice
Posts:5

06/01/2007 3:45 PM Alert 
i found the problem. all the stylesheets are using "houseMenuH" for the containing ul id, but the default id generated by the module is "HouseMenuNav". if i add the CssElementId to my skin.xml file, i can see the styles.
Chris PetersonUser is Offline
Novice
Novice
Posts:2

06/25/2007 6:38 PM Alert 
Following along within this thread I was able to successfully get the SkinObject installed and my skin using it. I have one big issue though that I'm not sure if I can work around very easily. Several of my child pages have long Titles and the (default) skins seem to hardcode the width at 144px; for "#houseMenuH li ul". Although I can change that, if I set it to anything higher than 267px it will start to act up and display things strangely. I've tried to set the width to "auto" but that didn't do what I wanted. It looks like I need to set this to a hard value in order for this to work properly? Any ideas on a work around for this one?
Tim RolandsUser is Offline
Your Host
Professional
Professional
Posts:97


06/29/2007 8:57 AM Alert 

Chris,

Did you ever find a solution for this?

I would try using "white-space: normal" and "height: auto" on the LI (and/or A) elements. That might allow the menu items to wrap in an acceptable fashion.

Tim


avastonetechnologies.com
writergear.com
timrolands.com
John Shaffer-SpencerUser is Offline
Novice
Novice
Posts:3

12/22/2007 11:12 PM Alert 
I still run into the same error listed below that others have reported though the strange part is that it is random, and sometimes is just replaced by "an error has occurred". The random part of this is as such, if I am logged in as an admin account then when I click on the "Add Existing Module" at the top in the control panel (I am running newest version now) then the error goes away, or vise versa if "Add Existing Module" is already selected and I click on "Add New Module" instead the error goes away. This is the strange part, the other error only happens when no one is logged in.

/*SNIP*/
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 TimRolands.DNN.SkinObjects.HouseMenuSkinObject.HouseMenuSkinObject.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
/*SNIP*/
John Shaffer-SpencerUser is Offline
Novice
Novice
Posts:3

12/23/2007 1:17 AM Alert 
After some further checking of the .html files for the skin pack that is offered here I found that the thing causing the error on my site was the [TREEVIEW] entry that was in each skin in the left pane by default. after removing these and uploading them again the skins no longer give the error that was happening. Now the only error that is happening now is the error listed below. Unfortunately since this is pretty generic I am stuck at this point. Any ideas anyone? This is the skin pack that is available in the HouseMenu Professional 1.2, though I installed the newer HouseMenu of 1.4.1 instead and just decided to use the skins that came with the other one to give it a good test drive.

/*SNIP*/
An error has occurred.
An error has occurred.
/*SNIP*/
Kevin DevineUser is Offline
Novice
Novice
Posts:1

01/18/2008 12:22 PM Alert 
I was getting this error and couldn't figure it out. It was with the StyleName attribute, I was putting in "Tuxedo.css" and I should have been using just "Tuxedo".
Tim RolandsUser is Offline
Your Host
Professional
Professional
Posts:97


01/24/2008 9:34 AM Alert 
Any luck with this, John?

Can you get more details on the error from the log viewer under the Admin menu?

Tim

avastonetechnologies.com
writergear.com
timrolands.com
John Shaffer-SpencerUser is Offline
Novice
Novice
Posts:3

01/26/2008 1:48 PM Alert 
Unfortunately not yet.  I ended up switching back to the standard menu and default gray template for now. I will try to get it working again in the future in a test environment, but unfortunately just don't happen to have the time right now.
You are not authorized to post a reply.
Forums > House Modules > HouseMenu 1.x > skin object gives exception



ActiveForums 3.6
  

Terms Of Use  |  Privacy Statement
Copyright © 2006-2008 by Avastone Technologies. All rights reserved.