Sep 06, 2008, 01:30 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: [1] 2 3   Go Down
  Print  
Author Topic: Error Uploading Files in FCKEditor  (Read 12265 times)
0 Members and 1 Guest are viewing this topic.
davidsim
Jr. Member
*
Posts: 7


« on: May 15, 2006, 12:25 PM »

I've a problem uploading files using FCKEditor.

I'm creating a link from some text.

1. I highlight the text
2. I click the create link button
3. I click browse server. The window opens with the frames, but no directories are listed and no files shown. I get a Javascript line 159 Object Required error in IE for frmfolders.html
4. When I try to upload a file, I get an Invalid XML Response from Connector error in a popup window.

Help!

Running on Windows 2000 Server, Apache 2, PHP 5.1.2.

Many thanks.
D.
« Last Edit: Sep 19, 2006, 06:59 AM by davidsim » Logged
zi
MODx Special Forces /
Administrator
*
Posts: 2,914


May Peace Be On You


WWW
« Reply #1 on: May 15, 2006, 12:46 PM »

Please check you Resource Path and Resource Url under

Administration > System Configuration > Interface & Editor Settings

You will find the 2 fields there, and more information about IIS is displayed right next to them.

Hope it helps.

regards.
Logged

“Internet Explorer’s CSS rendering: WYSIWTF”. — someone genius
--------------------------------------------------
davidsim
Jr. Member
*
Posts: 7


« Reply #2 on: May 16, 2006, 09:22 AM »

Bizzarely, the contents of the

\manager\media\browser\mcpuk\connectors

folder seem to be being deleted. Replace them and all works well.

A security issue? I've tightened the permissions on the folder in any case.


(Just to add, this is happening on a private site, so I don't think 3rd party hacking is likely)
« Last Edit: May 16, 2006, 09:29 AM by davidsim » Logged
davidsim
Jr. Member
*
Posts: 7


« Reply #3 on: May 16, 2006, 10:27 AM »

OK - more information. I've been able to reproduce the problem myself.

I open the FCKEditor Resource Browser and create a new directory.

I go to the new directory and upload a file - cardiff.pdf.

The pdf directory in the connectors directory disappears all together.

The new directory created to contain the file actually contains a new folder called cardiff.pdf with a number of new folders inside including:
Auth
Commands
Commands/Helpers
Docs
dtd
images


(Sorry to keep adding to this - just realised it's moving the contents of the connectors/php folder to the new folder named the same as the file it has uploaded)

I wonder if it's not able to change to a temporary file directory and hence the error - where are temporary files uploaded to? The upload_tmp_dir in php.ini is set correctly.
« Last Edit: May 16, 2006, 10:43 AM by davidsim » Logged
davidsim
Jr. Member
*
Posts: 7


« Reply #4 on: May 16, 2006, 10:53 AM »

I've solved the problem.

The maximum upload file size in PHP was set to 2Mb. The file being uploaded was 2.2Mb!

Obviously the file wasn't successfully uploaded by php, and therefore the script acted strangely.

I've increased the maximum upload filesize for now which gets over the immediate problem.


Logged
moire
Jr. Member
*
Posts: 49



« Reply #5 on: May 31, 2006, 03:26 PM »

i sort of have the same problem.
Website was moved to a new server. Image browser led to an empty folder and i could not upload img / create folder.
I cheked the Resource path-- it was the old one.

Using phpinfp.php i found this:
_SERVER["DOCUMENT_ROOT"]   /home/faktv/myDomainName

* Changed the Resource path to
1) /home/faktv/myDomainName/assets/
2) home/faktv/myDomainName/assests/
.. and it did still did not work.


* Uploaded install/ upgrade from 0.9.1 to 0.9.2.1 ran the install to update my modx.
Still did not help.

UPD:
Seems it was File Manager Path in the Miscellaneous Settings. Once i changed that, everything worked again. =]
« Last Edit: May 31, 2006, 03:41 PM by moire » Logged
myan24
Full Member
***
Posts: 117

I love MODx!


« Reply #6 on: Jun 02, 2006, 05:53 AM »

I'm having the problem too . . . I've tried resolving using the solutions here but still the same problem...

Uploading a file (even small ones of about 500-700k) I nearly always get the same error "Invalid XML Response".

Anyone have any ideas?

Thanks!
Logged
myan24
Full Member
***
Posts: 117

I love MODx!


« Reply #7 on: Jun 02, 2006, 06:13 AM »

