I have just installed Silverstripe on an IIS server, but am having some trouble saving and adding images. I noticed the image thing first, the "insert image" button appears to have disappeared. Then when I go to save and publish, it says "javascript parse error", and the console spits out the error below.
If this was my own code, I would comment out the stat counter stuff and see what happens, but I'm assuming this is burried in a saphire class somewhere.
No plugins or customisations added.
Any thoughts?
1000:
missing ; before statement
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project = 7253148;
var sc_invisible = 1;
var sc_security = "a9758e62";
</script>
<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script><noscript><div
class="statcounter"><a title="web statistics"
href="http://statcounter.com/" target="_blank"><img
class="statcounter"
src="http://c.statcounter.com/7253148/0/a9758e62/1/"
alt="web statistics" ></a></div></noscript>
<!-- End of StatCounter Code -->
$('Form_EditForm').getPageFromServer(15);
$('Form_EditForm').loadActionsFromString('<input class=\"action delete\" id=\"Form_EditForm_action_unpublish\" type=\"submit\" name=\"action_unpublish\" value=\"Unpublish\" title=\"Remove this page from the published site\" /> <input class=\"action delete\" id=\"Form_EditForm_action_delete\" type=\"submit\" name=\"action_delete\" value=\"Delete from the draft site\" title=\"Delete from the draft site\" /> <input class=\"action \" id=\"Form_EditForm_action_save\" type=\"submit\" name=\"action_save\" value=\"Save\" title=\"Save\" /> <input class=\"action \" id=\"Form_EditForm_action_publish\" type=\"submit\" name=\"action_publish\" value=\"Save and Publish\" title=\"Save and Publish\" /> ');
$('Form_EditForm').updateStatus('Published');
$('sitetree').setNodeTitle(15, 'Nicolas Anelka');
$('Form_EditForm').elements.StageURLSegment.value = 'http://www.the-amf.com/profiles/footballers/nicolas-anelka/';
$('Form_EditForm').elements.LiveURLSegment.value = 'http://www.the-amf.com/profiles/footballers/nicolas-anelka/';
$('Form_EditForm').notify('PagePublished', $('Form_EditForm').elements.ID.value);
statusMessage('Published \'Footballer Profile:<br>Nicolas Anelka\' successfully', 'good');Behaviour.addLoader(hideLoading);
if((typeof tinyMCE != 'undefined')) {
tinymce.PluginManager.load("advcode", "../../../sapphire/thirdparty/tinymce-advcode/editor_plugin_src.js");
tinymce.PluginManager.load("ssbuttons", "../../../cms/javascript/tinymce_ssbuttons/editor_plugin_src.js");
tinyMCE.init({"friendly_name":"Default CMS","priority":"50","mode":"none","editor_selector":"htmleditor","width":"100%","auto_resize":false,"theme":"advanced","theme_advanced_layout_manager":"SimpleLayout","theme_advanced_toolbar_location":"top","theme_advanced_toolbar_align":"left","theme_advanced_toolbar_parent":"right","blockquote_clear_tag":"p","table_inline_editing":true,"safari_warning":false,"relative_urls":true,"verify_html":true,"language":"en","body_class":"typography","document_base_url":"http:\/\/www.the-amf.com\/","urlconverter_callback":"nullConverter","setupcontent_callback":"sapphiremce_setupcontent","cleanup_callback":"sapphiremce_cleanup","use_native_selects":true,"valid_elements":"@[id|class|style|title],#a[id|rel|rev|dir|tabindex|accesskey|type|name|href|target|title|class],-strong\/-b[class],-em\/-i[class],-strike[class],-u[class],#p[id|dir|class|align|style],-ol[class],-ul[class],-li[class],br,img[id|dir|longdesc|usemap|class|src|border|alt=|title|width|height|align],-sub[class],-sup[class],-blockquote[dir|class],-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|dir|id|style],-tr[id|dir|class|rowspan|width|height|align|valign|bgcolor|background|bordercolor|style],tbody[id|class|style],thead[id|class|style],tfoot[id|class|style],#td[id|dir|class|colspan|rowspan|width|height|align|valign|scope|style],-th[id|dir|class|colspan|rowspan|width|height|align|valign|scope|style],caption[id|dir|class],-div[id|dir|class|align|style],-span[class|align|style],-pre[class|align],address[class|align],-h1[id|dir|class|align|style],-h2[id|dir|class|align|style],-h3[id|dir|class|align|style],-h4[id|dir|class|align|style],-h5[id|dir|class|align|style],-h6[id|dir|class|align|style],hr[class],dd[id|class|title|dir],dl[id|class|title|dir],dt[id|class|title|dir],@[id,style,class]","extended_valid_elements":"img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|usemap],iframe[src|name|width|height|align|frameborder|marginwidth|marginheight|scrolling],object[width|height|data|type],param[name|value],map[class|name|id],area[shape|coords|href|target|alt]","content_css":"cms\/css\/editor.css, themes\/amf\/css\/editor.css","spellchecker_languages":"+English (United States)=en_US","plugins":"contextmenu,table,emotions,paste,-advcode,spellchecker,media,fullscreen,-ssbuttons","theme_advanced_buttons1":"bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,blockquote,hr,charmap","theme_advanced_buttons2":"undo,redo,separator,cut,copy,paste,pastetext,pasteword,spellchecker,separator,ssimage,ssflash,sslink,unlink,anchor,separator,advcode,fullscreen,separator,search,replace,selectall,visualaid,separator","theme_advanced_buttons3":"tablecontrols"});
}