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 ...Page Hierarchy ErrorPage Hierarchy Error
Previous
 
Next
New Post
8/17/2010 1:16 PM
 

I've running version 05.04.04 on one of the DotNetNuke sites I support. I've upgraded it twice in an attempt to eliminate the bug listed here: http://support.dotnetnuke.com/issue/V...

I've cleaned the database with a SQL script that eliminates the old incorrect levels, but my users continue to encounter this bug.

Is there anything else I must do that the upgrade and clean up wouldn't have fixed?
 
New Post
8/17/2010 2:52 PM
 
You know, I've actually had this same problem myself before.  And I've written some SQL which will fix the tab level problem.  I have not made this SQL completely generic however... so had not posted it anywhere previously.  The SQL is intended to be used in SQL Server Management Studio. Perhaps someone else can tweak this for you so that you can run it in your portal in the Host SQL page, presuming you're not SQL skilled.

This is the script I use to reconcile tab level.

declare @myString nvarchar(1000)
declare @myCount int
declare @myIndex int
declare @CurTabId int
declare @CurLevel int
declare @CurTabPath nvarchar(1000)
declare @Update int
declare @Verbose int
 
-- Update = 1 will cause DB to commit changes
set @Update=0
-- Verbose = 1 will cause query to write report
set @Verbose=1
 
-- Set PortalId to fix one portal, or remove WHERE clause to do all
DECLARE cur  CURSOR LOCAL SCROLL STATIC READ_ONLY FOR
    SELECT TabId, [Level], TabPath FROM tabs
    WHERE PortalID=25
 
OPEN cur
FETCH NEXT FROM cur INTO @CurTabId, @CurLevel, @CurTabPath
 
WHILE (@@FETCH_STATUS = 0)
BEGIN
 
    set @myString = RIGHT(@CurTabPath,LEN(@CurTabPath)-2)
    set @myCount = 0
    set @myIndex = 0
 
    WHILE  CHARINDEX('//', @myString) > 0
    BEGIN
        set @myCount = @myCount + 1
        set @myIndex = CHARINDEX('//', @myString)
        set @myString = RIGHT(@myString, LEN(@myString)-@myIndex-1)
    END
 
    IF @myCount <> @CurLevel
    BEGIN
        IF @Verbose = 1
        BEGIN
            PRINT '---------  '
            PRINT 'TabId:    ' + convert(nvarchar,@CurTabId)
            PRINT 'TabPath:  ' + @CurTabPath
            PRINT 'TabLevel: ' + convert(nvarchar,@CurLevel) + ' should be: ' + convert(nvarchar,@myCount)
        END
        IF @Update = 1
        BEGIN
            UPDATE Tabs SET [Level] = @myCount WHERE TabID = @CurTabId
        END
    END
    ELSE
    BEGIN
        IF @Verbose=1
            PRINT 'TabId:    ' + convert(nvarchar,@CurTabId) + ' : OK'
    END
         
FETCH NEXT FROM cur INTO @CurTabId, @CurLevel, @CurTabPath
 
END
 
PRINT 'Finished.'
 
CLOSE cur
DEALLOCATE cur


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
8/18/2010 6:56 AM
 
Thank you very much for your reply, and your script! The problem I'm having, however, is not fixing the issue in the database. I have scripts for doing that already. What confuses me is that this issue is reported fixed in version 5.4.3 of DotNetNuke. I even downloaded the source version to check the .vb files I know the issue is related to and they are updated with the fix. I purposely upgraded the site twice to fix this issue, but it's still happening. I can fix it manually through the SQL, yes, but I'm looking for a more permanent resolution. One of my users is completely overhauling the navigation of their portal and this is killing their deadline. Is there any reason why my installation would continue to have these problems after the fix in version 5.4.3?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Page Hierarchy ErrorPage Hierarchy Error


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