Upon upgrading a dnn 9.3 to 9.8 an unexpected issue seems to have turned up on a consistent basis. Anytime some content manager tries to add a module the floating icon never turns up and remains invisible until Personabar > host> empty cache has been clicked.
The moment the new module is added, these messages turn up in the developer bar console tab: ' Uncaught TypeError: Cannot read property 'options' of undefined at dnn.dnnModuleDialog.apply (js:272) at handleNewModuleFromCookie (js:377) '
The attached screen prints are related to the above lines, 272 and 377.
What makes this error difficult is the fact that it only occurs when the concerned page has this setting: Display in menu = true. If Display in menu = false then this problem disappears.
In case of adding a new tab/page and deploying the same ascx template is in the above example it will work without errors.
Since the website contains a lot of pages the problem with the js dnn moduleManager represents quite a hassle.
Anyone with similar experiences? And thanks for your attention.
http://scarbo.dk/error_pages/517_js_formatted.PNG
You might want to take a look at the logs in portals/_default/logs.
For debugging, you might increate the logging level.
I have had a similar issue and it was also related to HTML errors in the content of the placed module. I would try uisng an HTML validator on the page after you cleared the Cache to see if that might be the case.
Thanks, but I don't think it is a question of bad html within the module that I am trying to add to the page in question since the problem is not related to a specific module but rather to a specific state of the page upon which I try to add a new module.
At this time I have tried with two different modules a custom made and a commercial one, Live Tabs from Mandeeps, both turned out the same way. But taking your advice I will try out with a couple of other commercial dnn modules like EasyDNNNews for instance and see whether that changes the procedure.
It can also be caused by a module that's already on the page
Thanks for making that suggestion,but I have just verified that any bad html in modules existing on the page cannot be the cause of this issue. If I add a new page called SubPageA based on a specific template to a specific page called ParentPageX I can then add a new module to SubPageA without any problem, but if I add a new page called SubPageB to another parent page called ParentPageY the problem will be present. If I then move SubPageB to to ParentPageX the problem will disappear.
This seems to indicate that a condition related to the page tree is involved but I can't figure out how and why this could be. Perhaps a phantom parent page that throws an error whenever a reference has been made or an invalid character figuring in a parent page name?
Hi Timo - finally your suggestion regarding other module instances on the page helped me find a temporary workaround solution. Inspecting the values in the Tabmodules table for a tab provided with the problem in question - the dnn.modulemanager in edit node throwing errors at dnn.dnnModuleDialog.apply and handleNewModuleFromCookie methods - I found that some of the existing modules had a value in the CacheMethod column of 'MemoryModuleCachingProvider'. Tabs without any dnn.modulemanager issues only had NULL values in this field.
So changing field values in the CacheMethod column in tabmodules table of the concerned tab from MemoryModuleCachingProvider to NULL solved the problem. It works - which is fine - but it doesn't make that much sence. Why would a CacheMethod value of MemoryModuleCachingProvider be invalid?
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.