After editing some properties on our Doc Types that are attached to Merchello Products we get a NULL error in DetachedContentDisplayExtensions.cs when rendering the site:
Line 207: if (display.DetachedContents.Any())
The 'display' object appears to be NULL. We regenerated all Models, cleared the TEMP directory and rebuilt the entire project solution but can't get passed this error which occurs on every page. The dashboard works fine and displays our updated property editors without any problems.
I'd be worried if making changes to DetachedContent items (which may very well occur in a Production environment) somehow corrupts everyone's existing shopping carts. O_o
Could this have to do with a basket cookie/session value perhaps being saved on the local machine or did we just do something dumb? =)
After clearing browser cookies the error no longer occurred, but it would be good to know why this happens and what we need to do to safely edit Products in a Production environment in case shoppers can experience the same problem.
What sort of changes did you do to your document type? I pretty sure this is a Runtime Caching issue as it is not very tightly coupled at the moment.
I think it might be a good idea to completely dump the ProductContent cache on document type changes in the Merchello Core. It should not happen all that often and we obviously can have that. Would you describe the types of updates you did in an issue at http://issues.merchello.com so I can make sure I can test it correctly?
I will. There are couple different packages involved including Archetype, Nibble's Matrix editor, and our own Compositions structure so it will take a bit to determine exactly what causes the error.
DetachedContentDisplayExtensions Null Reference
After editing some properties on our Doc Types that are attached to Merchello Products we get a NULL error in DetachedContentDisplayExtensions.cs when rendering the site:
The 'display' object appears to be NULL. We regenerated all Models, cleared the TEMP directory and rebuilt the entire project solution but can't get passed this error which occurs on every page. The dashboard works fine and displays our updated property editors without any problems.
I'd be worried if making changes to DetachedContent items (which may very well occur in a Production environment) somehow corrupts everyone's existing shopping carts. O_o
Could this have to do with a basket cookie/session value perhaps being saved on the local machine or did we just do something dumb? =)
After clearing browser cookies the error no longer occurred, but it would be good to know why this happens and what we need to do to safely edit Products in a Production environment in case shoppers can experience the same problem.
Hey Chris
What sort of changes did you do to your document type? I pretty sure this is a Runtime Caching issue as it is not very tightly coupled at the moment.
I think it might be a good idea to completely dump the ProductContent cache on document type changes in the Merchello Core. It should not happen all that often and we obviously can have that. Would you describe the types of updates you did in an issue at http://issues.merchello.com so I can make sure I can test it correctly?
Hi Rusty,
I will. There are couple different packages involved including Archetype, Nibble's Matrix editor, and our own Compositions structure so it will take a bit to determine exactly what causes the error.
Done.
http://issues.merchello.com/youtrack/issue/M-1142
is working on a reply...