OK. Found a solution in the FCK Editor forums at sourceforge. See this thread for details:

http://sourceforge.net/forum/message.php?msg_id=3433951

By adding in the following to GetUploadProgress.php right after "//Progresshandler not specified, return generic response" solves the problem . . . at least for me it did!

Code:
header ("content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
Logged
garethf
Jr. Member
*
Posts: 22


« Reply #8 on: Jul 20, 2006, 04:40 AM »

I am now experiencing the same problem having moved from a development server (uniform server on WinXP) to a live server (Linux shared hosting with FastHosts).

The problem also occurs with the file manager - but returns "64 - host not found". The error only occurs when uploading image files - other files (e.g. css) upload without problems.

I assume the problem is caused by the PHP configuration, but do not know where to begin to resolve the issue. Any help would be appreciated - the site is due to go live at the end of month.
Logged
garethf
Jr. Member
*
Posts: 22


« Reply #9 on: Jul 20, 2006, 05:13 AM »

Problem solved!

Should have guessed it - the problem is being caused by proxy/firewall restrictions on our internal network.
Logged
Vadko
Jr. Member
*
Posts: 25


« Reply #10 on: Aug 22, 2006, 10:18 AM »

Seems like I´m having the same problem but I cant seem to solve it!
I have modx on a subdirectory - mydomain/main

lets see:

In misc. config I have:
/home/mydomain/public_html/main/manager/media/browser - also tried
/home/mydomain/public_html/main/manager/media/browser/mcpuk   - tryed both  with / slash and \ and no slash, also tryed with and without trailing slash at the end, also tryed:
/home/mydomain/public_html/main/assets

on interface and editors I have for assets:
/home/mydomain/public_html/main/assets - also tryed both with / slash and \ and no slash and trailing slash at the end
and assets url:
http://mydomain/main/assets

The result is  when i try to upload images or any other kind of allowed content it freezes with the following message:
"Upload a new file in this folder (Upload in progress, please wait... 0%)"
and if i use IE also get a popup with 'Invalid XML Response from Connector'
I tryed to copy a new mcpuk dir, reinstall all modx and i cant solve this!!
What should I do next, any hint? Maybe it has something to do with modx being installed in a subdir, its the last thing reamainig to do.
« Last Edit: Aug 23, 2006, 09:11 AM by Vadko » Logged
PaulGregory
MODx's midnight runner
Committed to MODx
*****
Posts: 1,095

MODx's midnight runner


WWW
« Reply #11 on: Aug 23, 2006, 09:32 AM »

To rule out the firewall thing - Are you able to upload files on other similar sites? If you're not sure, try adding an attachment to a reply here. (Click Additional Options... to see the Attach bit).
Logged

No, I don't know what OpenGeek's saying half the time either.
MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
Forum: Where to post threads about add-ons | Forum Rules
Like MODx? donate (and/or share your resources)
Like me? See my Amazon wishlist
MODx "Most Promising CMS" - so appropriate!
Vadko
Jr. Member
*
Posts: 25


« Reply #12 on: Aug 23, 2006, 09:49 AM »

To rule out the firewall thing - Are you able to upload files on other similar sites? If you're not sure, try adding an attachment to a reply here. (Click Additional Options... to see the Attach bit).

I can.
I tryed from diferent locations and even diferent ISP´s.


* test.jpg (2.07 KB, 167x104 - viewed 341 times.)
Logged
Bravado
Coding Team
*
Posts: 1,060


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


WWW
« Reply #13 on: Aug 23, 2006, 11:34 AM »

Any way you could PM me with the address of your manager as well as a username/pass?  I can look at the variables and see if they are set properly.  Smiley

Logged

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
Vadko
Jr. Member
*
Posts: 25


« Reply #14 on: Aug 23, 2006, 03:41 PM »

Any way you could PM me with the address of your manager as well as a username/pass?  I can look at the variables and see if they are set properly.  Smiley

Are the variables on these screenshots?

on scrn-1.jpg I tryed with http://  in the resorces path

On scrn-2.jpg I also tryed:
/home/mydomain/public_html/main/manager/media/browser  and with and without trailing slash
/home/mydomain/public_html/main/manager/media/browser/mcpuk

Regarding the username and password I would have to request permission to the site owners to create e new user, wich by now would be a little complicated (vacations) .


* scrn-1.jpg (71.87 KB, 800x579 - viewed 582 times.)

* scrn-2.jpg (64.27 KB, 800x579 - viewed 433 times.)
Logged
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!