Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Admin :: File Management - node.get_text is not a functionAdmin :: File Management - node.get_text is not a function
Previous
 
Next
New Post
6/15/2015 7:52 PM
 

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?

 
New Post
6/15/2015 8:23 PM
 

More info....

When the page is run to just view the contents of the folder, the correct rootFolderId is being used (in my case "25"). However, when we attempt to upload a file the rootFolderId is now set to "0". Therefore it fails to detect the correct place to stop and fails with the error mentioned above.

Any ideas on why the rootNodeId is not being set correctly when the upload file button is clicked?

 
New Post
6/15/2015 8:37 PM
 

Ok - one more update....The page is definitely being rebuild with "0" as the rootFolderId.

Normal page build:

    dnnModule.digitalAssets.init(
        $.ServicesFramework(869),
        '25',

After clicking upload:

     dnnModule.digitalAssets.init(
        $.ServicesFramework(869),
        '0',

Again, this is the OOB File Manager tool that comes with DNN 7.3.4 after an upgrade from 5.6.2.

 
New Post
6/15/2015 8:53 PM
 

Still more info...

RootFolderViewModel object is null....

Via DesktopModules\DigitalAssets\View.ascx(237)

    dnnModule.digitalAssets.init(
        $.ServicesFramework(<%=ModuleId %>),
        '<%= RootFolderViewModel != null ? RootFolderViewModel.FolderID : 0 %>',

I'm not seeing better data in the settings section between the two states, but this is a far as I've been able to trace the issue.

 
New Post
6/17/2015 4:48 PM
 
Hey - anyone able to help or provide direction on this issue?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Admin :: File Management - node.get_text is not a functionAdmin :: File Management - node.get_text is not a function


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out