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 ...Upgrade from 4.94 to 5.10 (773) fails multiple timesUpgrade from 4.94 to 5.10 (773) fails multiple times
Previous
 
Next
New Post
12/10/2009 3:59 AM
 

David A-W wrote

On the Host > SQL page, try running the following:

UPDATE dbo.{objectQualifier}Tabs
SET    IconFile = REPLACE(IconFile, '~/images/', '/images/')
    ,  IconFileLarge = REPLACE(IconFileLarge, '~/images/', '/images/')
WHERE  IconFile LIKE '~/images/%'

Then go to Host > Host Settings and click Restart Application.

To clarify: the above fixes an issue with 5.1 Admin and Host menu icons only - not custom page icons.

When I upgraded to 5.2, I then had to revert the above fix - however I noticed all my custom page icons were now broken for child (non-root) portals.

To fix this, I ran the below under Host > SQL as a script, then again restarted the application:

  ALTER VIEW dbo.{objectQualifier}vw_Tabs
  AS
    SELECT    
        T.TabID,
        T.TabOrder,
        T.PortalID,
        T.TabName,
        T.IsVisible,
        T.ParentId,
        T.[Level],
        CASE WHEN I.FileID IS NULL THEN T.IconFile
             ELSE '~/' + P.HomeDirectory + '/' + I.Folder + I.FileName
        END AS IconFile,
        CASE WHEN L.FileID IS NULL THEN T.IconFileLarge
             ELSE '~/' + P.HomeDirectory + '/' + L.Folder + L.FileName
        END AS IconFileLarge,
        T.DisableLink,
        T.Title,
        T.Description,
        T.KeyWords,
        T.IsDeleted,
        T.SkinSrc,
        T.ContainerSrc,
        T.TabPath,
        T.StartDate,
        T.EndDate,
        T.Url,
        CASE WHEN EXISTS (SELECT  1 FROM dbo.Tabs T2 WHERE T2.ParentId = T.TabId) THEN 'true' ELSE 'false' END AS HasChildren,
        T.RefreshInterval,
        T.PageHeadText,
        T.IsSecure,
        T.PermanentRedirect,
        T.SiteMapPriority,
        T.CreatedByUserID,
        T.CreatedOnDate,
        T.LastModifiedByUserID,
        T.LastModifiedOnDate
    FROM dbo.{objectQualifier}Tabs AS T
        LEFT JOIN dbo.{objectQualifier}Portals AS P ON P.PortalID = T.PortalID
        LEFT JOIN dbo.{objectQualifier}Files AS I ON I.FileID = CASE WHEN LEFT(LOWER(T.IconFile), 7) = 'fileid=' THEN CAST((RIGHT(LOWER(T.IconFile), LEN(T.IconFile) - 7)) AS int) ELSE -1 END
        LEFT JOIN dbo.{objectQualifier}Files AS L ON L.FileID = CASE WHEN LEFT(LOWER(T.IconFileLarge), 7) = 'fileid=' THEN CAST((RIGHT(LOWER(T.IconFileLarge), LEN(T.IconFileLarge) - 7)) AS int) ELSE -1 END

Hope that helps anyone else with a similar issue!

 
New Post
12/10/2009 6:03 AM
 

Thanks for sharing, David,

just a hint: to provide full portability of your script, replace "dbo." by "{databaseOwner}", because especisally some hosters use different owners.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/26/2010 12:43 PM
 
I am getting "Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression." when trying to run the SQL Query fix. Not sure why, any ideas?
 
New Post
2/26/2010 11:15 PM
 
Never mind, it was another module, DNN360 menu that had created some triggers. I disabled them and ran the script and it worked great. Thanks!
 
New Post
4/7/2011 8:27 AM
 
I have the same problem on an installation that  I have just upgraded from 4.9.2 to 5.6.1. After the upgrade, the Admin and Host menu icons are missing. The Url to the images is in the format:

/images/~/images/icon_sitesettings_16px.gif

Obviously it is the first /images/~ that is causing the image not to be found.

When I look at the Tabs table, it contains the TabIcon url in the format:

~/images/icon_sitesettings_16px.gif

This is correct. If I look at any other 5.6.1 site where the icons do show (including another that I upgraded from 4.9.2 at the same time), they are exactly the same. For that reason, I don't want to update the Tab table as suggested earlier in this thread.

Anyone know why DNN is prefixing /images to the url before resolving it? And how I can avoid this?



Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade from 4.94 to 5.10 (773) fails multiple timesUpgrade from 4.94 to 5.10 (773) fails multiple times


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