I followed the directions on the http://wiki.fckeditor.net/ to enable file browse but every time I click on the link in the Image Prop Windows I get this error:
Error Occurred While Processing Request
/fckeditor/editor/dialog/undefined
Sun, 01/15/2006 - 06:50
#1
RE: File Browse Problem With CF
ColdFusion is only responsible for retrieving the list of files in your userfiles directory.
And for uploading files and creating directories.
So if your filebrowser doesn't open, the problem is not ColdFusion related. If the files in your userfiles directory are displayed in the filebrowser, but you cannot select an file, the problem is not ColdFusion related.
Is your page available online, so I can have a look at it?
RE: File Browse Problem With CF
The page is not available online.
RE: File Browse Problem With CF
RE: File Browse Problem With CF
Where is the undefined variable being set are in this case not set?
RE: File Browse Problem With CF
If you have a custom config.js file, you need to make sure that you set this value to 'cfm'.
In the default fckconfig.js file you will find a comment right above where this variable is set.
Just search your sources for _QuickUploadLanguage
RE: File Browse Problem With CF
var _FileBrowserLanguage = 'cfm' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'cfm' ; // asp | aspx | cfm | lasso | php
// Don't care about the following line. It just calculates the correct connector
// extension to use for the default File Browser (Perl uses "cgi").
var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;
FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/cfm/connector.cfm' ;
FCKConfig.LinkBrowserWindowWidth = screen.width * 0.7 ; // 70%
FCKConfig.LinkBrowserWindowHeight = screen.height * 0.7 ; // 70%
FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/cfm/connector.cfm' ;
FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ;
FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ;
/// FCKConfig.LinkBrowser = true ;
/// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
/// FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70%
/// FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%
/// FCKConfig.ImageBrowser = true ;
/// FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
/// FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ;
/// FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ;
FCKConfig.FlashBrowser = true ;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ;
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ;
FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ;
FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all
FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ; // empty for no one
FCKConfig.ImageUpload = true ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$" ; // empty for all
FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one
RE: File Browse Problem With CF
Please verify that you have the latest version installed before you make people loose a lot of time trying to figure out your problems...
RE: File Browse Problem With CF
Has there been an update since then that I need to download?
RE: File Browse Problem With CF
After further investigation, it seems to me that there is a bug in the fckconfig.js file.
The variable FCKConfig.QuickUploadLanguage is used, but it's never set.
Can you try replacing all occurences in your fckconfig.js file of FCKConfig.QuickUploadLanguage with _QuickUploadLanguage and try again.
Let me know if this works!
RE: File Browse Problem With CF
Thanks for your help
RE: File Browse Problem With CF
I filed a bug report for this one:
https://sourceforge.net/tracker/index.p ... tid=543653
The bug report includes a corrected version of fckconfig.js
You are welcome.
RE: File Browse Problem With CF
I had been following this thread, but it didn't quite seem to solve the problem I was having. I am using the CFM connector and even though I have the following set in config.cfm:
config.enabled = true;
config.userFilesPath = "/UserFiles/";
I still end up with a blank screen when I attempt to view any files or folders created so far (with the version 2.0 of FCKEditor). In other words, the file browser comes up, but none of the files are viewable.
Any thoughts on what I may have missed?
Thanks,
Chris
RE: File Browse Problem With CF
After you installed that one, make sure that you modify the following lines in your fckconfig.js file:
var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | php
Change 'asp' to 'cfm'.
After that, set config.enabled = true; in your config.cfm file.
RE: File Browse Problem With CF
In my 2.2 fckconfig.js file, I have the following:
var _FileBrowserLanguage = 'cfm' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'cfm' ; // asp | aspx | cfm | lasso | php
I also did a globak replace of FCKConfig.QuickUploadLanguage with _QuickUploadLanguage in this file as well.
In my config.cfm file, I have the following set:
config.enabled = true;
config.userFilesPath = "/UserFiles/";
Even with all of this, the file browser doesn't display anything at all.
Any thoughts or ideas?
Thanks,
Chris
RE: File Browse Problem With CF
Please check that you're not overwriting the value somewhere.
To make sure you can set request.userFilesPath = "/UserFiles/"; in your Application.cfm.
RE: File Browse Problem With CF
I can understand why there is no application.cfm file included in the distribution, but I suggest that this tip be included in the documentation somewhere.
Thanks again for your help with this!
Chris
Re: File Browse Problem With CF