Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Skin error prevents access to admin sectionSkin error prevents access to admin section
Previous
 
Next
New Post
4/22/2008 6:34 PM
 

I'm trying to create a skin with a template some designers gave me.

so I made a zip file containing skin.html (just removed the head/body tags from the template they gave me), skin.jpg (the thumb), skin.css (their css) and an images directory containing about 20 images used in the layout.

uploaded via the "Install Skin Package" page, no errors reported.   <%= SkinPath %> inserted in many places.

in admin->skins I can select my skin from the dropdown and the thumb I created appears.  I uncheck the "Apply To:" boxes because I don't want to change the admin skin.

I click "Apply" and get an error.
-------------
DotNetNuke Error: - Version 04.08.00

An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). ---> System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Page.OnInit(EventArgs e) at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
-------------

I found in a search to try replacing <%= SkinPath %> with <%# SkinPath %>, used FTP to upload, and the error is gone (having to do this every time I upload a skin would be insane),  if <%= cause errors why would the uploader add them?  why wouldn't it insert <%# instead?

but another error appears at the bottom,  don't know what this is,
-------------
Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot locate ContentPane for Skin
-------------

now I can't get back to the admin area, it just shows my template.  maybe the skin was applied to the admin area even though I unchecked "admin" when applying the skin.

my only option is to FTP into /Portals/0/Skins/<skinname>/ and delete the generated .ascx file,  then I can see the admin area and get into the skin section and click "Restore Default Skin".

hosting on godaddy, windows,

I must be missing a step, or couldn't find the right step-by-step tutorial,

thanks,

 

 
New Post
4/26/2008 2:08 PM
 

Paul wrote: I must be missing a step, or couldn't find the right step-by-step tutorial,

Have a look at the DotNetNuke Skinning Guide. This should help.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Skin error prevents access to admin sectionSkin error prevents access to admin section


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out