I don’t seem to be able to get kcfinder to work within CKEditor.
Here’s my config
I am using the plugin in the admin folder.
My images/News folder is in the public_html root as is the lists directory. I.E., they are beside each other.
/images/News /lists
When I try to Browse Server for images from within CKEditor I get a 403.
Wondering if my configuration is correct?
I know I can whitelist that particular rule, but before I do that I wanted to know if you’ve seen that error and have any ideas.
Thanks, this gives me a 404 when I select Browse Server.
define(‘UPLOADIMAGES_DIR’, ‘…/images’);
Path to KCFinder : plugins/CKEditorPlugin/kcfinder File system path to the upload image directory. Usually leave this empty. : images Name of the image subdirectory of the file upload directory : News Name of the files subdirectory of the file upload directory : files Name of the flash subdirectory of the file upload directory : flash
@jimlongo You don’t seem to have understood the guidance on the plugin’s documentation page and in config. file.
UPLOADIMAGES_DIR must be relative to the web root directory, so what do you mean by “…/images”?
Why have you entered a value for “File system path to the upload directory. Usually leave this empty”?
But a 404 error on clicking Browse Server probably means that you have moved the plugin files. The plugin usually works straightaway if you just accept the default settings. Have you moved the plugin files?
Your original problem seems to be caused by mod_security objecting to the directory navigation possibly due to you using “…/images”.
Yes I had tried that previously, and that is the way I have set it now.
I haven’t moved the plugins directory, and the CKEditor plugin does load.
The images directory is in the webroot (/public_html)
I get a 404 when I click “Browse Server”
Path to KCFinder : plugins/CKEditorPlugin/kcfinder File system path to the upload image directory. Usually leave this empty. :
PhpList is in /newslist
CKEditor (and kcfinder) loads from the /newslist/admin/plugins directory
I have /images and a have put a copy in /newslist/images (so have tried both in config).
I’m sorry if there’s any confusion it’s because I’ve tried every combination I could conceive.
This is the current setup Path to KCFinder : plugins/CKEditorPlugin/kcfinder File system path to the upload image directory. Usually leave this empty. :
That is the url that should be requested when you click the Browse Server button. If the 404 error is still happening then you need to find which url is being rejected from the web server logs.
Can you try that url directly when signed-in to phplist?
Possibly there are some other .htaccess files that disallow that url when signed-in to phplist, but I can’t really suggest where they might be.