I have the CKeditor and CKfinder installed on the server and everything seems to be working but I have tried everything for the $baseURL file location. I don't want to use the standard /ckfinder/userfiles/ directory but my own images folder on the site.
I have used:
public_html/sitename/images
usr/local/apache/htdocs/public_html/sitename/images
sitename/images
but every time I change the folder name, it shows that the folder is empty. am I missing a security configuration that I need to update or is this something on the server? The images folder has full rights for all users (Linux 777).
Can anyone help me? I have spent hours searching the Internet and trying different things but everything brings me back to the /ckfinder/userfiles/ folder... I have even tried that folder as well and it still doesn't show me any images in the folder.
Frustrated as this is my 10th online editor that I am trying to use that my clients can browse for images instead of putting the exact URL in a line.
I have used:
public_html/sitename/images
usr/local/apache/htdocs/public_html/sitename/images
sitename/images
but every time I change the folder name, it shows that the folder is empty. am I missing a security configuration that I need to update or is this something on the server? The images folder has full rights for all users (Linux 777).
Can anyone help me? I have spent hours searching the Internet and trying different things but everything brings me back to the /ckfinder/userfiles/ folder... I have even tried that folder as well and it still doesn't show me any images in the folder.
Frustrated as this is my 10th online editor that I am trying to use that my clients can browse for images instead of putting the exact URL in a line.
Re: Changing the file Path for Images
Hi chellert,
The $baseUrl is the path that you would type in your browser after your domain name.
So if
HTTP://www.sitename.com/images
would be the correct path, you want to set your $baseUrl to:
"/images/"
You need to include the leading and trailing slashes.
The $baseDir is the internal path on the server, probably the following based on what you typed:
"usr/local/apache/htdocs/public_html/sitename/images"
This one also needs the leading and trailing slashes:
"/usr/local/apache/htdocs/public_html/sitename/images/"
Be Well,
Joe
Re: Changing the file Path for Images
I am noticing these lines
'url' => $baseUrl . '_thumbs',
'directory' => $baseDir . '_thumbs',
I thought I read somewhere that something on the server has to be enabled to view thumbnails - will this cause it not to find the folder? What do I need to enable on the server for this?
Re: Changing the file Path for Images
I would suggest that you put a a clean unchanged version of the ckfinder install on your server and get the basic functionality working before you do anything else.
You said in your original post that the default " /ckfinder/userfiles/ " folder isn't working, did you ever have the basic install working?
Be Well,
Joe
Re: Changing the file Path for Images
No the basic install didn't work either, I put images in the userfiles folder and it couldn't find any.
Going through the documentation this popped up "GD extension enabled (default on most installations) for thumbnails support. Thumbnails are automatically disabled if this extension is missing."
would this cause the Browse Server not to find the folder with images? Or does this just make the images smaller?
Re: Changing the file Path for Images
The GD extension is needed for image manipulation, but not to upload and browse files.
What exactly happens?
You open a page with an instance of CKeditor and click on the image button in the toolbar.
The image dialog box appears.
You click the "Browse Server" button.
A pop up window opens.
A folder (or a few folders) should appear on the left (do you see any?).
Click on a folder and any images in that folder are displayed in the content area to the right.
(With a fresh install, there won't be any images)
Now you try to upload an image:
Click "Upload" in the toolbar above the content area and a field for browsing your computer appears.
Click "Browse" the folder explorer for your computer opens.
You click on an image and and click the "Open" button.
The path to the local image now appears in the field next to the "Browse" button.
You click "Upload Selected File".
The file is uploaded to the server and appears in the content area.
You double click on the image and the pop up window closes.
The image appears in the preview area of the image dialog window.
You click "OK" and the image is inserted into the content area of the editor.
How far along this process are you able to go?
I know you said that you copied files to the folder on the server.
But have you tried uploading a file to the server with CKFinder?
Joe
Re: Changing the file Path for Images
I did a fresh install and tried to browse the server and upload an image and received this error:
500 Internal Server Error
The request was not completed. The server met an unexpected condition.
../../editor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images&CKEditor=CKEditor1&CKEditorFuncNum=2&langCode=en-ca (port 80)
I have all of the folders in the ckfinder and ckeditor full read and write access.
Re: Changing the file Path for Images
I'm not sure what the problem might be.
Could you paste the contents of your CKFinder config file (just replace any sensitive info with a placeholder name).
Also paste the code used in your page to load the editor (and CKFinder, if called in the page).
How are you telling CKEditor that it should use CKFinder? Please include that code too.
Be Well,
Joe
Re: Changing the file Path for Images
codewaggle precisely described the potential source of the reported problem (thanks!).
If you're still having problems, simply PM me your configuration file.
Alternatively, paste it here on the forum, but first please remove / change a bit any sensitive information there. Remember to not remove paths (just change some letters maybe), because that's the most critical thing here.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+