Copied to clipboard

Flag this post as spam?

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


  • Markus The 10 posts 31 karma points
    May 13, 2016 @ 12:12
    Markus The
    0

    Umbraco.Media(someId).Children.Any() returns false after upgrade

    For the last couple of upgrades (I can't remember exactly, but at least to 7.3 and then to 7.4) my Media folders seem empty when queried with:

    Umbraco.Media(folderId).Children.Any()
    

    i.e. Any() returns false until I sort the media folder whose Id is folderId. When I sort the folder (not actually rearranging anything, just pressing Sort) and refresh the page, the query returns the correct images and my photo gallery displays.

    Fortunately, I found the workaround, but it's tedious to have to sort 30+ folders manually after each upgrade - not to mention the annoyed emails I get when I forget one of them ;-)

    Maybe the error has something to do with the fact that my xml Data Integrity Report says:

    Content in the cmsContentXml table ... Error

    and the FIX button does not actually fix it...

Please Sign in or register to post replies

Write your reply to:

Draft