U4-4338 - Umbraco fails to enumerate TypedMedia

Created by Вилен Тамбовцев 06 Mar 2014, 09:18:07 Updated by Rune Grønkjær 29 Oct 2014, 07:59:51

Relates to: U4-5255

Relates to: U4-5711

I'm trying to get Typed media with

Umbraco.TypedMedia(1234).Url

After that I get exception:

2014-03-05 22:46:56,118 [25] WARN umbraco.macro - [Thread 26] Error loading Partial View (file: ~/Views/MacroPartials/Homepage.cshtml). Exception: System.FormatException: The valueDictionary is not formatted correctly and is missing any of the 'parentID' elements at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent.ValidateAndSetProperty(IDictionary2 valueDictionary, Action1 setProperty, String[] potentialKeys) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent..ctor(IDictionary2 valueDictionary, Func2 getParent, Func2 getChildren, Func3 getProperty, Boolean fromExamine) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.ConvertFromSearchResult(SearchResult searchResult) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetUmbracoMedia(Int32 id) at Umbraco.Web.PublishedCache.ContextualPublishedCache`1.GetById(Boolean preview, Int32 contentId) at Umbraco.Web.UmbracoHelper.TypedDocumentById(Int32 id, ContextualPublishedCache cache) at ASP._Page_Views_Partials_Home_Infographics_cshtml.Execute() in c:\inetpub\wwwroot\investmoscow.ru\Views\Partials\Home\Infographics.cshtml:line 21 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at ASP._Page_Views_MacroPartials_Homepage_cshtml.Execute() in c:\inetpub\wwwroot\investmoscow.ru\Views\MacroPartials\Homepage.cshtml:line 23 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult) at Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, INode currentPage) at umbraco.macro.LoadPartialViewMacro(MacroModel macro) at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)

I've used source and debugged Umbraco, so I've found that Examine SearchResult actually does not contain 'parentID' field. I've added the field to the Examine Internal index, and made reindex, now everything worked.

But after adding new media item I keep getting these new exceptions:

2014-03-05 22:43:01,057 [7] WARN umbraco.macro - [Thread 5] Error loading Partial View (file: ~/Views/MacroPartials/Homepage.cshtml). Exception: System.ArgumentException: An item with the same key has already been added. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.ConvertFromXPathNavigator(XPathNavigator xpath) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetProperty(DictionaryPublishedContent dd, String alias) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent.GetProperty(String alias) at Umbraco.Web.Models.PublishedContentBase.get_Url() at ASP._Page_Views_Partials_Home_Infographics_cshtml.Execute() in c:\inetpub\wwwroot\investmoscow.ru\Views\Partials\Home\Infographics.cshtml:line 21 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at ASP._Page_Views_MacroPartials_Homepage_cshtml.Execute() in c:\inetpub\wwwroot\investmoscow.ru\Views\MacroPartials\Homepage.cshtml:line 23 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult) at Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, INode currentPage) at umbraco.macro.LoadPartialViewMacro(MacroModel macro) at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)

Comments

Shannon Deminick 10 Mar 2014, 00:15:07

I cannot replicate this issue. You are getting these errors only from this call?

Umbraco.TypedMedia(1234).Url

I've tested the latest codebase and cannot reproduce. My index config is just:

and parentID is definitely indexed as well.


Вилен Тамбовцев 24 Mar 2014, 15:41:39

http://1drv.ms/1eFkq9G here are my website and DB backup files change the connection strings in the connectionstrings.config appropriately then go to http://localhost/calendar-of-events/


Вилен Тамбовцев 01 Apr 2014, 15:05:43

I've aded reproducable code


Вилен Тамбовцев 16 Apr 2014, 09:51:16

Any news??


Shannon Deminick 22 Apr 2014, 09:10:22

I've got this running and when I go to that page the only error i get is:

Error loading Partial View script (file: ~/Views/MacroPartials/NewsList.cshtml)


Shannon Deminick 22 Apr 2014, 09:11:39

Have changed the error reporting to 'throw' and not getting a similar ysod, i'll investigate.


Вилен Тамбовцев 22 Apr 2014, 09:22:10

Look at the UmbracoTraceLog.txt, you'll see the error.


Shannon Deminick 22 Apr 2014, 09:59:38

I've tested this with the 6.2.0 DLLs and it seems to work. I had to make a couple null checks though:

In NewsList.cshhtml - you need to check if the result of TypedMedia is null

var imgId = item.GetPropertyValue<int>("image");
var img = item.GetPropertyValue("image");
if (imgId != 0)
{
    var media = Umbraco.TypedMedia(imgId);
    if (media != null) {
        img = media.Url;    
    }			
}

Then you need to check if img is null

@if (img != null && !string.IsNullOrEmpty(img.ToString()))
{
	<img class="leftimg" src="@img" />
}

It renders for me with the 6.2 DLLs, can you try upgrading with the 6.2 nightly build? http://nightly.umbraco.org/


Вилен Тамбовцев 22 Apr 2014, 10:08:21

Well, I do check for null if I suppose it can be null, umbraco actually gives me empty strings into "img"


Shannon Deminick 22 Apr 2014, 10:20:00

It returns null for me, if you do item.GetPropertyValue("image") it might return an empty string. I had to add the null check to get it to work after upgrading to 6.2


Вилен Тамбовцев 22 Apr 2014, 11:16:14

Have you rebuilt Examine indexes after upgrade? If yes - this actually fixes the problem, but it bubbles again after new media upload.


Shannon Deminick 23 Apr 2014, 02:33:57

No i didn't touch any examine indexes. If you can please test the 6.2 codebase that would be great.


Вилен Тамбовцев 25 Apr 2014, 12:11:49

6.2.0.155 Still got this [ArgumentException: An item with the same key has already been added.] System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) +13908159 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.ConvertFromXPathNavigator(XPathNavigator xpath) +914 Umbraco.Web.PublishedCache.ContextualPublishedCache1.GetById(Boolean preview, Int32 contentId) +41 Umbraco.Web.UmbracoHelper.TypedDocumentById(Int32 id, ContextualPublishedCache cache) +32 ASP._Page_Views_Partials_Home_Infographics_cshtml.Execute() in d:\Projects\Portal\External Portal\EIIP\EIIP\Views\Partials\Home\Infographics.cshtml:20 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +196 Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +140 System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +158 ASP._Page_Views_RazorHomePage_cshtml.b__0() in d:\Projects\Portal\External Portal\EIIP\EIIP\Views\RazorHomePage.cshtml:24 System.Web.WebPages.<>c__DisplayClassb.b__9(TextWriter tw) +289 System.Web.WebPages.WebPageBase.Write(HelperResult result) +89 ASP._Page_Views_RazorMaster_cshtml.Execute() in d:\Projects\Portal\External Portal\EIIP\EIIP\Views\RazorMaster.cshtml:148 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +196 System.Web.WebPages.WebPageBase.Write(HelperResult result) +89 System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action1 body) +233 System.Web.WebPages.WebPageBase.PopContext() +287 Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +140 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +378 System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +799724 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +799724 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +263 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +799960 System.Web.Mvc.<>c__DisplayClass1d.b__19() +40 System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +15 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +65 System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +15 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +51 System.Web.Mvc.<>c__DisplayClass8.b__3(IAsyncResult asyncResult) +42 System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +15 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +51 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288


Stephan 28 Apr 2014, 10:26:26

Important to check where the exception is happening. If it happens in ConvertFromSearchResult it means the media was found by Examine with all its properties, and used to build the strongly typed media. If it happens in ConvertFromXPathNavigator it means that what we got from Examine is not enough and we re-loaded the media from database.

Your first exception was about Examine not containing ParentID and you fixed it by adding that field to the index. The second exception happens when the media does not come from Examine but from the DB and would be caused by some issue when setting up the media.

Looking at the code... the most probably place where the exception throws is at PublishedMediaCache.cs:298 (in current 6.2) when adding the parents properties to the properties dictionary. Which would be caused by global::umbraco.library.GetMedia(id, true) returning some XML with a duplicate element.


Emmanuel Dugas-Gallant 30 Apr 2014, 15:14:20

I'm also having the same issues with the id,nodeId,__NodeId stuff, but actually, my Internal index is empty if I take a look at the administration panel of Examine. The only index that have stuff in it is the ExternalIndexes one.

Documents in index 0 Fields in index 0 Has deletions? / Optimized? false (0)/ false

ExternalIndex

Documents in index 9507 Fields in index 9507 Has deletions? / Optimized? false (0)/ true

Can someone help me understand why the system is complaining about a missing field in the dictionary, if I understand, the ExternalIndex should map all fields...

Hope it is clear =P


Stephan 30 Apr 2014, 15:19:31

I have been able to reproduce the error by having a corrupted Examine index that would contain some medias that did ''not'' exist anymore in the database. Because it's in Examine we think it exists. Then when we try to retrieve a property, if that property is missing (or empty) in Examine, we try to load the media, and obtain the ''id,nodeId,__NodeId'' message. Fixed by rebuilding the index.

@Emmanuel: medias are using the InternalIndexer. That one needs to be rebuilt if empty.


Emmanuel Dugas-Gallant 30 Apr 2014, 15:39:01

Thanks Stephan,

With your comment, I've been able to conclude that the internal index have not been rebuilt since a long... long... time ;) In a development environment, I saw with an InternalIndex rebuilt that I have 14k Documents in the index instead of 150 documents in the internalindex of my production environment. I'll rebuild the production environment index at lunch time and keep you informed.

My question, on what schedule the cache is rebuilt? Is there something in place or should I rebuilt it manually?

Regards,


Andy Dyton 30 Apr 2014, 16:05:43

@zpqrtbnk That's consistent with what I've been experiencing, the Examine index occasionally gets corrupted and this error occurs, it happens most often when working on different environments sharing the same database.

This error definitely needs to be handled, as currently it can bring down a site (any page referencing media) until the index is rebuilt. I presume this happens less often on a dedicated environment, but it's still a risk.


Emmanuel Dugas-Gallant 30 Apr 2014, 17:30:33

Actually, the Internal index was "kind-of" corrupted, while trying to rebuild, a popup message popped saying that the cache was broken (something like that)... Edit: Here is more detail: [Thread 1] An unhandled exception occurred - System.TypeInitializationException: The type initializer for 'Examine.ExamineManager' threw an exception. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.

Question: Am I right if I say that when deleting App_Data/TEMP folder, the folders of the indexes caches are created but the only index populated is the External One? In that case, what are the mechanism to keep those indexes in-sync? Do I have to manually rebuild them with the adminitration panel of Examine Management?


Shannon Deminick 30 Apr 2014, 23:56:10

Ok, getting closer to figuring out what is going on here, thanks @zpqrtbnk .

@duge - Examine will stay in sync you generally don't have to do anything unless it corrupts (but that will happen for a reason, not just randomly) or if you are deploying between environments with new data. Depending on how you are doing that you might need to rebuild the indexes. You can rebuild with the examine mgmt tool in the developer section, or delete all your examine indexes and restart your app pool (this isn't recommended to do on a live site, better to use the tools). Your XmlException is a strange one, sounds like the XML coming from Umbraco is invalid and preventing it from continuing. The cache is not rebuilt on any schedule. XML Cache is refreshed on startup and stays in sync. Examine indexes simply stay in sync.


Shannon Deminick 30 Apr 2014, 23:57:38

@duge - you also must ensure that your InternalIndexSet is declared in your examine config and should look exactly like:


Shannon Deminick 01 May 2014, 00:21:39

@Вилен.Тамбовцев - I've realized what part of your issue is (it is different from the one that @zpqrtbnk explained. You CANNOT modify the InternalIndexSet config that is shipped with Umbraco, it must be exactly this:

So that it indexes everything, otherwise you will get problems.

I still need to figure out why you are getting the ConvertFromXPathNavigator exception.


Shannon Deminick 01 May 2014, 01:39:48

I've fixed the COnvertFromXPathNavigator exceptions in rev: f23af8525312e2d86d54c972b519114fefde6ec6

This ensures that we are not adding duplicate keys to the dictionary which could be caused by having properties named the same as the internal fields like (nodeId, etc...)


Вилен Тамбовцев 05 May 2014, 07:53:22

Actually, the bug was about abscence of the required field in the index, therefore I've added it manually to fix it: see the issue description.


Laurence Gillian 12 May 2014, 17:27:57

I'm particularly interested in this issue.

In 6.1.6, I'm able to recreate the issue with both properties on Content and Media, I think the Media could potentially be a red herring. For me this is only happening when using

   GetPropertyValue<T>

I've found it's possible to corrupt the Lucene index, you simply ask for something that doesn't exist. When you do this, things become very slow.

I've found as soon as you ask for something that does not exist, all the media drops out of the Lucene index. After rebuilding the indexes, you have to recycle the APP Pool, before the in-memory lucene cache is refreshed.

Has 6.2.0 seen any changes that would resolve this?


Shannon Deminick 12 May 2014, 22:48:21

Hi @Laurence.Gillian , It's really not possible to 'corrupt' the index by retrieving values, there are no writes back to Lucene at that point. What happens with media is that if it doesn't find it in Lucene it will try to load it from the xslt media cache, and if that doesn't exist it will populate it from the db.

Instead of rebuilding the indexes and recycle the app pool, can you just try recycling the app pool, I would assume that it will solve the problem since there are no writes to Lucene at this point. Also, there is no "in-memory" lucene cache, we don't load the lucene index into memory (RAM disk), it is file based.

6.2 has a fair few fixes for examine/lucene/media caches, would be worth a try, otherwise if you can provide explicit details on how to replicate your problem i can look into it.


Вилен Тамбовцев 22 Jul 2014, 07:04:07

Well, the original bug has been set for the exception like this:

2014-07-22 05:28:32,399 [44] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 43] An unhandled exception occurred System.FormatException: The valueDictionary is not formatted correctly and is missing any of the 'id,nodeId,__NodeId' elements at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent.ValidateAndSetProperty(IDictionary2 valueDictionary, Action1 setProperty, String[] potentialKeys) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent..ctor(IDictionary2 valueDictionary, Func2 getParent, Func2 getChildren, Func3 getProperty, Boolean fromExamine) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.ConvertFromXPathNavigator(XPathNavigator xpath) at Umbraco.Web.PublishedCache.ContextualPublishedCache1.GetById(Boolean preview, Int32 contentId) at Umbraco.Web.UmbracoHelper.TypedDocumentById(Int32 id, ContextualPublishedCache cache) at ASP._Page_Views_Partials_Home_Infographics_cshtml.Execute() in c:\inetpub\wwwroot\investmoscow.ru\Views\Partials\Home\Infographics.cshtml:line 20 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at ASP._Page_Views_eiipHomepage_cshtml.<Execute>b__1() in c:\inetpub\wwwroot\investmoscow.ru\Views\eiipHomepage.cshtml:line 50 at System.Web.WebPages.WebPageBase.<>c__DisplayClassb.<RenderSection>b__9(TextWriter tw) at ASP._Page_Views_eiipMaster_cshtml.Execute() in c:\inetpub\wwwroot\investmoscow.ru\Views\eiipMaster.cshtml:line 138 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action1 body) at System.Web.WebPages.WebPageBase.PopContext() at StackExchange.Profiling.MVCHelpers.WrappedView.Render(ViewContext viewContext, TextWriter writer) in c:\Code\github\SamSaffron\MiniProfiler\StackExchange.Profiling\MVCHelpers\WrappedView.cs:line 58 at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.b__17() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.<>c__DisplayClass1d.b__19() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.b__0() at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.b__3(IAsyncResult ar) at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.b__3(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.b__3(IAsyncResult ar) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Have you tried to reproduce it? Please, try the exact version in my attached archive. This issue still bugs me :(


Rune Grønkjær 29 Oct 2014, 07:15:10

This is still an issue in v7.1.6. We get this error regularly and the site will throw YSODS a few minutes. After that the site will bounce back up and start running normally. It's a pretty huge problem on our high traffic websites. We are currently trying to work around it by try catching the issue, but it's not a good solution. Umbraco should'nt break down like that.

Here's the last part of my exception: 2014-10-28 20:57:02,199 [7] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 14] An unhandled exception occurred System.FormatException: The valueDictionary is not formatted correctly and is missing any of the 'id,nodeId,__NodeId' elements at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent.ValidateAndSetProperty(IDictionary2 valueDictionary, Action1 setProperty, String[] potentialKeys) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent..ctor(IDictionary2 valueDictionary, Func2 getParent, Func2 getChildren, Func3 getProperty, Boolean fromExamine) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.ConvertFromXPathNavigator(XPathNavigator xpath) at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetUmbracoMedia(Int32 id) at Umbraco.Web.PublishedCache.ContextualPublishedCache1.GetById(Boolean preview, Int32 contentId) at Umbraco.Web.PublishedContentQuery.TypedDocumentById(Int32 id, ContextualPublishedCache cache) at System.Linq.Enumerable.<>c__DisplayClass123.b__11(TSource x) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)


Shannon Deminick 29 Oct 2014, 07:21:57

@Rune.Grønkjær This issue is closed, if you still have an issue and you can reproduce it then please open another one. Closed issues cannot be re-opened.

Also, can you please read through all messages in this thread to see if anything fixes your issue. I have noticed that in your stack trace, the error is coming from: ConvertFromXPathNavigator which means this is not an Examine issue.

There was code that fixed this issue in rev: https://github.com/Umbraco/Umbraco-CMS/commit/f23af8525312e2d86d54c972b519114fefde6ec6

If/when you open another issue, we need ALL of your information, the information in your logs at the time this happens, full stack traces, any steps to be able to reproduce, etc...


Rune Grønkjær 29 Oct 2014, 07:45:17

I will open another then. The errors looks very much the same in my eyes and I could see there was no fix submitted.


Priority: Major

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.1.6

Due in version: 6.2.0, 7.1.2

Sprint:

Story Points:

Cycle: