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
Comment #1
quicksketchI 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.
Comment #2
udig CreditAttribution: udig commentedIndeed 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.
Comment #3
pgtremb CreditAttribution: pgtremb commentedI 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.
Comment #4
memenoje CreditAttribution: memenoje commentedI'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.
Comment #5
quicksketchAnyone 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.
Comment #6
memenoje CreditAttribution: memenoje commentedI'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 .
Comment #7
shadysamir CreditAttribution: shadysamir commentedI 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.
Comment #8
shadysamir CreditAttribution: shadysamir commentedI guess I should have read more accurately. You're uploading a text file :$
Comment #9
quicksketchAny FCKeditor users see #248146: File upload throws error on attach only when FCKeditor is on page.
Comment #10
quicksketchThis problem is caused by FCKeditor, see the related issue.
Comment #11
quicksketchUpdating 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.
Comment #12
JordiTR CreditAttribution: JordiTR commentedIncredible 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...
Comment #13
netdreamer CreditAttribution: netdreamer commentedThis 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
Comment #14
udig CreditAttribution: udig commentedI 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...
Comment #15
graper CreditAttribution: graper commentedI 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
Comment #16
postrational CreditAttribution: postrational commentedHad the same problem. Disabling the Devel module fixed it.
Comment #17
R.Hendel CreditAttribution: R.Hendel commentedI'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
Comment #18
k74 CreditAttribution: k74 commentedMemory 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
Comment #19
quicksketchClosing now that #248146: File upload throws error on attach only when FCKeditor is on page has long been taken care of.