Hi guys,
I'm trying to configure the file browser and i believe i have something wrong with my paths because every time i open the file browser it displays an alert saying 'XML request error: Unknown (12152)'.
I'm not sure whats causing this but i think it has to do with my absolute paths. Can someone take a look at the code below and tell me if anything appears wrong.
global $Config ;
// 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'] = '/norwichtownpetresort/images/' ;
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = 'http://ctechnow.com/norwichtownpetresort/images/' ;
i do have the permissions set on the folder to 777 also.
Any help would be great.
Thanks,
Jamie.
Tue, 06/27/2006 - 07:41
#1
RE: XML Error with file browsing...
/usr/var/www/norwichtownpetresort/images/
RE: XML Error with file browsing...
RE: XML Error with file browsing...
RE: XML Error with file browsing...
1) Set the paths in this way:
$Config['UserFilesPath'] = '/UserFiles/' ;
$Config['UserFilesAbsolutePath'] = '/var/homeofyoursite/wwww/UserFiles/' ;
2)Now this is the trick, usually when you create the UserFiles folder and subfolders within, they are asociated to your ftp user, it means that if your ftp user(the one you use to upload your files to your webserver) is jhonDoe, then those folders will be asociated to jhonDoe user, but truth is that they should be asociated to the webuser, the webuser is anyone who goes to your webpage, is like the general user. That's whay when you try to upload you get the 'xml error' and other more; then the solution is to ask your host administrator to create those folder for you and make them to belong to the webuser group with the right permises i.e. 777
All of you guys have the same problems then spend hours and hours changing paths (they are important too )but the goal is to set the folders to belong to the webuser.
Hope this help anyone...
RE: XML Error with file browsing...
Just to be sure:
1) get a "fresh" download now. I recommend this for a PHP connector.
2) Create your own uploadable directories:
/home/.../public_html/yourpath/Image
/home/.../public_html/yourpath/File
/home/.../public_html/yourpath/Flash
/home/.../public_html/yourpath/Media
3) CHMOD 777 them yourself. Avoid letting FCKeditor create them for you. If FCKeditor has created them delete them and create and CHMOD them yourself.
Don't forget to chmod 777 /home/.../public_html/yourpath/ also!!!!!!!
4) Don't forget to configure BOTH:
FCKeditor/editor/filemanager/upload/php/config.php
and
FCKeditor/editor/filemanager/browser/default/connectors/php/config.php
5) Do this in BOTH:
$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/yourpath/' ;
$Config['UserFilesAbsolutePath'] = '/home/.../public_html/yourpath/' ;
6) Do not forget this in fckconfig.js
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
Or it will NEVER work
7) God help you if your server is run in safe mode!
8) Use this file to test your uploading:
FCKeditor/editor/filemanager/upload/test.html
JOhn
RE: XML Error with file browsing...
holy.... XML extension was disabled on my server....
now everything works fine
RE: XML Error with file browsing...
very interesting, but I have quite different problem. I can upload my files (upload connector works fine), but browser connector unable to do anything, just . all variables are set correctly, I sure.
look:
http://wizzart-ds.com/editors/FCKeditor ... /test.html
complet einstallation is here: http://wizzart-ds.com/editors/
RE: XML Error with file browsing...
Sure you have chmod 777 on your folders?
// 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'] = '/example5/' ;
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '/home/jtjohnston/domains/jtjohnston.net/public_html/example5/' ;