Error clicking on Media Library item: Failed to map the path '/temp/_disabled.'.

Hi,

We have Sitecore 9.0, Update 2. We are seeing this issue when a Media Library item is locked by somebody, and is then clicked on by somebody else, even "admin". The full error is as follows:

Message: Failed to map the path '/temp/_disabled.'.
Source: System.Web
   at System.Web.Configuration.ProcessHostMapPath.MapPathCaching(String siteID, VirtualPath path)
   at System.Web.Configuration.ProcessHostMapPath.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath path)
   at System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull)
   at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping)
   at System.Web.HttpServerUtility.MapPath(String path)
   at Sitecore.Resources.Themes.GetFilename(String source, String size, String overlay, Boolean disabled)
   at Sitecore.Resources.Themes.Transform(String source, String overlay, Boolean disabled)
   at Sitecore.Resources.Themes.MapTheme(String sourcePath, String overlay, Boolean disabled)
   at Sitecore.Resources.ImageBuilder.ToString()
   at Sitecore.Shell.Web.UI.WebControls.SmallGalleryButton.Render(HtmlTextWriter output)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderSmallButton(HtmlTextWriter output, Control smallButton)
   at Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderSmallGalleryButton(HtmlTextWriter output, Item button, CommandContext commandContext)
   at Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderButton(HtmlTextWriter output, Item button, CommandContext commandContext)
   at Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter output, Item chunk, CommandContext commandContext)
   at Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter output, Item chunk, CommandContext commandContext, Boolean isContextual, String id)
   at Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter output, Item chunk, CommandContext commandContext, Boolean isContextual)
   at Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunks(HtmlTextWriter output, Item strip, CommandContext commandContext, Boolean isContextual)
   at Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderStrips(HtmlTextWriter output, Item ribbon, Boolean isContextual, ListString visibleStripList)
   at Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderStrips(HtmlTextWriter output, Item defaultRibbon, Item contextualRibbon, ListString visibleStripList)
   at Sitecore.Web.UI.WebControls.Ribbons.Ribbon.Render(HtmlTextWriter output)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at Sitecore.Web.HtmlUtil.RenderControl(Control ctl)
   at Sitecore.Shell.Applications.ContentManager.ContentEditorForm.UpdateRibbon(Item folder, Boolean isCurrentItemChanged, Boolean showEditor)
   at Sitecore.Shell.Applications.ContentManager.ContentEditorForm.Update()
   at Sitecore.Shell.Applications.ContentManager.ContentEditorForm.OnPreRendered(EventArgs e)

So far I have checked the following:

1) the "temp" folder exists, and is within the site root;

2) Both IIS_USRS and the App Pool identity have full control over the temp folder;

3) The problem occurs even if logged on as "admin".

There is an identical issue (unresolved) raised for Sitecore 8 in Stack Overflow here: https://sitecore.stackexchange.com/questions/12047/error-when-selecting-an-image-in-media-library.

Seeing as the temp folder seems to have toolbar icons, most of which are named "<something>_disabled24x24.png" or similar, it seems that Sitecore might be looking for an icon but doesn't have the correct name for it.

Can anyone offer any insight on this?

Thanks,     Paul

 

 

 

 

  • Don't know how much of this you already know from the call stack: I'd guess that the ribbon-button-definition Sitecore item in the Core database, for one of the "small gallery buttons" in your ribbon, has an invalid icon field value for its "disabled-state icon" field. A good guess for *which* button, would be whichever button(s) in your ribbon are disabled when the media item is locked.
  • Sitecore released a patch for this for Sitecore 9.0.2: kb.sitecore.net/.../665700