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...Skins, Themes, ...Skins, Themes, ...Page error when (bad) container is chosenPage error when (bad) container is chosen
Previous
 
Next
New Post
6/26/2012 3:32 PM
 

Seen this before?

On a page, you set up a html/text module = everything ok.
In the module settings you choose a container = error!
The page wil not show anything. Bad luck - no way to go back, unless you begin tampering with backups and this takes millions of hours....

But here is a possible solution:

Log on as Host, go to Sql tab.
First we have to find the TabID of the bad page:

SELECT * FROM [YourDbName].[YourDbOwner].[Tabs] WHERE TabName='NameOfTheBadPage'

If you get more than one result, you have to choose the right PortalID. Write down the TabID (Lets say it is 999).

Then we can find the TabModuleId with this statement:

SELECT * FROM [YourDbName].[YourDbOwner].[TabModules] WHERE TabID=999

This gives you a list of all modules created on you page, the columns with creation - or modifiedby - dates can help you finding the module which produce an error. Write down the TabModuleID, this is a unique number (Lets say it is 888). If you look at the column ContainerSrc it will contain the containername with a L for Local og G for Global containers.

The trick is to set this to NULL, so that the Html/text module get the portal standard container instead.

UPDATE [YourDbName].[YourDbOwner].[TabModules] SET ContainerSrc=CAST(NULL AS nvarchar(200))  WHERE TabModuleID=888

If you wants to see the result, execute this:

SELECT * FROM [YourDbName].[YourDbOwner].[TabModules] WHERE TabModuleID=888

and look under ContainerSrc.

Last, but not least, go to Host Settings and restart the application (or else it wil not work).

This was done on DotNetNuke version 5.4 and 5.6 systems.

Niels-Jørgen Hvidberg http://newcomtech.dk http://njhvidberg.dk
 
New Post
6/26/2012 3:52 PM
 
That sounds bad.

I didn't try it for your use case, but you can force a specific skin by adding (say)

?SkinSrc=Portals/_default/Skins/MinimalExtropy/index full, or similar, to the URL

I believe the same idea works for containers. It would probably be very annoying, but might let you get to page settings.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
6/26/2012 5:31 PM
 

Hey, i didnt know this little trick, its good to know.

But in my case it was one module's container setting on the page that gave me the headache. I tried to set the page's skin and container to something else, but (of course) it did not have any influence.

Anyway, fiddling in the DB saved me a lot of time spend on restoring everything...


Niels-Jørgen Hvidberg http://newcomtech.dk http://njhvidberg.dk
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Page error when (bad) container is chosenPage error when (bad) container is chosen


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