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).
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
ini_set('zend.ze1_compatibility_mode', 0);
session_start();
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.
See http://php.net/features.file-upload and note all the PHP configuration settings that affect your ability to upload large files.
ini_set('zend.ze1_compatibility_mode', 0); ini_set(max_execution_time,120);
In my case, I added
ini_set('zend.ze1_compatibility_mode', 0);
just after
session_start();
of my config.php file in the connector folder. Everything worked like it worked before. Try it.
ini_set('zend.ze1_compatibility_mode', 0);