Topic: Error Uploading Files in FCKEditor  (Read 27322 times)

Pages: 1 [2] 3   Go Down

#21: 31-Aug-2006, 01:11 PM

Moderator

Bravado
Posts: 1,108

"I can learn to resist anything but temptation..."

WWW
Man...to be honest, I don't have a clue as to what is really going on with this.  If I was able to login to your manager I can probably look at what is going on behind the scenes and find the source of the problem.  Might just be a PHP configuration option that needs to be changed.
Jeff Whitfield

"When someone asks you, A penny for your thoughts, and you put your two cents in, what happens to the other penny?"

-George Carlin

#22: 19-Sep-2006, 06:49 AM

davidsim
Posts: 7

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).

#23: 22-Sep-2006, 11:24 AM

Moderator

Bravado
Posts: 1,108

"I can learn to resist anything but temptation..."

WWW
Huh?  Now that is just weird!  davidsim, if there's any way I can login to your manager and have a look please PM me with the info. 
Jeff Whitfield

"When someone asks you, A penny for your thoughts, and you put your two cents in, what happens to the other penny?"

-George Carlin

#24: 3-Jan-2007, 05:41 PM


Frank
Posts: 518

WWW
I get the same error message when uploading Images. The message is "invalid xmlresponse from connector".

#25: 8-Feb-2007, 05:56 PM

adrock
Posts: 27

I have this problem to. In the image browser in Internet Explorer i get the error message: Invalid XML response from connector
I have quite a long thread about this issue at the plugins support and it seems to be something out of Modx. So I'm sorry if I'm repeating myself all over the forum. But i really want to fix this.

Franklos or anyone, if you solved this, please leave a comment Tongue

#26: 8-Feb-2007, 07:27 PM

seventhapex
Posts: 177

Just another goober

it's probably a permissions issue, I had the same thing happening.

A simple way to check if it's a lack of permissions is to attempt to upload through the "file Manager". If you can't upload through the "file manager" try setting "/assets/images" and "/assets/files/" directory to full access. I'm pretty sure you need 777 access tot hose directories in order to use FCK's browser functionality.

#27: 8-Feb-2007, 08:19 PM

adrock
Posts: 27

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

#28: 8-Feb-2007, 08:42 PM

seventhapex
Posts: 177

Just another goober

Awesome... great find

#29: 17-Oct-2007, 12:36 PM

transeffect
Posts: 65

Hi All,

I am posting here in hopes someone will hear my cries for help! If not, I may start a new topic. I just wanted to point out that I am having these same issues on my shared hosting plan with GoDaddy. I'm running ModX o.9.6, with the latest version of FCKEditor available, and I am getting the "Invalid XML response from connector" error, even after putting the suggested code into GetUploadProgress.php. This is IE only, and I'm using IE 6. I don't know if it works in IE 7 or not, but my client will be using IE 6 for the forseeable future. I thought the files uploaded despite the error, and just didn't show up, but that's incorrect - they don't upload at all.

