Log in or register to post comments
Last post
Error: The Server didn't send back a proper XML response
Hello friends,

I am using FCK editor for my e-mail client application developing using Jakarta Struts. I am getting following error when i'm trying to upload a image to the server. Its giving the error

Error: The server didn't send back a proper XML response. Please contact your system administrator and its giving one url \jakarta-tomcat-5.0.28\webapps\MyApplication\fckeditor\editor\filemanager\upload\asp\connector.asp?Command=....

I dont have any idea on this and even i dont know asp.

I want one more information about fonts. I want widows defined fonts available to my editor how can i go about doing this in this ??

thanks

with regards,
Subramanya
Re: Error: The Server didn't send back a proper XML response
subramanya_mr wrote:Hello friends,

I am using FCK editor for my e-mail client application developing using Jakarta Struts. I am getting following error when i'm trying to upload a image to the server. Its giving the error

Error: The server didn't send back a proper XML response. Please contact your system administrator and its giving one url \jakarta-tomcat-5.0.28\webapps\MyApplication\fckeditor\editor\filemanager\upload\asp\connector.asp?Command=....

I dont have any idea on this and even i dont know asp.

I want one more information about fonts. I want widows defined fonts available to my editor how can i go about doing this in this ??

thanks

with regards,
Subramanya


I met a similar problem with this tool as well, and I figured out the problem on my system and fixed it.
There are two steps to make the problem gone, hope it'll be helpful to you..

Root cause on my system:
Since I installed my web page server on WinXP, it couldn't support ASP anyhow(Which needs IIS server
that WinXP doesn't support). Therefore, the call to "connector.asp" will make the web page fail.

Solution:(Suppose the target server uses php as its web page language)
1. In ..fckeditor\fckconfig.js
Modify var _FileBrowserLanguage = 'asp' to var _FileBrowserLanguage = 'php' and
var _QuickUploadLanguage = 'asp' to var _QuickUploadLanguage = 'php'
2. In ..fckeditor\editor\filemanager\browser\default\connectors\php\config.php
Modify "$Config['Enabled'] = false ;" to "$Config['Enabled'] = true ;"

Note:
1. The version of fckeditor on my server is Version 2.0.
2. The two steps satisfied my condition well enough, but you may have to modify config.php under
..fckeditor\editor\filemanager\upload\php\ to enable the php config for uploading as well.
3. The font issue is beyond my knowledge.
Re: Error: The Server didn't send back a proper XML response
I has that problem also

modyfications

1. In ..fckeditor\fckconfig.js
Modify var _FileBrowserLanguage = 'asp' to var _FileBrowserLanguage = 'php' and
var _QuickUploadLanguage = 'asp' to var _QuickUploadLanguage = 'php'
2. In ..fckeditor\editor\filemanager\browser\default\connectors\php\config.php
Modify "$Config['Enabled'] = false ;" to "$Config['Enabled'] = true ;"


not help, I still has

The server didn't send back a proper XML response. Please contact your system administrator.

XML request error: OK (200)

Requested URL:
/~[username]/fckeditor/editor/filemanager/connectors/php/connector.php?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1209724347925
Re: Error: The Server didn't send back a proper XML response
blueactive,

stay tight. A brand new Java intergration pack is comming really soon.
Re: Error: The Server didn't send back a proper XML response
blueactive wrote: I still has

The server didn't send back a proper XML response. Please contact your system administrator.

XML request error: OK (200)

Requested URL:
/~[username]/fckeditor/editor/filemanager/connectors/php/connector.php?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1209724347925


I had similar problems, if the webserver didn't send the correct header (content-type) for xml.

Hope that helps,
regards
Thilo
Re: Error: The Server didn't send back a proper XML response
I'm having this problem, also... and I'm using ASP.NET. I can't figure out how to correct this. This and another problem ("Invalid File Type" errors for files that are enabled as being allowed) are stopping me from rolling out v2.6. And nobody's seen or heard of any updates coming to correct these issues all the way around. Or have they?
Re: Error: The Server didn't send back a proper XML response
I'm facing the same problem while I'm trying locally with asp.net website.I think we should change the type in config.js file to aspx and change the C# code to set the two settings mentioned above(ConfigEnabled and FilePath) But I don't know how? Because I don't know How I'm still trying using config.asp.My website already online hope that we find a solution soon before my customer ask me why can't the user upload from his PC? :(
Re: Error: The Server didn't send back a proper XML response
i faced the same problem once:
    FCKeditor 2.6.2
    FCKeditor.Java
    Java && JSP(spring || struts || just servlet) && Tomcat && Linux


