Hi I hope someone can help me,
I am using FCKeditor 2.4.3 for Dragonfly CMS.
I have configured it to use the php connector for both the browser and quickupload.
The editor loads and I can use it but when I click the "Insert/Edit Image" button and then click the "browse server" button it opens the file browser window but then I get the following error.
XML request error: Not found (404) http://xxxxxx.xx.xx/df/includes/wysiwyg/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F
It does not seem to matter how I configure $Config['UserFilesPath'] or $Config['UserFilesAbsolutePath']
It looks like it's not parsing the "/" correctly and turning into %2F.
The test.html does the same, regardless of what I input as the current folder or what link I click "Get Folders", "Get Folders and Files", "Create Folder" or "File Upload"
Could anyone help in resolving this issue.
many thanks in advance.
Andre
Re: Browse server returns XML request error: Not found (404)
Re: Browse server returns XML request error: Not found (404)
Thank you for the reply, I have looked at the log files and nothing really helps, here is an example of a logfile entry from when clicking the "Browse Server" button.
As you can see the GET string has the %2F on the end of it.
And this is using the test.html trying to create a folder called TESTTESTTEST.
On both case I am using the PHP connector.
On the test.html the current folder is a /
The nn.nn.nn.nn is my ip address and the xxxxxxxxx.xx.xx is my domain name in the above.
Do I need the "upload_tmp_dir" set for this to work I seem to have read that somewhere, if that is the case then I can't use FCKeditor as it has been set to "no value" and the server host will not enable it.
I have used other programs in Dragonfly that upload to the server OK, and also another editor that also worked for browsing and getting images but FCKeditor seems much more to my and user liking. The editor works fine, it's just the browsing (so can't download) and uploading that I can't seem to get right.
Any ideas ?
Re: Browse server returns XML request error: Not found (404)
That is supposed to be there. %2F is URL-encoded / character, which is passed as a query string into connector.php. This is why it is URL encoded.
The problem, however, is not that connector.php cannot find the file, but instead that the web server cannot find connector.php itself. That is, if you take this path
/df/includes/wysiwyg/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php
and append it to webroot (see your web server configuration for this), the path will be invalid. This is what you need to fix.
Re: Browse server returns XML request error: Not found (404)
Thanks for the reply again, but that is the correct path, I have checked this many times.

This is my full path and that is where connector.php resides
/kunden/homepages/28/d80068194/htdocs/justfloyd/df/includes/wysiwyg/fckeditor/editor/filemanager/browser
/default/connectors/php/connector.php
The above is all on one line for some reason when entered as one line it chops part of it off
Here is a picture from my FTP program showing the path to connector.php
The DOCUMENT_ROOT = /kunden/homepages/28/d80068194/htdocs/justfloyd
I have also just downloaded the latest version and that worked straight off with out any problem, but not sure how to intergrate that into DragonflyCMS.
Re: Browse server returns XML request error: Not found (404)
/df/includes/wysiwyg/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php
in the URL in a browser? Also, can you create a text file in the same directory where connector.php is and request it as well?
Re: Browse server returns XML request error: Not found (404)
If I use the above in my URL it does not find it, obviously with http:// and my domain name in front
But I have created a testdoc.txt file and same directory and it does find it.
/df/includes/wysiwyg/fckeditor/editor/filemanager/browser/default/connectors/php/testdoc.txt
Very strange, I might delete the whole lot and upload it again and see what happens.
Re: Browse server returns XML request error: Not found (404)
Re: Browse server returns XML request error: Not found (404)
Did that and yep you are right it is not getting executed, even if i call it directly.
Created a test.php file in same folder and it cannot find that either but it is finding the testdoc.txt file in there.
This is very weird.
Could it have something to do with something in an .htaccess file ?
Re: Browse server returns XML request error: Not found (404)
Found some deny .php and have commented them out and the test.html works now, but when I try it within Dragonfly it thinks I am using the ASP connector. LOL and I get a (200) error returned. Yes I have set the config correctly. LOL
Image Properties not showing file.
Well I have got it working.

I deleted everthing and uploaded again.
Set all config options.
Done the test, all worked OK.
... Except that when it returns from the selection of the file the "Image Properties" does not display the image as can be seen from picture below.
If I was to press the "OK" button the image does not appear in my editor just the red cross.
If I put the http and domain in front of the URL it is OK.
I have seen this on another post somewhere but he has not had a reply either.
Re: Browse server returns XML request error: Not found (404)
Re: Browse server returns XML request error: Not found (404)
I have solved this for now (well sort of) by using a full URL to the "userfiles" directory in the $Config['UserFilesPath']
and a full absolute path to the same directory in $Config['UserFilesAbsolutePath']
That will do for now, need sleep.
Thank you very much A.M. for all of you help it is most appreciated.
André