I tried and tried reading messages in here but I couldn't find something that would appear to help my delema. If anyone could help me out here I'd be stoked!
I downloaded the FCKeditor zip and put in on my LINUX server. The sample JS and PHP pages seem to work from the start.
I configured the /FCKeditor/editor/filemanager/upload/php/config.php file as follows:
// SECURITY: You must explicitelly enable this "uploader".
$Config['Enabled'] = true ;
// Path to uploaded files relative to the document root.
$Config['UserFilesPath'] = '/images/fck/' ;
I made a directory on my server call http://www.mysite.com/images/fck. In it I made the folders Image / File / Media /Flash. All of these have permissions set to 777.
When I use the /FCKeditor/editor/filemanager/upload/test.html and select PHP upload I get no errors and the image shows up just fine in my http://www.mysite.com/images/fck folder.
I also configured the /FCKeditor/editor/filemanager/browser/default/connectors/php/config.php file as follows:
// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = true ;
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/images/fck/' ;
And I changed the permissions on all the .pl files in /FCKeditor/editor/filemanager/browser/default/connectors/perl/ to 755 as well as I made the security change in the connector.cgi file to allow it to work.
When I use the /FCKeditor/editor/filemanager/browser/default/connectors/test.html
I can partially get it to work. Uploading and making folders using the perl option works great on my server. All files are uploaded and folders created on my server with no problems using perl.
When I try using the PHP option I get this error when uploading a file: Warning: move_uploaded(): open_basedir restriction in effect. File (myfile.jpg) is not within the allowed path(s): …… /connectors/php/commands.php on line 186 (I abbreviated the message).
Also when trying to “get folders” in php I get:
<?xml version="1.0" encoding="utf-8" ?>
- <Connector command="GetFolders" resourceType="File">
<CurrentFolder path="/" url="/images/fck/File/" />
- <Folders>
<Folder name="test" />
</Folders>
</Connector>
And in Perl I get:
<?xml version="1.0" encoding="utf-8" ?>
- <Connector command="GetFolders" resourceType="File">
<CurrentFolder path="/" url="/UserFiles/File/" />
<Folders />
</Connector>
Ok enough background.
My problem is that I can’t get the file browser or the file uploads to work with the _sample/ pages. The browser screen loads with a JavaScript error. The details show the error:
Line: 120
Char: 2
Error: Object Required
Code: 0
URL: …/browser/default/frmresourcelist.html
And when I try to upload files, it just doesn’t seem to work. It lags with no confirmation.
Can someone please help me to get this to work. I would be very very thankful for any help I can get.
All the best to you all!
Wes
Any suggestions?
RE: I'm stuck! I need help! File Browser Problems
RE: I'm stuck! I need help! File Browser Prob
Did you change this ('php') in fckconfig.js?
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
'asp' is the default.
See: https://sourceforge.net/forum/forum.php ... _id=257180
RE: I'm stuck! I need help! File Browser Problems