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

Pages: [1] 2 3   Go Down

#1: 15-May-2006, 12:25 PM

davidsim
Posts: 7

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: 19-Sep-2006, 06:59 AM by davidsim »

#2: 15-May-2006, 12:46 PM

Administrator

zi
MODx Special Forces /
Posts: 3,555

May Peace Be On You

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

#3: 16-May-2006, 09:22 AM

davidsim
Posts: 7

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: 16-May-2006, 09:29 AM by davidsim »

#4: 16-May-2006, 10:27 AM

davidsim
Posts: 7

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: 16-May-2006, 10:43 AM by davidsim »

#5: 16-May-2006, 10:53 AM

davidsim
Posts: 7

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.


#6: 31-May-2006, 03:26 PM


moire
Posts: 49

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: 31-May-2006, 03:41 PM by moire »

#7: 2-Jun-2006, 05:53 AM

myan24
Posts: 122

I love MODx!

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!

#8: 2-Jun-2006, 06:13 AM

myan24
Posts: 122

I love MODx!

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";

#9: 20-Jul-2006, 04:40 AM

garethf
Posts: 22

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.

#10: 20-Jul-2006, 05:13 AM

garethf
Posts: 22

Problem solved!

Should have guessed it - the problem is being caused by proxy/firewall restrictions on our internal network.

#11: 22-Aug-2006, 10:18 AM

Vadko
Posts: 25

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: 23-Aug-2006, 09:11 AM by Vadko »

#12: 23-Aug-2006, 09:32 AM

PaulGregory
MODx's midnight runner
Posts: 1,097

MODx's midnight runner

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

#13: 23-Aug-2006, 09:49 AM

Vadko
Posts: 25

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

#14: 23-Aug-2006, 11:34 AM

Moderator

Bravado
Posts: 1,108

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

WWW
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

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

#15: 23-Aug-2006, 03:41 PM

Vadko
Posts: 25

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

* scrn-2.jpg (64.27 KB, 800x579 - viewed 704 times.)

#16: 28-Aug-2006, 11:57 AM

roele
Posts: 22

I have exactly the same problem and tried all different hints found here in this thread but nothing helps... :-(

When i open the java script console when accessing the Browser i get this error:

Error: this.DOMDocument has no properties
Source File: http://www.domain.com/manager/media/browser/mcpuk/js/fckxml.js
Line: 108

Any help would be great! If you want access to check the variables (which should be right) anybody can reach me under roele33@hotmail.com
This problems drives me really crazy, it's the first installation which don't work!
« Last Edit: 29-Aug-2006, 12:46 PM by roele »

#17: 29-Aug-2006, 12:47 PM

roele
Posts: 22

Nobody here who is able to solve this?

#18: 29-Aug-2006, 05:11 PM

Coding Team

doze
Posts: 4,106

....Boom!

What browser you use? Have you tried using different browser? Have you tried to reupload modx files or just the ones under manager/media? There's alot of files to upload and some FTP clients may corrupt files on upload or some files might not get uploaded at all..
New MODx wiki! Please help up with documentation efforts! || Old Wiki

"He can have a lollipop any time he wants to. That's what it means to be a programmer."

#19: 29-Aug-2006, 06:49 PM

Vadko
Posts: 25

What browser you use? Have you tried using different browser? Have you tried to reupload modx files or just the ones under manager/media? There's alot of files to upload and some FTP clients may corrupt files on upload or some files might not get uploaded at all..

In my case i´ve done it all...opera, firefox, IE on win and konqueror, and firefox for linux.

Regarding uploads, I've uploaded file by file though ftp, and later uploaded a zip (and tar.gz) and uncompressed on the server. I´m thinking in trying tinymce editor module to see if i can upload files trough it.

#20: 31-Aug-2006, 11:59 AM

roele
Posts: 22

I tried IE and FF but both with no luck. Tried reuploding, reinstalling and so on...

TinyMCE do use the same upload manager as FCKEditor :-/
Pages: [1] 2 3   Go Up
0 Members and 1 Guest are viewing this topic.