We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15083
    • 697 Posts
    I have tried all of these, still not working. I put an entire morning in trying EVERYTHING in this post!
    Files still get uploaded, it’s just a pain for the clients who see it and get on the phone. The upload bar does not work either....but at least the files are getting uploaded wink

    We still have no 1 cause for this so?
      • 29774
      • 386 Posts
      I also have tried all these fixes and am still encountering the problem under certain circumstances.

      Specifically, I get the ’Invalid XML..’ message when trying to upload a file using the resource browser in IE6 or IE7 on Windows XP SP2. The file upload fails.

      On some machines I have found that the problem more or less* disappears when you turn off the Windows XP firewall.

      Unfortunately some of my clients have locked down machines and are behind corporate firewalls which cannot be taken down. I would love to know which ports to open to allow xmlhttp requests through firewalls. Does anyone know?

      * On some machines with firewall disabled you still get the warning message on the *first* attempt to upload a file, but the file upload works.
        Snippets: GoogleMap | FileDetails | Related Plugin: SSL
        • 20728
        • 53 Posts
        Quote from: davidsim at Sep 19, 2006, 11:49 AM

        Still having a problem with this. Can I confirm if anyone else is having a problem with

        the PHP directory under

        \manager\media\browser\mcpuk\connectors

        being deleted / moved on some uploads? (It’s actually moved into a subdirectory of the assets folder - where the uploaded file was supposed to end up).



        I’m getting this exact same problem on a Windows server using both IE and FF from a Windows Vista computer.
          Enovate Design | Web Design Agency Essex
          • 1416
          • 75 Posts
          I have a strange error.
          I have 0.9.6.3 rev-4546

          When uploading an image, the whole system get’s sort of locked for a while after finishing upload.
          MCPUK tries to load my other images when refreshing, but it takes several minutes, before all images fail to load.

          Then if I close the MCPUK, and open it again, all the images are there and everything works fine.
          Only happens when uploading a new image.
            • 36933
            • 35 Posts
            Damn, I thought these dramas were over with.

            I have been happily uploading images through the resource browser for ages, using multiple installations of modx from 0.9.6.1p2 through to 0.9.6.3. I have a reseller hosting account and all of my clients using modx are on my hosting account (same server). My hosting company has just updated php to version 5.2.9 and since then I have had the "invalid XML response from connector" message coming up when I try to use the resource browser.

            here are the details;
            only get the alert message "invalid XML response from connector" in IE, FF just looks as though it has worked but no image has uploaded.
            I am unable to create folders in there.
            I cannot see any images in the image folder, even though there are some which I had uploaded before the server update. I can still see these images in an ftp program, just not the resource browser.
            I have tried installing the FCK editor just in case something in tinymce was causing it, even though they both use the same resource browser ... still no good.

            If this is just an issue with the mod_security.c settings SecFilterEngine and SecFilterScanPOST then it would be a case of activating the ht.access file and hopefully fixing it. The problem is that my host will not allow the use of .htaccess files and any changes I have made previously I have had to make through a php.ini file. I tried this, all though if someone could confirm for me how to write the php.ini file to change these settings that would be great as I really ave no idea. Anyway what I did try didn’t work. I have logged a support ticket with my host but they said I am not able to change the security settings of the server.
            If I can’t change these settings, what can I do. I need this functionality in the html editor ..

            someone please help.

            • The security filters are functions of the web server itself, not PHP, so php.ini files would have no effect.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 36933
                • 35 Posts
                Thanks for pointing that out Sottwell, but .htaccess does allow you to change server functions???

                My hosting company is not really budging on this security setting so I am at a loss with what to do.

                Can anyone offer a solution??
                  • 36933
                  • 35 Posts
                  I have checked out the firefox error console regarding this same problem and it comes up with the following when you click on the [Browse Server] button in the image properties tab.

                  this.DOMDocument is null
                  http://www.mydomain.com/manager/media/browser/mcpuk/js/fckxml.js
                  line 108

                  The code on line 108 is commented below and I have included the surrounding function.

                  FCKXml.prototype.SelectSingleNode = function( xpath ) 
                  {
                  	if ( document.all )		// IE
                  		return this.DOMDocument.selectSingleNode( xpath ) ;
                  	else					// Gecko
                  	{
                  		//BOF Line 108
                  		var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument, this.DOMDocument.createNSResolver(this.DOMDocument.documentElement), 9, null);
                  		//EOF Line 108
                  
                  		if ( xPathResult && xPathResult.singleNodeValue )
                  			return xPathResult.singleNodeValue ;
                  		else	
                  			return null ;
                  	}
                  }
                  


                  I am assuming IE is faulting at line 105.

                  Does this help anyone start to identify the problem.

                  Brad
                    • 36933
                    • 35 Posts
                    Hi All,

                    well my hosting company worked very hard with me to find the problem and also a solution to this issue.

                    It turns out that it was to do with a new or updated security module called ’suhosin’ installed on the apache server (i think that is the correct terminology).

                    It has a limit of 3 folder traverses by default and the file /manager/media/browser/mcpuk/connectors/php/connector.php needs more than this to work. Here is the error log from Apache.


                    [Sat Mar 28 15:28:18 2009] [error] [client 111.222.333.444] ALERT - Include filename (’../../../../../includes/protect.inc.php’) contains too many ’../’ (attacker ’111.222.333.444’, file ’/home/mydomain/public_html/manager/media/browser/mcpuk/connectors/php/connector.php’, line 24), referer: http://www.mydomain.com/manager/media/browser/mcpuk/frmfolders.html

                    I have substituted the ip address above for 111.222.333.444.

                    So my hosting company changed the setting suhosin.executor.include.max_traversal = 6 and all is working fine now.

                    Hopefully this information will help someone else out in the future.

                    cheers
                    Brad
                      • 28651
                      • 26 Posts
                      Quote from: adrock at Feb 09, 2007, 02:19 AM

                      Found the solution to my problem "Invalid XML response from connector" at the FCKeditor forum at sourceforge.net which was very god for FCKeditor troubles. This was an old post though and Ive learned they no longer use mcpuk file browser in the editor.

                      In /manager/media/browser/mcpuk/connectors/php/Commands/"GetUploadProgress.php" Just add:

                      header ("content-type: text/XML");
                      echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";

                      directly after:
                      //Progresshandler not specified, return generic response

                      This solved everything for me, i now get the upload progress in both IE and FF and no error.
                      So now I’m a happy camper/Modx user

                      I’ve heard this folder "Commands" being refereed, but I don’t have that directory. Only up to /php/