I am attempting to use FCKEditor 2.0 RC2 on CFMX 6.1 w/ Win2K3. Everything works fine until I load the resource browser via the browse button in the image properties dialog. When the resource browser loads, I get a javascript pop-up saying:
XML request error: Internal Server Error (500).
I have made the following changes to the fckconfig.js file with the following lines:
// Link Browsing
FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/cfm/connector.cfm" ;
// Image Browsing
FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/cfm/connector.cfm" ;
These changes are the only suggested answers I have found and they are not solving the problem. Does anybody have any other suggestions as to why this is not working right?
Thanks
-- Jeff
XML request error: Internal Server Error (500).
I have made the following changes to the fckconfig.js file with the following lines:
// Link Browsing
FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/cfm/connector.cfm" ;
// Image Browsing
FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/cfm/connector.cfm" ;
These changes are the only suggested answers I have found and they are not solving the problem. Does anybody have any other suggestions as to why this is not working right?
Thanks
-- Jeff
RE: FCK 2.0 RC2 / CFMX / XML 500 Error
Any comments gratefully received
RE: FCK 2.0 RC2 / CFMX / XML 500 Error
Ah ha! Solved it
In the file
editor/filemanager/browser/default/connectors/cfm/connector.cfm
file, I removed the check for the APPLICATION scope variable. This was causing an issue because there is no APPLICATION scope being set up inside the fckeditor directory. It was trowing the XML error merely as a by-product of CF throwing the scope exception error, if that makes any sense...
So the relevant code now looks like this:
<cfif isDefined('SERVER.userFilesPath')>
<cflock scope="SERVER" type="readonly" timeout="3">
<cfset sUserFilesURL = SERVER.userFilesPath>
</cflock>
<cfelse>
<!--- :: then use default :: --->
<cfset sUserFilesURL = "/UserFiles/">
</cfif>
Hope this helps
RE: FCK 2.0 RC2 / CFMX / XML 500 Error
Although, I guess that whacking a Application.cfm file with a relevant <cfapplication> tag in the root of the fckeditor directory would solve the problem differently
But even if you do that I doubt you'll be able to pass APPLICATION scoped variables between your current application and the WYSIWYG tool, as FCKEdit's Application scope will override yours...