Closed (fixed)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
6.x-1.3-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2008 at 03:19 UTC
Updated:
29 Oct 2008 at 09:51 UTC
I hate to sound like an idiot - i have actually spent well over 3 hours trying to configure FCKeditor! All I want is to enable file browsing. I followed the instructions, cleared cache, still nothing.
I keep getting errors: "This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php"!
Nothing in the log files.
Changed the fckeditor.config.js
Added to php/config.php: require_once "../../../../../filemanager.config.php";
set $cookie_domain
Anything else???
Comments
Comment #1
wwalc commentedEdit your profile, scroll down to the "File browser settings", set "Allow advanced file management" and "Allow basic file management" to true.
After setting the $cookie_domain, remember to logout and login again (you may need to close your browser).
Comment #2
wwalc commentedComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
jeffpurtle commentedI tried all the things from the readme files included with fckeditor. I appear to have everything working except for the file browser. It doesn't even appear. I can only enter URLs to upload a picture.
I have looked inside the config.php file and can't find the area refered to in response #1 above. I have scrolled down and can't find anything like that. Is there some code I need to add to enable the file browser and upload button?
Comment #5
wwalc commented@jeff_purtle: Edit your profile, scroll down to the "File browser settings", set "Allow advanced file management" and "Allow basic file management" to true, remember also to assign "allow fckeditor file uploads" permission.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
Jacobtv commentedVery sorry, but I am going to have to open this one up again.
I can't find what is suggested. Where exactly do I find the File Browser Settings?
I am using FCKeditor with IMCE, and have done everything according to the readme.txt, but I am still getting the same error mentioned in the original post.
Comment #8
Jorrit commentedFile browser settings is a fieldset in the edit profile screen. In this fieldset, you'll find a setting called "File browser type". Set it to IMCE or built-in. The "allow quick uploads" determines whether the quick uploads tab is activated.
Comment #9
Jacobtv commentedSo there is no "Allow advanced file management" and "Allow basic file management" settings?
Is there then another solution to the initial problem, than that suggested by wwalc?
Comment #10
Jacobtv commentedBump... Kind of urgent problem:-)
Comment #11
Jorrit commentedThose settings are replaced by the settings you see at the moment. Are your permissions setup correctly? Could you post your config.php?
Comment #12
Jacobtv commentedThese are my config settings
I have also set the cookie_domain to my domain without the quotes.
Comment #13
Jacobtv commentedBy the way... Does it make any difference, that my drupal installation is in a subfolder respective to the root?
Comment #14
Jorrit commentedTry putting
after
Comment #15
Jacobtv commentedNope still no change....
My config.php now looks like this:
Comment #16
wwalc commentedJust to recheck: did you assign "allow fckeditor file uploads" permission?
Comment #17
Jacobtv commentedYep.
Comment #18
wwalc commentedHummm... let's see if we can debug it somehow. What's your exact cookie_domain setting?
I hope you like Firefox ;). Install Data Tamper extension (or Live Headers) or anything that will let you inspect HTTP headers.
Click "Browse" button in FCKeditor, find URL similar to:
http://example.com/drupal6/sites/all/modules/fckeditor/fckeditor/editor/...
Open it in the new tab. Now you should be able to debug this.
Add a
after
$authenticated = user_access("allow fckeditor file uploads");
and
before
if (!isset($bootstrapFileFound) || $bootstrapFileFound) {
now reload the link that you have found at the beginning and check if FCKeditor found at least the bootstrap file.
Do the above only if you're the only person with access permission to the file browser.
Comment #19
-Anti- commented> By the way... Does it make any difference, that my drupal installation is
> in a subfolder respective to the root?
JFYI, I set-up fckEditor with IMCE last night with no problems.
I didn't need to edit anything (except for adding my own toolbar and some additional custom css).
However, I used a subdomain, rather than a subfolder.
Comment #20
wwalc commentedYeah, the debugging instrsuctions were for the built-in file browser.
To enable IMCE no further file manipulations are required.
What version of IMCE module are you using? In older version you may need to check "Enable FCKEditor support".
Comment #21
Jacobtv commentedMy cookie_domain setting is: $cookie_domain = fnks.org;
I am using the most recent update of IMCE. Version 6.x-1.1
I am not using the built in filebrowser, but just to make sure, I used the built-in filebrowser, and the problem persisted.
Comment #22
-Anti- commented> I used the built-in filebrowser, and the problem persisted.
How did you upload fckEditor (not the module itself, but the actual 3rd party editor)? When unpacked, there are a hell of a lot of small files; one or two could have easily been corrupted during transit. I tried first to upload it uncompressed using my ftp client and it failed. So I uploaded it zipped, and then unpacked it on the server using my cpanel-11 backend.
I would get fckeditor working first without choosing the IMCE option. Then once it is ok, change the browsing option. Further, I'd test it in Firefox until you get it working, then try the others (IE6, IE7, Opera, Safari) just to minimise the chance of browser incompatibility bugs.
Also, be aware that after specifying IMCE as the file browser, the image button still actually opens the built-in interface. IMCE is not opened until you click 'browse server'. The path to the image/file from IMCE is then sent back to the built-in interface, not directly to the textarea.
Comment #23
Jacobtv commentedOkay...
Now I tried disabling the IMCE functionality.
I uploaded the actual editor again as a zip file, and extracted it via my cPanel.
Still I get the same error. It's getting more and more wierd. Seems like there is some simple but very vital thing I am missing.
Comment #24
-Anti- commentedHave you got quick-upload enabled?
I never turned it on because I read all the bug reports about it before installing the module.
If you enabled it, try switching it off.
Comment #25
Jacobtv commentedDidn't work. And the upload option disappears from my "insert picture"-pop up.
Comment #26
Jacobtv commentedCould there be anything in my php.ini file I need to pay attention to?
I also looked at my connector.php, and I stumpled upon this line:
Is that of any relevance, since that is the message that I am getting?
Since my drupal installation is in a subfolder, I changed my cookie_domain settings to include that subfolder, but still no change.
Comment #27
wwalc commentedThe only thing I can suggest is to take a deep breath and start installing it again.
Uninstall IMCE and FCKeditor module (not just disable, but first write down somewhere any configuration settings that you want to remember), download the latest versions of both modules, upload them and just follow the instruction.
Remember that you want to enable IMCE, not the built-in file browser (skip section "How to enable the file browser" and just go to "File browser settings" in FCKeditor profile and select IMCE).
Comment #28
Jacobtv commentedThat did it!
Cancelled the Quick Upload option, so I am only using IMCE now, and it works fine.
I am not sure what advantages there are to IMCE as opposed to the built-in file browser? Somehow I think the built-in is the most user friendly...
Anyways thank you for your help. I don't know if this post should stay open sice the original problem was with the built-in file browser?
My problem is solved anyway.
Comment #29
-Anti- commented> I am not sure what advantages there are to IMCE as opposed to the built-in file browser?
> Somehow I think the built-in is the most user friendly...
Yes, the built-in is more simple. But IMCE allows each user to automatically have their own
'private' folder with limits to their upload space and file-types, based on their role. It also plugs
into an image cck field (by using another module). Further, your users can create thumbnails
according to your pre-sets, and you can set a max resolution for images and/or file-sizes.
Comment #30
Jorrit commentedPlus you can delete files as well.
Comment #31
garciaae commentedTry to rename /sites/default/files/.htaccess to /sites/default/files/.htaccessOLD.
It seems that IIS settings doesn't work properly with Drupal.
This worked for me.
Comment #32
jamesczar commentedWe were experiencing a similar issue - perhaps the same?
Basic FCKEditor installed, no ICME.
Any image uploaded via the regular browser would use the /sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php to determine automatic subfolders (ie image) for each file type.
HOWEVER, anything uploaded via quick upload was using the base path settings, but not applying the subfolder file type check. So we changed the following:
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
to
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] . 'image/' ;
This allows the file type check to work for QuickUpload as well, and thus use the same subdirectory for Quick Upload as well as File Browser Upload.
For some reason the Quick Upload file path settings in the FCKEditor Admin settings are completely ignored.
THUS, you should make this setting for all the Quick Upload configs in this file.
$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] . 'file/' ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] . 'file/' ;
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] . 'image/' ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] . 'image/' ;
$Config['QuickUploadPath']['Flash'] = $Config['UserFilesPath'] . 'flash/' ;
$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] . 'flash/' ;
$Config['QuickUploadPath']['Media'] = $Config['UserFilesPath'] . 'media/' ;
$Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] . 'media/' ;
We tested this with the Flash Quick Uploader, and it works like a charm!
Hope this helps. Took us 2 hours to figure this one out!
Comment #33
wwalc commented@jamesczar: http://drupal.fckeditor.net/troubleshooting#9
Those (not intuitive) default values will be probably changed in CKEditor 3.x, it would cause too much problems during upgrades if it was changed in 2.x.
Comment #34
wwalc commentedbtw. Jacobtv problem is solved so closing this ticket.
Comment #35
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.