Howdy...
We upgraded Community Edition from v5.6.2 to v7.3.4 and ran into the following issue when trying to upload files via Admin :: File Manager:
The ajax call animated gif just spins, and looking at F12 we see the following error:
Uncaught TypeError: node.get_text is not a function
getBreadcrumbFolderItem @ dnn.DigitalAssets.js?cdv=23:2137
updateBreadcrumb @ dnn.DigitalAssets.js?cdv=23:2166
itemsDatabind @ dnn.DigitalAssets.js?cdv=23:1607
(anonymous function) @ dnn.DigitalAssets.js?cdv=23:1526
jQuery.Callbacks.fire @ jquery.js?cdv=23:1037
jQuery.Callbacks.self.fireWith @ jquery.js?cdv=23:1148
done @ jquery.js?cdv=23:8074
jQuery.ajaxTransport.send.callback @ jquery.js?cdv=23:85984
The problematic function call is:
function getBreadcrumbFolderItem(node) {
var a = $("<a href='#' />")
.text(node.get_text())
.attr("title", node.get_text())
.attr("data-folderid", node.get_value())
.click(function (e) {
e.preventDefault();
currentFolderId = $(this).attr('data-folderid');
treeView.findNodeByValue(currentFolderId).select();
clearSearchPattern();
loadFolderFirstPage(currentFolderId);
});
return $("<li class='dnnModuleDigitalAssetsBreadcrumbLink' />").append(a);
}
Do we not have the most current copy of DigitalAssets? (I checked under Host :: Extensions as it says we have 7.3.4. installed.)
When I run the page in debug mode, I see that instead of b.RadTreeNode being passed in once it hits the end of the expected breadcrumb list it passed the != rootFolderId and proceeds to get_parent one too many times - it returns c.RadTreeView and attempts to run that through the getBreadCrumbFolderItem. Of course since it's now out of "bounds" on the portal directory it blows up.
Something must be off with the Root Folder Id. It's looking for 0 and the last folder "Root's" Id is 25.
Anyway to fix this?