Hi,
I ran into in issue with DNN that broke a lot of the JS UI/functionality stuff. I'm not sure what happened, if I should report it as a bug or what to do from here - so here goes.
I had been editing the content of a module, got distracted and left it hanging without submitting changes. When I came back and wanted to submit, I had been auto logged off in the meantime. This resulted in a forward to the login page, I logged in, and voila.....the site was broken!!!
Great...I checked the content entries manually in the DB to check for corrupted stuff or anything that would make sense - nothing. I changed jQuery settings to use hosted jQuery versions 1.7.1/jquery.min.js and 1.8.18/jquery-ui.min.js respectively - nothing. I then inspected the page using Chromes Inspect Element and noticed a couple of errors on the site. There were 5 syntax errors in some JS files, something about "dnnconfirm not 'something something' " and a "Refused to display document because display forbidden by X-Frame-Options."
The 5 JS files being:
- /Portals/_default/Skins/DarkKnight/DNNMega/jquery.dnnmega.debug.js
- /Resources/ControlPanel/ControlPanel.debug.js
- /Resources/Search/Search.js
- /js/dnn.modalpopup.js
- /js/dnn.jquery.js
I opened the files and noticed that all of them started with 3 question marks - ???
And I was like "Hmm, wtf?". Well, deleted the question marks, uploaded the files and refreshed the site - everything was now working. I've no idea what happened, but somehow those js files had ??? prepended, which caused the shite to blow up in my face. A bug, coincidence, server error, hax attax by js midgets, or what have you??? Who knows! Just thought I should share with you guys!
DNN Setup Details:
- DotNetNuke Community Edition
- Version 06.02.00 (1610)
- .NET 3.5
- Fresh install (Typical) - not upgrade
- Using the DarkKnight DNNMega skin thingymabob
Btw - The "Refused to display document because display forbidden by X-Frame-Options." error is still there, I have no iFrames or embedded stuff other than the standard DNN setup pages on my site. I'm not sure if this error existed before the crash or came as a result of it!
Regards
Jones