Hi
A client has been using FCKeditor successfully on their site for a while, and we are now getting an error message when we click on the 'Browse Server' button top upload an image in the resources browser.
As far as we can tell nothing on the site has changed and this was working previously
The error is:
Forbidden
You don't have permission to access /fckeditor/editor/filemanager/browser/default/browser.html on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any help appreciated. I have tried unsuccessfully to search for answers to this one
Regards
Lindy
A client has been using FCKeditor successfully on their site for a while, and we are now getting an error message when we click on the 'Browse Server' button top upload an image in the resources browser.
As far as we can tell nothing on the site has changed and this was working previously
The error is:
Forbidden
You don't have permission to access /fckeditor/editor/filemanager/browser/default/browser.html on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any help appreciated. I have tried unsuccessfully to search for answers to this one
Regards
Lindy
Re: Browse Server Permissions error
I think it has something to do with the open_basedir parameter for php, and some of the setup, but I could not nail that down.
So what I did, was to edit fckeditor/fckconfig.js
I searched for the text FCKConfig.LinkBrowserURL
two lines before it I added >>
I changed the BasePath for the connector to BasePathXML for LinkBrowserURL, ImageBrowserURL and FlashBrowserURL
Example:
to
Re: Browse Server Permissions error - SOLVED?
First I uploaded the latest version, which is 2.6.3 at the time of my testing, I also left the default directory name of "fckeditor".
(I have subsequently tried this same fix with other versions and other directory names, and the results have been mixed)
After changing the code in "fckeditor/fckconfig.js" as you suggested, I still got the 403 - Forbidden, so I tried replacing both references to "FCKConfig.BasePath" with "FCKConfig.BasePathXML" which means it ended up looking like this:
I did the same for ImageBrowserURL and FlashBrowserURL.
I also changed the "FCKConfig.BasePath" to "FCKConfig.BasePathXML" for LinkUploadURL, ImageUploadURL, FlashUploadURL and SmileyPath.
This got rid of the 403 - Forbidden error, but gave the following error:
This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php" file
After some more research on the forums I found the way to fix this is to edit the following file - FCKeditor/editor/filemanager/connectors/php/config.php and change the value of "$Config['Enabled']" from "false" to "true" like this:
Obviously this second step will only work if you are using the PHP version.
It worked for me on my HostGator accounts, and I hope this helps anyone else with this most frustrating problem :)
Re: Browse Server Permissions error
I have the php connector turned on (set to "true").
And before I was getting the same error. When I added Brandish's code changes, I was able to see the "Server Directory" page, as it loaded, but then I would get an XML Request error, and it won't show my files and folders.
Now I'm getting an XML Request / Internal Server Error (500)
Any ideas? This is driving me nuts, and it was working on my old version of FCK.
Re: Browse Server Permissions error
FCKConfig.BasePathXML = '/fckeditor/editor/'; ?
You may have to do some php logging.
Re: Browse Server Permissions error