Bug reports Found a bug? Post it here please.
Version 4.x > Bug reports > Kentico v5: Custom CSS Problems View modes: 
User avatar
Member
Member
magnus-tenk - 12/29/2009 5:19:50 AM
   
Kentico v5: Custom CSS Problems
I take the liberty of posting here as there are no V5 forums yet.

I am trying to create and assign a new CSS Stylesheet to the Corporate Site getting the following error

Object reference not set to an instance of an object.

I create a New CSS Stylesheet

DisplayName: Hammars
CodeName: Hammars
Text: I paste the text from "Corporate Site" without modifications
Assign to "My WebSite" is checked.

I change to the new CSS in the Site Manager and get this error.

Details:
[NullReferenceException: Object reference not set to an instance of an object.]
CMS.GlobalHelper.UIHelper.GetImageUrl(Page page, String imagePath, Boolean isLiveSite, Boolean ensureDefaultTheme) +439
CMS.GlobalHelper.UIHelper.GetImageUrl(Page page, String imagePath) +9
CMS.PortalControls.CMSAbstractWebPart.GetImageUrl(String imagePath) +20
CMSWebParts_Ecommerce_ShoppingCartMiniPreviewWebPart.get_IconImageUrl() +38
CMSWebParts_Ecommerce_ShoppingCartMiniPreviewWebPart.SetupControl() +39
CMSWebParts_Ecommerce_ShoppingCartMiniPreviewWebPart.OnContentLoaded() +12
CMS.PortalControls.CMSWebPartZone.OnContentLoaded() +135
CMS.PortalControls.CMSAbstractLayout.OnContentLoaded() +125
CMS.PortalControls.CMSAbstractLayout.LoadContent(PageInfo pageInfo, Boolean reloadData, Boolean allowOrphanedZones) +1058
CMS.PortalControls.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +1098
CMS.PortalControls.CMSPortalManager.LoadContent(Boolean reloadData) +960
CMS.PortalControls.CMSPortalManager.CMSPortalManager_Init(Object sender, EventArgs e) +76
System.Web.UI.Control.OnInit(EventArgs e) +99
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378




User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/29/2009 10:02:10 AM
   
RE:Kentico v5: Custom CSS Problems
Hello.

Thank you for letting us know about this issue. Regrettably, this seems to be a bug in the current version. I'm very sorry for this inconvenience. We will try fix it in the nearest version or in the next hotfix package for this particular Kentico CMS version.

Best Regards,
Radek Macalik
Support Engineer

User avatar
Member
Member
damian-brandcape.co - 1/16/2010 5:24:29 AM
   
RE:Kentico v5: Custom CSS Problems
Hi Radek,

FYI - I have the same problem - on my way to see if the hotfix is out yet.

Damian

User avatar
Member
Member
damian-brandcape.co - 1/16/2010 6:04:01 AM
   
RE:Kentico v5: Custom CSS Problems
Cool - hotfix worked - FYI - anyone having this problem - I had to change my stylesheet back to it's original name after installing hotfix. Then when I renamed it again - it worked fine.