evenn though this issue was closed, the bug isn't fixed:
http://drupal.org/node/297035

The steps to reproduction of the problem are as follows:
1) set up clean drupal install on a linux box where everything works fine, so install problems are definitely NOT the issue (tried several machines where everything else like uploads etc works)
2) install cck
3) install filefield 3.0-alpha5
4) goto Home › Administer › Content management › Page
5) add new field: Type "File" and Operations "Fileupload" label and field_label "file"
6) save
7) in global settings on the next page set "Number of values: " to "unlimited"
8) save
9) goto Home › Create content
10) You now see to fields for files: select a file for both but don't hit upload yet
11) hit "Add another item"
12) alerts a window which says:

An HTTP error 0 occurred. 
/filefield/ahah/page/field_file/0

Hitting save displays json code, which should have been evaluated when i had hit the "Add another item" button. Then all input is lost. Very frustrating....

It works if you upload the files first and then add the new item but editors don't necessarily do that.

Comments

fabian-r’s picture

Hi, I have the same problem. But when I disable Java-Scripts (with Web Developer add on in Firefox) the upload works correct. But when enabled "HTTP error 0. /filefield/ahah/..." . What s up with the java script??? Have anyone an idea?

fabian-r’s picture

^^ ++ sorry - i forget... when i logged in drupal as admin it's work fine with enabla java too. But with all other users its show the alert when java is enable !!!

pal_ur’s picture

Same ("An HTTP error 0 occurred. /filefield/ahah/file/field_file/0") problem, with "The Image upload failed." error, no file uploaded.

realityloop’s picture

I'm getting this error as well

burtner22’s picture

I have the same problem here.
How can I locally disable Javascript until this is solved? Not in the browser but in the module?

Thanks,
Robert

--
My Drupal sites:
http://www.entner.net
http://www.tierarzt-entner.at

nielt’s picture

For what it's worth:
I get this same error, but only when I try to upload files larger than 2M. Otherwise it works fine.
My php.ini file is set to allow uploads of up to 5M, so that's not the problem, I think.

I'm going to try some of the sollutions pruposed in HTTP error 0 in the morning. No time right now.

-------------- UPDATE-----------------

I just increased the memory limit in ini.php to 128M and it worked fine.
To do this, find memory_limit = and change it to something larger, like 128M

This is bugging me, as I am a first time web (let alone drupal) developer and I'm not sure if it is possible to change the php memory limit on most ordinary (cheap) shared hosting plans. The sollution above worked on my local machine.

It seems that my problem was not the same as the one in question in this thread.

imdqa’s picture

Same problem here :\

dain’s picture

to add some info that might be helpful, i had the same problem and after hours of tinkering it turned out that the culprit was PHP GD by trying to process the massive (3-5 Meg) jpegs i was trying to upload and running out of memory on the shared hosting server. disabling image processing altogether and using only file field solved the problem for all versions (tried quite a few in the process).

jesseliberty’s picture

I am haiving this problem whith beta5 when uploading images in an ubercart product.

jesseliberty’s picture

I just increased my PHP memory limit to 96m and it resolved the issue on my site...

barobba’s picture

This error pops up for me immediately. So, it's not a memory of filesize issue.
Also, I am able to upload in IE. In wonder if this is a browser-compatiblity issue?

Zdenko000’s picture

I´ve had the same bug (http error 0) and fix it by change the option on the ImageAPIi config site.
I change the default image processing toolkit fro ImageAPI GD2 to ImageAPI ImageMagick.

I don´t know if this is the real fix for the problem, but I can normaly work with my nodes and images.

Bye (and sorry for my bad english :)

sixty4rpm’s picture

FWIW, this module seems to work fine with images (I'm already using ImageMagick, so I can't say for sure what happens with GD2). The error pops up for me when attempting to load a .mov (video/quicktime) file. Size does not seem to be a problem, because I an successfully load a larger .mpg file. Plain old File Upload works just fine.

Cheers!

j0rd’s picture

