Hello,

Went through
http://drupal.org/node/297035
http://drupal.org/node/329913
http://drupal.org/node/369893

They all refer to the same symptom (An HTTP error 0 occurred), however I am almost certain there are multiple causes for this behavior which is why I opened a new issue specifically for the *clash with FCKEditor*.

Here's how to reproduce:
1. install latest drupal 6.x
2. instal latest cck 6.x
3. install filefield 6.x-3.0-rc1 - recommended version
4. install FCKEditor module 6.x-1.3-rc6 (with FCK Editor source code 2.6.3) - recommended version
5. allow access to FCK editor for authenticated user (as part of the FCK install)
6. add filefield field to the page content type
7. goto 'create page'
8. browse and select a small txt file (within the filefield field)
9. press the upload button

I got js popup saying:
An HTTP error 0 occurred.
/filefield/ahah/page/field_file/0

Tried to debug JS with Firebug with no success (probably my poor knowledge)

I did see on the other issues mentioned above, 2 solutions which *did work* for me:
1. downgrade filefield to 6.x-3.0-alpha2 (the downside - it's a degradation...)
2. upgrade FCKEditor module to 6.x-2.0-beta1 with FCKEditor 2.6.4 (the downside - it's still not the recommended version)

So it seems that there is a workaround however I am not sure that using either of these solutions is really eliminating the origin of this issue.

FYI.

Comments

quicksketch’s picture

I can't reproduce this problem. I downloaded all the versions you recommended but didn't have any trouble. I assume you're saying that FileField does work when FCKeditor is disabled then? I would advise you against using any earlier versions of FileField.

udig’s picture

Indeed filefield does work when FCK is disabled.
Let me know if there's additional info I can provide to pour light on this issue.
Anyway, my current approach is to go for the later version of FCK (though not the recommended one, at this point).

Thanks.

pgtremb’s picture

I have the same problem. I got the http 0 error after upgrading filefield 6.x-3.0-alpha7 to 6.x-3.0-rc1

i don't think it is related with fckeditor.

memenoje’s picture

I'm using 6.x-3.0-rc1 and getting the error: HTTP error 0 /filefield/ahah/page/field_file/0 with Firefox 3.0.8, but uploading works fine with IE 7.
I don't use FCK Editor.

quicksketch’s picture

Category: bug » support

Anyone experiencing the HTTP 0 error, try increasing post_max_size, upload_max_size, and the memory_limit variables. See http://drupal.org/node/422474, 9 out of 10 times server configuration causes this problem. I'm moving this to a support request.

memenoje’s picture

I'm using now 6.x-3.0-rc1 in Opera 9.62 and no error: HTTP error 0 /filefield/ahah/page/field_file/0 !

Error display only in Firefox.

I think, thats javascript is not compactibile for firefox, when I setting Javascript OFF, uploading of images is correct without HTTP error 0 .

shadysamir’s picture

I figured out the http 0 issue is caused by memory on the server available for imagecache to create the a thumbnail. I faced this issue for a couple of days on a single image and I thought that the problem was the file size, turned out to be the image dimensions. I resized it from ~3000 x 4000 to ~1500 x 2000 and it worked. Didnt figure out yet how to allow more memory for ImageAPI GD.

shadysamir’s picture

I guess I should have read more accurately. You're uploading a text file :$

quicksketch’s picture

quicksketch’s picture

Status: Active » Postponed

This problem is caused by FCKeditor, see the related issue.

quicksketch’s picture

Title: HTTP error 0 - clash with FCKEditor » FCKEditor Causes "HTTP error 0" Preventing Upload

Updating title. Just as a side-note, you can uninstall the FCKeditor module, and use the WYSIWYG project instead. Then you can continue using FCKeditor (the JavaScript library) while avoiding using FCKeditor (the Drupal module), which causes this bug.

JordiTR’s picture

Incredible 8-(

After reading and reading and some days of trying to solve it re-re-reading some thread (node/297035#54) suggestes that it started to work after deactivating Devel module. I did it and the filefield JS popup error is gone!! Bufff...

netdreamer’s picture

Version: 6.x-3.0-rc1 » 6.x-3.0

This is a patch that really works ... but it's related to core! (Jquery Form update...) http://drupal.org/node/356573

Update: ... it works "sometimes" ... it should be really something related to timings, loading time of the page elements

udig’s picture

I solved my issue above by moving to FCK 6.x-2.0-beta1 (upgrading FCK editor 2.6.4). Not ideal (since it's not the official release) but working...

graper’s picture

I got this error but it wasn't because of the FCK Editor. I made a post about it on #297035: HTTP error 0 . For me it was the adBlock Plus add on that I had installed for FireFox 3

postrational’s picture

Had the same problem. Disabling the Devel module fixed it.

R.Hendel’s picture

I'm using now 6.x-3.0-rc1 in Opera 9.62 and no error: HTTP error 0 /filefield/ahah/page/field_file/0 !
Opera 10 now shows same behaviour - FF 3.5.3 (and earlier) does not
Using Wysiwyg 6.x-2.0 and FileField 6.x-3.1) but not Devel

k74’s picture

Memory limit at 128M and with Opera 10 Fails, with Firefox 3.5.3 OK

PECL not installed

FCKeditor 6.x-2.0-beta3 + FCKeditor 2.6.5

quicksketch’s picture

Status: Postponed » Closed (fixed)