Skip to main content

Microsoft

Sitecore – Template and Item Icons Saved with Icon Cache Path

Have you started to notice broken icons in the Sitecore Content Editor recently? In this post I’ll dive into the root cause of the issue and how to fix it.

After upgrading a client to Sitecore 8.1 Update 2, I started to notice broken icons in the Content Editor in the client’s Dev, QA, and Production environments like in the picture below:
Broken Icons in the Content Editor
I did some digging and found that several of our templates had the absolute path to the icon cache for the icons from my local machine:
Absolute Icon Path
The client’s Dev, QA, and Production environments all use different URLs, so when these templates are pushed up to those environments, the Content Editor is unable to resolve the icons.
The root cause of the issue turns out to be the Recent Icons tab in the Content Editor. A change in Sitecore 8.1 Update 2 causes any icons selected from the Recent Icons tab to use the absolute path of the icon from the icon cache rather than relative path:
Recent Icons
I reported the issue to Sitecore and they acknowledged the issue as a bug. Sitecore has given the bug public reference number 136362. If you contact Sitecore about this issue, please use this reference number.
This bug affects the following versions of Sitecore:

  • Sitecore 8.1 Update 2
  • Sitecore 8.1 Update 3
  • Sitecore 8.2

Being awesome as usual, the Sitecore Support team quickly issued a patch to fix the issue. You can access the patch on GitHub here: https://github.com/SitecoreSupport/Sitecore.Support.136362/releases. This update makes a small change to sitecoreshellApplicationsContent ManagerDialogsSet IconSetIcon.js in your Sitecore install. In lieu of using the patch linked above, the only work around at this time is to avoid selecting icons from the Recent Icons tab when you choose an icon for your templates and items.
Have you been affected by this issue? If so, let me know in the comments. Cheers!

Thoughts on “Sitecore – Template and Item Icons Saved with Icon Cache Path”

  1. Kasia Pietraszko

    Too bad the github path does not work anymore… It seems like Sitecore Support removed all of their repositories from github.

  2. Yes, unfortunately Sitecore Support made their repositories private. If you contact Sitecore Support and give them reference number 136362 they should get the patch to you in fairly short order.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Corey Smith, Sitecore MVP & Lead Technical Consultant

I'm a Sitecore MVP and Lead Technical Consultant at Perficient focusing on Sitecore and custom .NET development.

More from this Author

Categories
Follow Us