Note that this problem does not occur in Firefox. In Firefox, I can see the files tha thave been uploaded, and I can upload (so I'm assuming it is not a permissions issue). This would be good enough for me, but since this is for a client, I have to find a way to make it work.

Any help would be greatly appreciated. Thanks in Advance.

*Edit* In the link browser, I can't upload anything from the "upload" tab in any browser, but in Firefox, I can upload from the "Browse server" button, and I can see everything that's there. In IE, I can neither upload, nor see what's already there.
« Last Edit: 18-Oct-2007, 04:46 PM by transeffect »

#30: 20-Nov-2007, 08:35 PM

edialedarb
Posts: 14

Hello all,

I too was having this problem, but it was only on some installations of MODX on a certain server. My other installations were fine on other servers and I was getting the problem from different machines at different locations. So I ruled out the MODX files (V 0.9.6), any particular machine or AV software.

I tried the fix above mentioned by adrock and that looked like it was going to work but the uploads kept stopping at 50%. So after searching the internet further and non MODX specific, I found this problem has occurred on all sorts of CMS using the resource browser.

Then I found this fix at http://forum.mamboserver.com/showpost.php?p=397798&postcount=9.

But in case the link dissapears one day, here are the detailsin our forum for future reference and adapted to MODX (after the quote).

Quote
Well, got it working finally... on my shared host there's a mod_security Apache module with restrictions set too high, resulting in the below XML error when trying to upload.

details: In the FCK window there's a bunch of frames, "uploadworker" is hidden but this is the frame that "catches" the upload. After unhiding this frame I received the following error:
Not Acceptable
An appropriate representation of the requested resource /mambots /editors /mostlyce/ jscripts /tiny_mce /filemanager /connectors /php /connector.php could not be found on this server.
(So naturally this is not a valid XML response!)

There are similar problems with Wordpress, PHPBB, vBulletin etc. so the fix is similar to the following, found here: http://www.vbulletin.com/forum/showthread.php?t=167121:

1. create the following .htaccess file (or htaccess.txt):
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
2. put here: mambots/editors/mostlyce/jscripts/tiny_mce/filemanager/connectors/php/ (and rename to .htaccess if needed)

Incidentally everything appears to work with folder permissions at 755. Hope this helps someone.

For MODX just change step 2 directory to manager/media/browser/mcpuk/connectors/php

This worked for me in FF and IE7, and I didn't have to apply the fix mentioned by adrock either.

I uploaded the .htaccess file to exisitng working versions of MODX on other servers and there were no problems encountered. So I have decided to add this file to my default installation and just have it there all the time.

I hope this helps someone out.

cheers

Brad

#31: 28-Nov-2007, 12:33 PM

iridium
Posts: 2

hello all,
i've still got the same problem.
all config paths and folder permissions are correct.
tried to do the generic response trick, the htaccess trick, nothing works.
can anyone help?

#32: 5-Dec-2007, 10:46 AM

Moderator

Bravado
Posts: 1,108

"I can learn to resist anything but temptation..."

WWW
I'm in the process of testing and configuring a replacement for the current file manager.  I'll go ahead and upload a copy to play with soon...probably in the next few days or so.  Cheesy

Jeff
Jeff Whitfield

"When someone asks you, A penny for your thoughts, and you put your two cents in, what happens to the other penny?"

-George Carlin

#33: 6-Dec-2007, 06:53 AM

iridium
Posts: 2

big up!

#34: 10-Dec-2007, 01:05 AM


bwente
Posts: 203

Finally !!!

Thanks Brad (edialedarb) !

Hello all,

I too was having this problem, but it was only on some installations of MODX on a certain server. My other installations were fine on other servers and I was getting the problem from different machines at different locations. So I ruled out the MODX files (V 0.9.6), any particular machine or AV software.

I tried the fix above mentioned by adrock and that looked like it was going to work but the uploads kept stopping at 50%. So after searching the internet further and non MODX specific, I found this problem has occurred on all sorts of CMS using the resource browser.

Then I found this fix at http://forum.mamboserver.com/showpost.php?p=397798&postcount=9.

But in case the link dissapears one day, here are the detailsin our forum for future reference and adapted to MODX (after the quote).

Quote
Well, got it working finally... on my shared host there's a mod_security Apache module with restrictions set too high, resulting in the below XML error when trying to upload.

details: In the FCK window there's a bunch of frames, "uploadworker" is hidden but this is the frame that "catches" the upload. After unhiding this frame I received the following error:
Not Acceptable
An appropriate representation of the requested resource /mambots /editors /mostlyce/ jscripts /tiny_mce /filemanager /connectors /php /connector.php could not be found on this server.
(So naturally this is not a valid XML response!)

There are similar problems with Wordpress, PHPBB, vBulletin etc. so the fix is similar to the following, found here: http://www.vbulletin.com/forum/showthread.php?t=167121:

1. create the following .htaccess file (or htaccess.txt):
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
2. put here: mambots/editors/mostlyce/jscripts/tiny_mce/filemanager/connectors/php/ (and rename to .htaccess if needed)

Incidentally everything appears to work with folder permissions at 755. Hope this helps someone.

For MODX just change step 2 directory to manager/media/browser/mcpuk/connectors/php

This worked for me in FF and IE7, and I didn't have to apply the fix mentioned by adrock either.

I uploaded the .htaccess file to exisitng working versions of MODX on other servers and there were no problems encountered. So I have decided to add this file to my default installation and just have it there all the time.

I hope this helps someone out.

cheers

Brad

#35: 18-Jan-2008, 10:24 AM

jusmeig
Posts: 363

MODx, because it makes things easier.

WWW
I STILL have this issue. I am unable to apply the fix above, as I am hosting on IIS so dont have .htaccess etc.
I did note however that it does not occur in FF, however the progress bar does not appear at all?

Despite the error files still upload in IE 7. The client is an IE 7 user so I guess just hiding the alert might be the way to go in my case!!

#36: 2-Feb-2008, 06:41 PM

speshdiv
Posts: 1

Hello everyone. I don't use Modx, but I do use the filemanager you guys are talking about. After changing my hosting, I was experiencing the same problem: "Invalid XML response from connector".  I tried all above suggestions, none seemed to work for me. I Googled around a bit and found this and came to the conclusion that my hosting had enabled "zend.ze1_compatibility_mode" which ironically is not compatible with the filemanager. I could not access the php.ini file of my hosting, therefor I searched for an alternative. I found you can temporarily shut off certain functions of php using ini_set().

In my case, I added

Code:
ini_set('zend.ze1_compatibility_mode', 0);

just after

Code:
session_start();

of my config.php file in the connector folder. Everything worked like it worked before. Try it.

These were the links I found:

http://www.dmcinsights.com/phorum/read.php?13,24574,24586
http://www.php.net/manual/en/function.ini-set.php


Just wanted to let you know, don't know if this would be useful.

#37: 6-Mar-2008, 10:24 AM


MrDutchy
Posts: 206

I still have the problem, i tried everything mentioned in this thread (the 2 lines of code in the config.php file), the .htaccess fix, switching off the compatibility mode for that config.php script.
The only thing I managed to get rid of by these fixes is the connector error message but the upload itself still fails.

I am trying to upload a 4M pdf file. The file uploads are limited (by php.ini and the manager to 50 MB) so this cannot be the cause. Curiously enough a small pdf file upload succeeds!

Any help will be greatly appreciated.

EDIT: I have tried this on a 0.9.5 install, a 0.9.6. as well as an 0.9.6.1p2 but all running on the same server.

#38: 6-Mar-2008, 11:36 AM

Foundation

OpenGeek
MODx Co-Founder
Posts: 6,985

damn accurate caricatures...

WWW
See http://php.net/features.file-upload and note all the PHP configuration settings that affect your ability to upload large files.
Jason Coward
MODx Co-Founder
xPDO Founder
CTO @ Collabpad
work productively.
work intelligently.
work together.
Light is just a vibration of a note too. Everything is. You've got to keep that in mind.
  Frank Zappa

#39: 10-Mar-2008, 03:54 AM


MrDutchy
Posts: 206

See http://php.net/features.file-upload and note all the PHP configuration settings that affect your ability to upload large files.
Thank you. This was all i needed. It turns out in my case the issue was caused by a max_execution_time setting that was too low.

First i simply set it to 120 (default is 30) and saw that it worked.

Than i figured i'd rather set it for the mcpuk upload script configuration (/manager/media/browser/mcpuk/connectors/php/config.php). I added (right after <?php ) the following:
Code:
ini_set('zend.ze1_compatibility_mode', 0);
ini_set(max_execution_time,120);

EDIT: One follow-up question : Is it safe to use my config.php for all my MODx installations or is it potentially incompatible with some? I am hoping the Mpuk used for the file browser hasn't changed since 0.9.5. or longer so i can just upload the config everywhere. Hopefully someone can shed some light on this.
« Last Edit: 10-Mar-2008, 03:58 AM by MrDutchy »

#40: 25-Mar-2008, 05:53 PM

imandic
Posts: 51

WWW

In my case, I added

Code:
ini_set('zend.ze1_compatibility_mode', 0);

just after

Code:
session_start();

of my config.php file in the connector folder. Everything worked like it worked before. Try it.


I had similar problem with fresh installation of modx 0.9.6.1p2, everything was great except uploading images or other files.
After creating new folder in resource browser nothing happened...just blank page...upload too...nothing...

In reports/system events I had following error:
Implicit cloning object of class 'QuickEditor' because of 'zend.ze1_compatibility_mode'

After inserting
Code:
ini_set('zend.ze1_compatibility_mode', 0);
everything come back to normal, upload works fine, folder creation works too...
Pages: 1 [2] 3   Go Up
0 Members and 1 Guest are viewing this topic.