Apology for maybe crossposting. I posted this in the forum on June 18, but not as an 'Issue'.
http://drupal.org/node/272003
No responses till now.
Original text:
hi,
Installed the FCKeditor in connection with IMCE.
So far so good.
It worked!
Now-rather suddenly users can't upload pictures any more, getting the error message
this file uploader is disabled. Please check the "editor/filemanager/connectors/php/config.php" file
I have the newest version of the FCKeditor, and all installed modules are up to date.
When I look at the file structure, I see directory sites/default/users has owner Apache, and permission is set to 775.
Users that already are in that directory (yes, it worked before) have directories also owner Apache, permission set to 775.
Please help - users (also existing) are not able any more to upload their pictures.
Thanks a loT :-)
Comments
Comment #1
wwalc commentedEdito your FCKeditor profile, under "File browser settings" set "IMCE integration" to true.
Comment #2
ep_nl commentedthanks for your help wwalc! :)
Alas that was not the problem.
It seems one has to edit the file
sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php every time one loads a new version of the editor.
That done, there is still a problem though.
The editor tells me it uploaded a file, bur no file exists in the mentioned directory: nothing is uploaded.
When I look at the directory myself, I can see on the date/time that 'something' has happened - but the directory itself is empty.
Comment #3
wwalc commentedOk, let me try again to help you ;) how about:
http://drupal.fckeditor.net/troubleshooting#9
Comment #4
ep_nl commentedthanks again wwalc! :)
well, alas ..
the point is that fckedit SAYS the file is uploaded - but then it does show only a broken link, and when I use the DirectAdmin panel (supplied by my hosting provider), I can see no uploaded file at all. Not in any root directory or anywhere.
Well, in the meantime I found out that there is at least a workaround. One is able to upload a file through the IMCE panel. For users it might be a bit awkward and not so intuitive, but it works.
The bloody thing works fine on my local server (WAMP). I can't find till now any differences. Grr! ;)
Comment #5
digitalruin commentedI figured out what the problem is. I too had the same issue as your original problem after upgrading from 2.6 to 2.6.2 and was able to track it down. I'm not sure how this line got added (whether it was included with fckeditor, or the drupal module did it), but my original working copy had this in fckeditor/fckeditor/editor/filemanager/connectors/php/config.php
$Config['UserFilesAbsolutePath'] = '' ;
require_once "../../../../../filemanager.config.php";
Since I replaced the core fckeditor component with 2.6.2, I have this:
$Config['UserFilesAbsolutePath'] = '' ;
My guess is that you need the require_once to allow allow the drupal module to let the fckeditor actions through. Whether or not the module added that, or it's supposed to be included with fckeditor, I have no idea. It worked great once I added the line back in.
Hope that helps, I'm using 6.x-1.3-beta with 6.2 and FCKeditor 2.6.2
wwalc hopefully knows what is going on. ;)
Comment #6
ep_nl commentedhello digitalruin,
thanks for your attention and advice. :-)
However, I have a different problem. Uploading a file doesn't work although Fckedit says it went OK.
I worked a bit on this, and made some screenshots to explain.
Please have a look at
http://bertieprinsen.nl/content/83-fckedit-problem
Fckeditor sends a file to
/sites/default/files/users/chaps.jpg
where it should go to
/sites/default/files/users/Bertie/chaps.jpg
There is a discrepancy in the 'upload' tab and the 'browse the server' button.
Yes, that IS what wwalc tried to say, I can see that now. (blush)
In IMCE (module properties settings) I set the Directory path to
sites/default/files/
php: return 'users/'.$user->name;
so every user has his/her own user directory.
In the file
fckeditor/fckeditor/editor/filemanager/connectors/php/config.php
I set the line
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/users/' ;
Should I make this line analogue to the IMCE directory path? Somsthing like
$Config['UserFilesPath'] = '/users/php: return 'users/'.$user->name;' ;
Any help very much appreciated!
Comment #7
Jorrit commentedYou have the $user object as your disposal when the said line is included in your config.php, so it should work.
Comment #8
ep_nl commentedThanks Jorrit.
I hadn't have a look at the config.php.
I'm sure it works now.
Thansk a lot! :-)
Comment #9
Jorrit commentedComment #10
wwalc commented@ep_nl
In fckeditor.module there is already one wildcard: %u that is translated to $user->uid.
You can add another one, %n for example that will match $user->name variable.
Adding it to #277657: TODO list for 6.x-2.x and 5.x-3.x.
Comment #11
wwalc commentedComment #12
Jorrit commentedMarking this as active until %n is implemented
Comment #13
Jorrit commentedFixed in CVS
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #15
andrew.eatherington@gmail.com commentedJust had this same issue when upgrading
require_once "../../../../../filemanager.config.php";
underneath
$Config['UserFilesAbsolutePath'] = '' ;
sorted the problem - thanks