Hi everyone... We have a few modules that utilize the DNN Toolbar and within the latest 5.0 release some customers are starting to experience a problem whenever they are 'NOT' in edit mode. Below are the details of the error:
Error: 'dnn.controls.toolbars' is null or not an object
So far we have determined with the two clients reporting it that:
* Their DNN version was an upgrade
* The error does not exist if the admin is signed in and the mode is set to EDIT
* This same code has been used within these modules from DNN 4.5.x to through DNN 4.9.x and doesn't have this problem.
* I can only duplicate the JavaScript but in IE on the site having the issue (not FireFox)
Does anyone have any idea what might be causing this and if its an issue (possibly with the toolbar control and / or JavaScript file that comes with DNN?).
I checked the code and this is the line of JavaScript that exists at the bottom of the page that is throwing the error:
dnn.controls.toolbars['tbDynamicF']={vis:-1,css:'eipbackimg',btns:[{ca:'edit',key:'edit',css:'eipbutton_edit',alt:'Edit'},{ca:'save',key:'save',css:'eipbutton_save',alt:'Update'},{ca:'cancel',key:'cancel',alt:'Cancel'}],cssb:'eipbuttonbackimg',cssbh:'eipborderhover'};
The only code behind code that exists for this control is that its set to visible=false if the system is 'NOT' in edit mode. So apparently setting the visibility to false is throwing the error?
Can anyone provide any help or input?
-Chad