Sitecore IconCache images not displaying, paths are incorrect

1.7k views Asked by At

I'm trying to set up a Sitecore 8.1 instance that I've taken over from another agency. I have the site running but none of the image files from the IconCache are displaying in Sitecore:

enter image description here

I inspected the missing images and found that their paths are incorrect- they all begin with "/~/icon/" rather than "/temp/IconCache"

enter image description here

In the production instance, the icon paths are correctly set to /temp/IconCache.

1

There are 1 answers

3
Jan Bluemink On BEST ANSWER

There is a know issue about this missing icons. See Sitecore.Support.100371.100542

https://github.com/sitecoresupport/Sitecore.Support.100371.100542/releases

Another thing you can try is run the Clean up databases from the Control Panel, core database, but likely you need the patch.

For further research:

The icons are stored on file system in .zip files below:

\sitecore\shell\Themes\Standard\

For example this url

/~/icon/Office/24x24/publishing_restrictions.png.aspx

go to the

\sitecore\shell\Themes\Standard\Office.zip

Check if the icons are on file system. And check if the url works, if the icon url not work find out why. which error? use the original Sitecore config files and web.config file. and check if it works.

You need to have this in config

<customHandlers>
    <handler trigger="~/icon/" handler="sitecore_icon.ashx" />

And in the web.config

<handlers>
      <add verb="*" path="sitecore_icon.ashx" type="Sitecore.Resources.IconRequestHandler, Sitecore.Kernel" name="Sitecore.IconRequestHandler" />

After the icon is used it is stored in the

\temp\IconCache

directory.