hi there,
been using fck successfully for quite a while now. i just updated our servers php to version 5, and also downloaded the new version of fck to use. upon loading up my project site, Firebug gave me the following error when an fck editor was loaded...
syntax error
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or...
i then created a new php file with barebones fck stuff... just the include at the top, html and body tags, and the fck loading parameters... same result.
Firebug reports this file as the one thats erroring...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style> #container { position: absolute; width: 280px; height: 450px; margin-left: -140px; margin-top: -225px; left: 50%; top: 50%; } </style> </head> <body> <div id="container"> <SCRIPT LANGUAGE=JavaScript1.1> <!-- var MM_contentVersion = 6; var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0; if ( plugin ) { var words = navigator.plugins["Shockwave Flash"].description.split(" "); for (var i = 0; i < words.length; ++i) { if (isNaN(parseInt(words[i]))) continue; var MM_PluginVersion = words[i]; } var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion; } else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) { document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag document.write('on error resume next \n'); document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n'); document.write('</SCR' + 'IPT\> \n'); } if ( MM_FlashCanPlay ) { document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'); document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '); document.write(' ID="script" WIDTH="280" HEIGHT="450" ALIGN="">'); document.write(' <PARAM NAME=movie VALUE="jewburger.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> '); document.write(' <EMBED src="jewburger.swf" quality=high bgcolor=#FFFFFF '); document.write(' swLiveConnect=FALSE WIDTH="280" HEIGHT="450" NAME="script" ALIGN=""'); document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">'); document.write(' </EMBED>'); document.write(' </OBJECT>'); } else{ document.write('<a href="http://www.on.co.nz/"><IMG SRC="script.gif" WIDTH="280" HEIGHT="450" usemap="#script" BORDER=0></a>'); } //--> </SCRIPT> <NOSCRIPT><a href="http://www.on.co.nz/"><IMG SRC="script.gif" WIDTH="280" HEIGHT="450" usemap="#script" BORDER=0></a></NOSCRIPT> </div> </body> </html>
weird thing is, this file doesnt seem to exist! might it be generated?
im stumped. any ideas why this might be happening?
Re: FCK giving errors on DOCTYPE line??
FCKConfig.CustomConfigurationsPath = '/' ;
removing the slash fixed it.