Copied to clipboard

Flag this post as spam?

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


  • Anthony 4 posts 84 karma points
    Aug 29, 2019 @ 00:49
    Anthony
    0

    Media folders after 7.15.1 => 8.1.2 upgrade

    We recently upgraded from 7.4.3 => 7.15.1 => 8.1.2 and mostly everything is working well. The only remaining issue is with the media picker.

    enter image description here

    We have a number of folders that existed before the upgrade to 8.1.1 and they still exist except they no longer appear in the left-hand nav. They also don't appear when selecting media for documents.

    enter image description here

    Is there anything I can do to get the folders to show in the nav other than recreating the entire structure and moving the media from the old folder to the new folder?

  • Shaishav Karnani from digitallymedia.com 348 posts 1627 karma points
    Aug 29, 2019 @ 03:19
    Shaishav Karnani from digitallymedia.com
    0

    Hi Anthony,

    It looks something related to cache as on the right side you can see the folders. I would suggest few troubleshooting approach:-

    1. Restarting the IIS - simplest :-)
    2. Check in the Inspect Mode of Chrome the Menu AJAX call
    3. Any error log is being tracked.
    4. Goto folder from the right side and try saving one of the folders.

    Hope that helps.

    Cheers,

    Shaishav

  • Anthony 4 posts 84 karma points
    Aug 29, 2019 @ 03:29
    Anthony
    0

    IIS restart didn't help.

    The GetApplicationTrees call returns

        {
       "isContainer":false,
       "isGroup":false,
       "containsGroups":false,
       "children":[
          {
             "parentId":"-1",
             "hasChildren":true,
             "nodeType":"media",
             "routePath":null,
             "childNodesUrl":"/umbraco/backoffice/UmbracoTrees/MediaTree/GetNodes?id=5477&application=media&tree=&use=main&culture=",
             "menuUrl":"/umbraco/backoffice/UmbracoTrees/MediaTree/GetMenu?id=5477&application=media&tree=&use=main&culture=",
             "iconIsClass":true,
             "iconFilePath":"",
             "cssClasses":[
    
             ],
             "name":"Afterpay",
             "id":"5477",
             "udi":"umb://media/058cea3bbe6f4ea5aade961f003f4abe",
             "icon":"icon-folder",
             "trashed":false,
             "key":"00000000-0000-0000-0000-000000000000",
             "alias":null,
             "path":"-1,5477",
             "metaData":{
                "contentType":"Folder",
                "application":"media",
                "tree":"",
                "use":"main",
                "culture":null
             }
          },
          {
             "parentId":"-1",
             "hasChildren":false,
             "nodeType":"media",
             "routePath":"media/media/recyclebin",
             "childNodesUrl":"/umbraco/backoffice/UmbracoTrees/MediaTree/GetNodes?id=-21&application=media&tree=&use=main&culture=",
             "menuUrl":"/umbraco/backoffice/UmbracoTrees/MediaTree/GetMenu?id=-21&application=media&tree=&use=main&culture=",
             "iconIsClass":true,
             "iconFilePath":"",
             "cssClasses":[
    
             ],
             "name":"Recycle Bin",
             "id":"-21",
             "udi":null,
             "icon":"icon-trash",
             "trashed":false,
             "key":"00000000-0000-0000-0000-000000000000",
             "alias":null,
             "path":"-1",
             "metaData":{
                "application":"media",
                "tree":"",
                "use":"main",
                "culture":null
             }
          }
       ],
       "containsTrees":true,
       "parentId":null,
       "hasChildren":false,
       "nodeType":null,
       "routePath":"media",
       "childNodesUrl":"/umbraco/backoffice/UmbracoTrees/MediaTree/GetNodes?id=-1&application=media&tree=&use=main&culture=",
       "menuUrl":"/umbraco/backoffice/UmbracoTrees/MediaTree/GetMenu?id=-1&application=media&tree=&use=main&culture=",
       "iconIsClass":true,
       "iconFilePath":"",
       "cssClasses":[
    
       ],
       "name":"Media",
       "id":"-1",
       "udi":null,
       "icon":"icon-folder-close",
       "trashed":false,
       "key":"00000000-0000-0000-0000-000000000000",
       "alias":null,
       "path":"-1",
       "metaData":{
          "treeAlias":"media",
          "application":"media",
          "tree":"",
          "use":"main",
          "culture":null,
          "searchable":"true"
       }
    }
    

    It only has the 2 nodes.

    No errors in the Chrome Dev tools.

    Saving the folder does not resolve the issue.

  • Steve Megson 150 posts 942 karma points MVP c-trib
    Aug 29, 2019 @ 07:15
    Steve Megson
    100

    It's a problem with media folders created before 7.8, which left some details missing in the database. This only became a problem in 7.15 and 8.0, where the media tree expects those details to be present.

    As a workaround until this is fixed, there's a SQL query here which adds the missing rows.

  • Anthony 4 posts 84 karma points
    Aug 29, 2019 @ 07:25
    Anthony
    0

    Thanks Steve - it worked perfectly

  • Steve Megson 150 posts 942 karma points MVP c-trib
    Aug 29, 2019 @ 13:19
    Steve Megson
    0

    For the benefit of anyone reading this in the future, this is fixed in 8.1.4.

Please Sign in or register to post replies

Write your reply to:

Draft