Critical Error in DNN3.1 not finding skin.css

Last post 08-03-2005, 3:26 PM by webpc. 6 replies.
Sort Posts: Previous Next
  •  08-03-2005, 1:31 PM 9239

    Critical Error in DNN3.1 not finding skin.css

    Hi
    On a couple of pages I am using the trial on, when I go to edit the editor doesn't open and I get a Critical error advising something on the lines of 'portals\_default\skins\t-worxdnnr\skin.css' is missing.  The weird thing is, the page involved isn't referencing this file the file is called "TWC3.css"

    Doesn't the DNN provider pull the references from DNN or are they hard coded?  If the latter anyone know how to get them from DNN?

    Antony
  •  08-03-2005, 1:48 PM 9242 in reply to 9239

    Re: Critical Error in DNN3.1 not finding skin.css

    Antony,
     
    Which version of DNN are you using?
     
    If your site online so you can provide a URL?
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-03-2005, 2:30 PM 9246 in reply to 9242

    Re: Critical Error in DNN3.1 not finding skin.css

    I am using 3.1... The site isn't accesseble from the Internet as I have it running in a virtual PC session on my computer.  What would you like to know?
    Antony
  •  08-03-2005, 2:57 PM 9247 in reply to 9246

    Re: Critical Error in DNN3.1 not finding skin.css

    Antony,
     
    I'd like to know all the style sheets referenced in that page:
     
    For example:
     
    <LINK id="_Portals__default_" rel="stylesheet" type="text/css" href="/Portals/_default/default.css"></LINK>
    <
    LINK id="_Portals__default_Skins_DNN_Blue_" rel="stylesheet" type="text/css" href="/Portals/_default/Skins/DNN-Blue/skin.css"></LINK>
    <
    LINK id="_Portals__default_Containers_DNN_Blue_" rel="stylesheet" type="text/css" href="/Portals/_default/Containers/DNN-Blue/container.css"></LINK>
    <
    LINK id="_Portals_0_" rel="stylesheet" type="text/css" href="/Portals/0/portal.css"></LINK>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-03-2005, 3:05 PM 9250 in reply to 9247

    Re: Critical Error in DNN3.1 not finding skin.css

    They are

    <LINK id="_Portals__default_" rel="stylesheet" type="text/css" href="/Portals/_default/default.css"></LINK>
    <LINK id="_Portals_0_Skins_WEBPC_DNN3_" rel="stylesheet" type="text/css" href="/Portals/0/Skins/WEBPC_DNN3/skin.css"></LINK>
    <LINK id="_Portals_0_Skins_WEBPC_DNN3_t_worxIPskin_css" rel="stylesheet" type="text/css" href="/Portals/0/Skins/WEBPC_DNN3/t-worxIPskin.css"></LINK>
    <LINK id="_Portals__default_Containers_t_worxDNNR_TWC3_css" rel="stylesheet" type="text/css" href="/Portals/_default/Containers/t-worxDNNR/TWC3.css"></LINK>
    <LINK id="_Portals_0_" rel="stylesheet" type="text/css" href="/Portals/0/portal.css"></LINK>
    The Error message is

    A critical error has occurred.
    Check your provider configuration for errors! Could not find file "C:\Sites\WEBPC_DNN\portals\_default\skins\t-worxdnnr\skin.css".
  •  08-03-2005, 3:12 PM 9251 in reply to 9250

    Re: Critical Error in DNN3.1 not finding skin.css

    Antony,

    There are two solutions to your issue.

    Solution 1:

    Create a skin.css file under /Portals/0/Skins/WEBPC_DNN3/

    Solution 3:

    Edit the following code in the provider:

    Dim s1, s2, s3, s4 As String s1 = Common.Globals.HostPath & "default.css" 'default css s2 = PortalSettings.ActiveTab.SkinPath & "skin.css" 'skin css s3 = (PortalSettings.ActiveTab.SkinSrc).Substring(0, PortalSettings.ActiveTab.SkinSrc.LastIndexOf("/")) & "/skin.css" s4 = PortalSettings.HomeDirectory & "portal.css" 'portal stylesheet cntlCE.EditorWysiwygModeCss = s1 & "," & s2 & "," & s3 & ", " & s4

    To:

    Dim s1, s2, s3, s4 As String s1 = Common.Globals.HostPath & "default.css" 'default css s2 = PortalSettings.ActiveTab.SkinPath & "skin.css" 'skin css s3 = (PortalSettings.ActiveTab.SkinSrc).Substring(0, PortalSettings.ActiveTab.SkinSrc.LastIndexOf("/")) & "/t-worxIPskin.css" s4 = PortalSettings.HomeDirectory & "portal.css" 'portal stylesheet cntlCE.EditorWysiwygModeCss = s1 & "," & s2 & "," & s3 & ", " & s4

     And recompile your project.
     
     
    Keep me posted.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-03-2005, 3:26 PM 9252 in reply to 9251

    Re: Critical Error in DNN3.1 not finding skin.css

    Adam
    The problem with changing the code is that there are other sites using different skins and different Css files only a few of which have a skin.css most are some derivative of the skin name.  Wouldn't it be better to pull the actual names from the core?

    Antony
View as RSS news feed in XML