I have another site on the same server that does not exhibit the problem, let's call it Site A and call the site that does exhibit the error Site B.
Site A is 6.0. Site B is 6.01.
I made a very simple page on both sites and only added one Text/HTML module on it. You need to see the "Manage" button to get the error. I then compared the results of "view/source" for each site on these simple pages.
The code that triggers the error is not even present in Site A. This is the code that only appears in site B (and is flagged as the source of the error in Firebug):
script type="text/javascript"
(function($) {
$(document).ready(function() {
var confirmString = "confirm('Are You Sure You Wish To Delete This Module ?')";
$("a[href*=\"" + confirmString +"\"]").attr("href", function () {
return $(this).attr("href").replace( /if\(.+?\)\{(.+?)\}/ , "$1");//remove its original confirm function
}).dnnConfirm({
text: 'Are You Sure You Wish To Delete This Module ?',
yesText: 'Yes',
noText: 'No',
title: 'Confirm'
});
});
}(jQuery));
/script
(took the angle brackets off the script tag to get it to show up in the forum post. the "insert code snippet" toolbar isn't working for me)
This appears right above the Text/HTML module. The very next lines of default.aspx are:
Start_Module_1312 --> div class="DNNModuleContent ModDNNHTMLC" id="dnn_ctr1312_ModuleContent">
div class="Normal" id="dnn_ctr1312_HtmlModule_lblContent">
You must be in Edit Mode to enter content, and then you can use the Module Action Menu or Module Action Buttons to manage content
/div> /div>
Both Site A (no error) and Site B (error) are copies of the same original site. They were upgraded differently. Site B went through a few more interim upgrades, and obviously hasn't got to 6.01 yet.