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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 5.0 Export Templates Not WorkingDNN 5.0 Export Templates Not Working
Previous
 
Next
New Post
1/2/2009 1:27 PM
 

I have this issue, too.  It looks like a bug to me.

In TabController.vb, around line 1270 in SerializeTab()... there is a line that operates on hTabs(objTab.ParentId).  However, if the parent tab hasn't been processed yet (if it hasn't been added to the hTabs hashtable), then is throws a NullRefException.  I changed the source code locally to look like this below, and it fixes the EXPORT.  It's not efficient (but who cares for this feature, really), and I didn't put any thought into a better solution - but this fixes the EXPORT issue.  But, this isn't the complete solution - while it does solve the EXPORT problem, on IMPORT, it didn't create my ADMIN tab on the new site when I created it from this template.  So, there's more to it...but the root of the evil is somewhere in TabController.vb around line 1270-1280 where it operates on hTabs(objTab.ParentId).  I will try to see why it didn't create my Admin menu. 

 

 'Manage Parent Tab
            If hTabs IsNot Nothing Then
                If Not Null.IsNull(objTab.ParentId) Then
                    newnode = xmlTab.CreateElement("parent")
                    Dim tabName As String = ""
                    If hTabs(objTab.ParentId) Is Nothing Then
                        Dim tabs As List(Of TabInfo)
                        tabs = TabController.GetPortalTabs(objPortal.PortalID, -999, True, True)
                        For Each t As TabInfo In tabs
                            If t.TabID = objTab.ParentId Then
                                tabName = t.TabName
                                Exit For
                            End If
                        Next
                    Else
                        tabName = HttpContext.Current.Server.HtmlEncode(hTabs(objTab.ParentId).ToString)
                    End If
                    newnode.InnerXml = tabName
                    nodeTab.AppendChild(newnode)

                    ' save tab as: ParentTabName/CurrentTabName
                    hTabs.Add(objTab.TabID, tabName + "/" + objTab.TabName)
                Else
                    ' save tab as: CurrentTabName
                    hTabs.Add(objTab.TabID, objTab.TabName)
                End If
            End If

 
New Post
1/2/2009 1:45 PM
 

Ok I found another issue (and the reason why my Admin tab wasn't created with the fix above).  In DesktopModules/Admin/Portals/Template.ascx.vb, line 234:

If objtab.TabOrder < 10000 And Not objtab.IsDeleted Then
'process these tabs in the export

So, it's only going to export tabs with a TabOrder < 10000.  If you query your Tabs table (on an UPGRADED installation...not a new 5.0 install), you'll see the Admin tabs are > 10000...so it won't Export any Admin tabs.  This bug must have been introduced with the addition of the reclassification of Admin tabs as "regular tabs".

Dan

 

 

 

 
New Post
1/2/2009 2:11 PM
 

Great - Dan, can you now log this at support.dotnetnuke.com?

Many thanks.



Alex Shirley


 
New Post
1/2/2009 2:16 PM
 

Hi Alex - yes I just submitted it moments ago.

 
New Post
1/8/2009 9:53 AM
 

Just to close this out... Charles did some research on this and concluded that the only change necessary is the fix for the "<10000" - and I concur. It was because of this bug that the Admin tab didn't get processed first, and so when the Extensions tab was to be processed in the export, it bombed because the Admin tab hadn't been added to the collection yet because its TabOrder was > 10000.

If you need a QUICK fix for this solution, here is what I did...I just ran this on my database and that fixed it.  It just brings the tabOrder for the admin tabs down below 10000.

UPDATE TAbs
SET TabOrder = TabOrder - 5000
WHERE TabOrder >= 5000

Charles did make the bug fix and it sounds like it will be in the next release.

Dan

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 5.0 Export Templates Not WorkingDNN 5.0 Export Templates Not Working


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