Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris 47 posts 127 karma points
    Sep 27, 2016 @ 18:20
    Chris
    0

    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:

    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? =)

  • Chris 47 posts 127 karma points
    Sep 27, 2016 @ 18:36
    Chris
    0

    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.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Sep 27, 2016 @ 18:51
    Rusty Swayne
    0

    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?

  • Chris 47 posts 127 karma points
    Sep 27, 2016 @ 20:09
    Chris
    0

    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.

  • Chris 47 posts 127 karma points
    Sep 27, 2016 @ 21:35
Please Sign in or register to post replies

Write your reply to:

Draft