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...Upgrading DNN P...Upgrading DNN P...Error on adding modules after updating to DNN 9.0.1Error on adding modules after updating to DNN 9.0.1
Previous
 
Next
New Post
2/8/2017 3:48 PM
 

Hi!

We've just update DNN from 8.0.4 to 9.0.1 and if you want to add a module (existing or new) we get a JavaScript error. This happens on all pages except home

Uncaught TypeError: Cannot read property 'data' of null
    at Object.onClick (AddModule.js?cdv=431:17)
    at main.js?cdv=431:182
    at main.js?cdv=431:103
    at Object.init (AddModule.js?cdv=431:10)
    at main.js?cdv=431:101
    at Object.execCb (require.js?cdv=431:1650)
    at Module.check (require.js?cdv=431:861)
    at Module.<anonymous> (require.js?cdv=431:1113)
    at require.js?cdv=431:132
    at require.js?cdv=431:1156

I already added an issue to DNN Tracker (see https://dnntracker.atlassian.net/browse/DNN-9329) but they closed because they could not reproduce it. I want to look into it (see comments in the issue) but I do not get any support...

Can somebody help me understand the code below and what might be causing the problem? See below of what's happing within the code

It's not getting any data on the following function on DesktopModules/Admin/Dnn.EditBar/scripts/addModule.js:

var onClick = function () {
        var dialog = window.top.dnn.ContentEditorManager.getModuleDialog(); /* this one return an object */
        var contentPane = dialog.getDefaultPane(); /* this one is null */
        var moduleManager = contentPane.data('dnnModuleManager'); /* here it breaks */
        if (moduleManager) {
            moduleManager.getHandler().click();
        }
    }

what does moduleManager expect from the dialog.getDefaultPane() function and where is this based upon?

Thanks in advance!

 

 
New Post
3/13/2017 8:13 PM
 

I just encountered a similar error. For me it was a "double jQuery" issue. I had a gallery loading via a remote script that was including the CDN jquery but the skin was loading another jquery version also.

I eliminated the script that was loading the CDN version and the module selection worked again.

Not sure if this is your problem as well, but something to check.

Manifested for me as 2 script errors in the console log:
1. pane.dnnModuleManager is not a function
2. Uncaught TypeError: $(...).dnnModuleDragDrop is not a function

 

 
New Post
3/14/2017 10:23 PM
 

Hi Brad,

Thank you for sharing your experience with the issue. It's however not something I can reproduce on my side. :(

What I did find out was that it's related to the fact that if a container is not a <div> element bit an HTML5 element like <section> or <article> it breaks on these symptoms. I've also posted it on the JIRA of DNN: https://dnntracker.atlassian.net/browse/DNN-9508?filter=-2

Maybe it is something you can relate to as well?  

 
New Post
6/1/2017 8:18 PM
 
We're having the same issue with a DNN 8.0.4 install upgraded to DNN 9.1.0 now. We run 4 websites and only 1 of the 4 is having issues. The other 3 were older 7.x versions upgraded to 8.0.4 and now 9.1.0 where this particular one having issues was a fresh 8.0.4 upgraded to 9.1.0 for testing.

Exact same break on the DesktopModules/Admin/Dnn.EditBar/scripts/addModule.js line 17 because the dialog.getDefaultPane() brings back NULL instead of an object to populate contentPane with.

I used the browser debug menus to step through the addModule.js and the dialog object is pretty different between a website that works (right) and one that doesn't (left).
 
New Post
6/1/2017 8:37 PM
 
I had one of the developers look at the skin and they said there are <table> & <map> elements in the skin could those cause the DNN-9508 bug you reported?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Error on adding modules after updating to DNN 9.0.1Error on adding modules after updating to DNN 9.0.1


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