my client is complaining about this as well. Never noticed it myself. Subscribing.

realityloop’s picture

Status: Active » Needs review

I think I may have found the cause of this, it was only occuring in FireFox here, IE was working.

By disabling modules one by one until it worked it appears that "Super Linkifier" script for GreaseMonkey is the cause, I disabled that and it starts working.

This needs review by some of you for confirmation..

drewish’s picture

Status: Needs review » Postponed (maintainer needs more info)

there's absolutely no patch here so please don't change the status to indicate that there is one.

realityloop’s picture

Sorry I wanted a way for people to know there was something to try.. aplologies.

Confirmed with following linkifier Userscripts:

Linkify Ting (causes HTTP error 0)
http://userscripts.org/scripts/show/34397

Super Linkifier (causes HTTP error 0)
http://userscripts.org/scripts/show/10958

Super Linkifier (causes HTTP error 0)
http://userscripts.org/scripts/show/34595

watermelongirl’s picture

Version: 6.x-3.0-alpha5 » 6.x-3.0-alpha6

I'm completely new to drupal but having the same issue as listed in this thread.

/filefield/ahah/blogentry/field_photo/0

Very frustrating error, and it is highly inconsistent for me. It happens in some content types using the same field as other content types that upload images fine.

I'm on Mac OSx 10.4, happens in Firefox and Safari. I tested image processing and it happens with both GD and Magick. It also happens when image processing is disabled entirely.

I'm going to try to figure out how to increase the php memory limit as others have suggested, although it is happening with both very small and larger images.

udig’s picture

Few comments / observations:

1. This error message is thrown by ajax/ahah for various reasons. Hence this post includes descriptions for the same phenomena with different root causes...
2. If PHP limit was reached this error might be thrown HOWEVER this is not the only reason for that message to be thrown.
3. I am using FF2.0 + XAMPP + WAMP and I get this error when trying to upload very small jpeg files (~2Kb).
4. Changing the Toolkit library probably helps in some instances but it didn't resolved the issue in my case.
5. I am not using the modules mentioned above (linkifier etc.).
6. However I do use FCKEditor and after I turned it off the problem disappears.

SO IN MY CASE the problem seems to be a clash between FCKEditor and FileField. I have no clue yet how to resolve that...
Hints are most welcome :-)

Xigi’s picture

No FCK, no images, no memory limit, just small files, clicking add another item before upload, like in the original issue above. Problem exists in every browser.

Thank you in advance for debugging this.

kenorb’s picture

The same problem;/
Tested with the Imagefield module.

HTTP: 0
/filefield/ahah/forum/field_user_gallery/0

P.S. For who is desperate - downgrading to filefield-6.x-3.0-alpha2.tar.gz helps:)

So that means that there is no problem with permission, configuration, memory (I've got max), web browsers and other stuff, just somewhere in the code.

akael’s picture

Same thing here.

Linux Firefox 3
Windows XP IE 7.0
Vista 64bit IE 7.0

Same on all of the above. PHP Memory limit is 96M, tried both imaging toolkits.

Small images don't seem to give me a problem, only when they get to 100K and over do I have the issue.

Paisible’s picture

I had the problem too with all type and size of files... I resolved it in downgrading fckeditor module from 6.x-1.3-rc6 to 6.x-1.3-rc2 : there is a javascript error in versions 6.x-1.3-rc6 and 6.x-1.3-rc7 (I didn't try with rc3 to rc5...) which cause the bug.

Hoping it'll help !

j0rd’s picture

I'm not using FCKEditor, but TinyMCE...maybe there's a conflict between this and WYSIWYG module.

dopry’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Look... you people are gonna have to pull out firebug, and javascript debugger and cross reference with your error logs to figure out what is going on... If you can't reproduce this issue on a plain install with garland with just CCK and filefield I can't help you. Too many issues come under the umbrella of http 0. with Jquery... please open your own issue with detailed descriptions if you have some sort of debugging info of use. this one is closed.