my application is going to use quite a lot of javascript for fancy stuffs, so I thought it would be smart to create a dedicated folder for all the javascript, i name it "js" and place it under my web folder, then i put fckeditor in it, and now the web folder looks like this:
web-folder
    js
      fancy-stuff1
      fancy-stuff1
      fckeditor (yo, i'm here)

    css
    WEB-INF
      classes
      lib (FCKeditor.Java is here)


according to the configuration setting guide, i should have a fckeditor.properties in classpath, i should also have something like these (fckeditor.toolbarSet=Basic and connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl) in the file, so i put it in as well.

then i found more properties for FCKeditor and Connector configurations. i'm happy, so now i thought i would have no worry about my fckeditor path, so i have this in fckeditor.properties:
    fckeditor.basePath=/js/fckeditor

and because i dont like the name "userfiles", so i have this as well:
    connector.userFilesPath=/hahaha


then this is how i got into the "The Server didn't send back a proper XML response" problem as all of you were, or are still facing.

the solution? simple:
as far as the connector is concerned, i can configure any path for connector.userFilesPath, even with value like /hahaha/hahaha/hahaha, but i just cant configure fckeditor.basePath to anything except /fckeditor. of course, i will now have to move fckeditor folder out of my js folder.

it took me a while to find out this solution, but i dont know the reason and cause behind it, or maybe i dont want to.
thanks for having patient on reading my post here. i hope this is helpful.
Re: Error: The Server didn't send back a proper XML response
Ironhiller,

you must be doing something wrong. You should recheck your setting. I just tried to set fckeditor.basePath=/js/fckeditor. IT works perfectly. Check out the attachment. Deploy in your tomcat, run the app. Dissect and check it out. See the magic. Setting a custom basepath works.
Re: Error: The Server didn't send back a proper XML response
mosipov wrote:Ironhiller,

you must be doing something wrong. You should recheck your setting. I just tried to set fckeditor.basePath=/js/fckeditor. IT works perfectly. Check out the attachment. Deploy in your tomcat, run the app. Dissect and check it out. See the magic. Setting a custom basepath works.


hi michael,

i've checked your attachment, and i think i know what you mean, but i think you may misread my post, or my post was obscure.

what my situation was:
i can set fckeditor.basePath to any path so long as i dont want to take use of Connector, but when i need Connector to upload files like images or html, and i configure connector.userFilesPath with any path, it just wont work if fckeditor.basePath is any path but /fckeditor (also known as the default path fckeditor will take).
hence, connector.userFilesPath will only work iff fckeditor.basePath=/fckeditor

that was how i got into the described problem, and figured it out later on and avoid it.

hope it clarifies something. thank you, michael, for the reply.
Re: Error: The Server didn't send back a proper XML response
Ok, your post was really misleading. I will check that.
I found the problem: You missed to read the documenation completely. Quoting from http://java.fckeditor.net/connector.html
Assuming you installed the editor in the /fckeditor folder in your webapp.

This means you have to adapt the servlet mapping to
<url-pattern>
    /js/fckeditor/editor/filemanager/connectors/*
</url-pattern>


That did the trick.
Re: Error: The Server didn't send back a proper XML response
Hi everybody,
I had the same problem with FCKeditor.Net.
After some survey about it I found that the problem was caused from the .net Themes.

The solution is:
Remove
<pages theme="Default">
from web.config and put it at avery page you need to use it
<%@ Page Language="VB" MasterPageFile="~/Site.master" CodeFile="Default.aspx.vb" Inherits="_Default" Theme="Default" title="MYweb.gr" %>



I hope it helps
Re: Error: The Server didn't send back a proper XML response
i get it into asp it make the same errorhttp://www.vietnamfuntravel.com i try change it as these guide but it can't to run
please show me how to configure it

thanks and regard vanhai
Re: Error: The Server didn't send back a proper XML response
th-schwarz wrote:
blueactive wrote: I still has

The server didn't send back a proper XML response. Please contact your system administrator.

XML request error: OK (200)

Requested URL:
/~[username]/fckeditor/editor/filemanager/connectors/php/connector.php?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=%2F&uuid=1209724347925


I had similar problems, if the webserver didn't send the correct header (content-type) for xml.

Hope that helps,
regards
Thilo

I had similar problems,i live in china,according to he alert information,that maybe I request a php web page ,it make a error!(I use asp program language) but in fact i have the thing following:

1. In ..fckeditor\fckconfig.js
Modify var _FileBrowserLanguage = 'php' to var _FileBrowserLanguage = 'asp' and
var _QuickUploadLanguage = 'php' to var _QuickUploadLanguage = 'asp'
2. In ..fckeditor\editor\filemanager\browser\default\connectors\php\config.php
Modify "$Config['Enabled'] = false ;" to "$Config['Enabled'] = true ;"

I think there is some mistake in program ,so it requests a php webpage,but now I use the fckeditor first time!I am nots so famuliar with the System!I hope the developers or other friendscan give a mail to help me !Thank you very much!!!!!
my e-mail address:jjshcc@163.com
chinese chat software QQ ID:404226330
Re: Error: The Server didn't send back a proper XML response
Hey Guys, for me it was simpler than I thought: I just went through the steps below and it fixed the problem.

http://docs.fckeditor.net/FCKeditor_2.x ... ation_File

Good luck.
Re: Error: The Server didn't send back a proper XML response
I have same problem and solved it.
The file xml not response because by compression (GZIP ).

Hope thats useful. :|
Re: Error: The Server didn't send back a proper XML response
i make it with the method in localhost ,but when i upload it to server the problem even exists.what should i do?
Re: Error: The Server didn't send back a proper XML response
thienvuongbang wrote:I have same problem and solved it.
The file xml not response because by compression (GZIP ).

Hope thats useful. :|


Your lead was right for me. I fixed response xml (asp.net) by clearing Request.Filter property.
I fallowed this post : http://www.icodefactory.com/lab/post/FC ... error.aspx

It is strange as I did not have this issue with asp.net 2.0 on our previous projects.
I hope this will help to someone.
Re: Error: The Server didn't send back a proper XML response
I am sorry for my bad English.

Have you tested your connection with the file fckeditor/editor/filemanager/connectors/test.html (http://www.your_domain.com/yours_folder ... /test.html)
This file helps a lot, I had the same problem as you "...proper XML ..."
I realized that it had on the chmod the files 777 (bad parameter ftp) at OVH and some hosts the 777 causes an error 500 (security reason)
also look at your. htaccess

Solution: Put all files and directories in FCK 705 or maximum 755
if you don't know what's chmod, look : http://catcode.com/teachmod/

I work with a dedicated server:
Gentoo realease2 OVH - Apache 2 - PHP5

If all goes well when you tested your connection with the "Get Folders"

you in return:
<? xml version = "1.0" encoding = "utf-8"?>
- <Connector Command="GetFolders" resourceType="File">
<CurrentFolder Path="/" url="/your_folder/your_folder/your_folder/" />
<Folders />
</ Connector>


I hope it will help
Thanks for all fckeditor team for your great work
Re: Error: The Server didn't send back a proper XML response
I am using fck2.4, everything works fine in windows environment, but once i deploy the code to linux, which is using apache2 + tomcat5, the filebrowser does not work, it response back a error 404, which try to user a php connector, but i am using java, why it try to using PHP.
Re: Error: The Server didn't send back a proper XML response
if you happen to be using the Ventaur component for HTTP/S switching, please read this post
Re: Error: The Server didn't send back a proper XML response
I use the php module but macro configuration issues should be the same across the board.

To start with what may be obvious: In your connector's config file, for me that's config.php, there are two paths which have to be set, absolute and relative. The absolute path is is the path to the directory where you store your uploads. The relative path is what is used to create urls for your files. The editor takes that relative path and prepends the server address:
/my/data/directory/
becomes:
http://mydomain.com/my/data/directory/

A misconfiguration of either of these paths will not, in my experience, give you the XML error. The XML error tends to be an error in the application itself, most likely through some kind of misconfiguration. You might have made some changes in your code and there's an error in your code; or, as in one case posted here, you've changed the base path value, so the editor can't find what it needs when setting up the file browser.