Joined: 12/7/2009 Posts: 59
|
Hi
I am running CMS version 8 in IE 8
I've set the 508 compliance to be forced in the editor , when I go back into the content area and try to add or edit HTML content I get the following 3 javascript errors (See below)
With no compliance- it works , with Warn about compliance it works.
When I try to save/publish or exit I see screen in the attachment
Any ideas?
--------------------------------
Message: Syntax error
Line: 1095
Char: 4
Code: 0
URI: http://[website]/WorkArea/edit.aspx?close=false&ContType=1&LangType=2057&type=add&createtask=1&id=0&folderid=0&back
_file=content.aspx&back_action=ViewContentByCategory&back_id=0&back_LangType=20
7&AllowHTML=1
Message: 'initialSummaryPane' is undefined
Line: 2575
Char: 21
Code: 0
URI: http://[website]/WorkArea/edit.aspx?close=false&ContType=1&LangType=2057&type=add&createtask=1&id=0&folderid=0&back
_file=content.aspx&back_action=ViewContentByCategory&back_id=0&back_LangType=20
57&AllowHTML=1
Message: Permission denied
Line: 522
Char: 10
Code: 0
URI: http://[website]/WorkArea/edit.aspx?close=false&ContType=1&LangType=2057&type=add&createtask=1&id=0&folderid=0&back
_file=content.aspx&back_action=ViewContentByCategory&back_id=0&back_LangType=20
57&AllowHTML=1
File Attachment(s):
workarea-problem.jpg (29515 bytes)
|
Joined: 6/22/2006 Posts: 1833
|
Most likely, the first error is causing the others. Please provide the line of code causing the syntax error. This is most easily done by running the debugger when the error occurs.
|
Joined: 8/9/2006 Posts: 400
|
Hi Chris,
This is a known defect that has been fixed in 8.0 SP1 and later. I strongly suggest you to upgrade to 8.0 SP1. Otherwise, if you have access to the server file, backup your ~\workarea\edit.aspx.vb and search for these lines.
If "2" = settings_data.Accessibility Then ValidateContentPanel.Text += " if (typeof Button != ""undefined"") {" & vbCrLf ValidateContentPanel.Text += " if (""publish"" == Button.toLowerCase() || ""submit"" == Button.toLowerCase()) {" & vbCrLf ValidateContentPanel.Text += " alert(errContent);" & vbCrLf ValidateContentPanel.Text += " $ektron().trigger(""wizardPanelShown"");" & vbCrLf ValidateContentPanel.Text += " return false;" & vbCrLf ValidateContentPanel.Text += " }" & vbCrLf ValidateContentPanel.Text += " else { " & vbCrLf ValidateContentPanel.Text += " if (confirm(errContent + ""\n"" + sInvalidContent)) {" & vbCrLf ValidateContentPanel.Text += " return true;" & vbCrLf ValidateContentPanel.Text += " } " & vbCrLf ValidateContentPanel.Text += " $ektron().trigger(""wizardPanelShown"");" & vbCrLf ValidateContentPanel.Text += " else {return false;} " & vbCrLf ValidateContentPanel.Text += " }" & vbCrLf ValidateContentPanel.Text += " }" & vbCrLf and replace with these
If "2" = settings_data.Accessibility Then ValidateContentPanel.Text += " if (typeof Button != ""undefined"") {" & vbCrLf ValidateContentPanel.Text += " if (""publish"" == Button.toLowerCase() || ""submit"" == Button.toLowerCase()) {" & vbCrLf ValidateContentPanel.Text += " alert(errContent);" & vbCrLf ValidateContentPanel.Text += " $ektron().trigger(""wizardPanelShown"");" & vbCrLf ValidateContentPanel.Text += " return false;" & vbCrLf ValidateContentPanel.Text += " }" & vbCrLf ValidateContentPanel.Text += " else { " & vbCrLf ValidateContentPanel.Text += " if (confirm(errContent + ""\n"" + sInvalidContent)) {" & vbCrLf ValidateContentPanel.Text += " return true;" & vbCrLf ValidateContentPanel.Text += " } " & vbCrLf ValidateContentPanel.Text += " else {" & vbCrLf ValidateContentPanel.Text += " $ektron().trigger(""wizardPanelShown"");" & vbCrLf ValidateContentPanel.Text += " return false;" & vbCrLf ValidateContentPanel.Text += " } " & vbCrLf ValidateContentPanel.Text += " }" & vbCrLf ValidateContentPanel.Text += " }" & vbCrLf
Please note that the differences between the 2 are in green color. These should keep you continue with your current version.
Thanks and regards
Cecilia
|
Joined: 12/7/2009 Posts: 59
|
Thanks Cecilia
I have had problems in the past when I tried to upgrade to SP1.
Maybe I wasn't following the right upgrade path , could you recommend a document or some steps to perform the upgrade?
Failing that I can use the Javascript you have provided.
Thanks Chris
|