Hello

When I am uploading a video after 99% (according to Chrome) a message pops up saying "An HTTP error 0 occurred. ?q=filefield/ahah/video/field_video/0"

I've changed my max upload filesize/max php script size but I haven't seen any results. I've also installed jquery_update and changed jquery.form.js with a new one without any luck.

Could you please help me?
Thanks a lot

Comments

iLLin’s picture

Try the 4.x-dev version. I'm waiting on some more feedback and then I am going to push an alpha release.

iLLin’s picture

Status: Active » Fixed

http://drupal.org/node/25274/release Alpha1 has been released.

whytewolf’s picture

Version: 6.x-4.0-beta2 » 6.x-4.0-rc1
Status: Fixed » Needs work

I'm still having this issue on rc1

iLLin’s picture

Status: Needs work » Active

I don't think this is a problem with the video module. Try reading over this thread to see if it helps you at all.

http://drupal.org/node/247009

whytewolf’s picture

that thread did not help me, tho it did point me to hitting save which gave me a new error.

Fatal error: Call to undefined function ffmpeg_wrapper_get_file_data()

whats odd is i can find no ffmpeg_wrapper_get_file_data function anywhere and google turns up no results for this function.

iLLin’s picture

Change from ffmpeg_wrapper to ffmpeg for transcoding. See if that fixes you, I bet its a wrapper issue and the functions being called. He changes function names all the time lol.

jonathanmd’s picture

I just ran into this same problem. For me it was the Apache module mod_security that was preventing the uploads. Drupal has some issues uploading files and images when running Apache's mod_security using the default configuration settings. Here's what I did to identify the problem and get it working.

Besides that javascript error, there should be an error in the apache error log that you can check.

Error 1

Here's the first error I was getting in the apache error log.
ModSecurity: Request body (Content-Length) is larger than the configured limit (131072)

The configured limit is 131072 BYTES! That's only 128 kB!!

Solution 1

Edit /etc/apache2/conf.d/modsecurity.conf and set SecRequestBodyLimit to a larger size than the default of 128 KB and then reboot apache. I set mine to match my max_upload setting from my php.ini. Remember it has to be in bytes!

More Info about SecRequestBodyLimit
Description: Configures the maximum request body size ModSecurity will accept for buffering.
Syntax: SecRequestBodyLimit NUMBER_IN_BYTES
Example Usage: SecRequestBodyLimit 134217728
Processing Phase: N/A
Scope: Any
Dependencies/Notes: 131072 KB (134217728 bytes) is the default setting. Anything over this limit will be rejected with status code 413 Request Entity Too Large. There is a hard limit of 1 GB.

Error 2

After I fixed that error I was able to upload files without a problem and things were running smooth...until I tried uploading a certain video. All my other videos uploaded fine except this one. I checked the Apache error log and saw:

ModSecurity: Warning. Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required. [file "/etc/apache2/conf.d/modsecurity.conf"] [line "60"] [msg "Multipart parser detected a possible unmatched boundary."]

Solution 2

After digging around on teh internets I found the rule referenced in the error above will sometimes return false positives, which will then deny the request. To fix that just remove the "deny" from the rule so that it will simply log when these events occur.

Edit /etc/apache2/conf.d/modsecurity.conf and update the rule for MULTIPART_UNMATCHED_BOUNDARY, setting it to log only.

OLD

# Did we see anything that might be a boundary?
SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
"phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"

NEW (removed 'deny' from line 3)

# Did we see anything that might be a boundary?
SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
"phase:2,t:none,log,msg:'Multipart parser detected a possible unmatched boundary.'" 
mrlava’s picture

i have this same problem, doesnt matter what version of video i use or ffmpeg wrapper

i have no idea what the above post is talking about for a fix considering i dont even have a modsecurity.conf located anywhere on my system.

PHP Fatal error: Call to undefined function ffmpeg_wrapper_get_file_data() in sites/all/modules/video/transcoders/video_ffmpeg_wrapper.inc on line 162, referer: http://mywebsite.com/content/admin

due to this I can't even load the node edit page after enabling the ffmpeg_wrapper module option
using the ffmpeg alone instead of the wrapper does not work either.

i've set this up 50 times before on many different servers with no problem yet i've spent 2 weeks dealing with this one. any help would be greatly appreciated, thanks all

iLLin’s picture

Using RC1 and you have installed it before? Try using 3.9 and see if you get the same issues as the HTTP 0 error is normally a server problem but if you can get it all working on 3.9 then I'll try to take a look as I cannot duplicate this.

travismiller’s picture

in reference to #5 and #6 above, it appears the correct function call is ffmpeg_wrapper_file_data

hypertext200’s picture

Status: Active » Fixed

Fixed in dev

rohiniyadav298’s picture

Status: Fixed » Active
hypertext200’s picture

Version: 6.x-4.0-rc1 » 6.x-4.0-rc3
Status: Active » Fixed

This is fixed in the latest build.

hypertext200’s picture

Reopen if this is still exist.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

imDhaval’s picture

Version: 6.x-4.0-rc3 » 6.x-4.1-rc4
Assigned: Unassigned » imDhaval
Priority: Normal » Critical
Status: Closed (fixed) » Active
StatusFileSize
new6.71 KB
new50.51 KB
new34.97 KB

i am using windows 7 & video 6.x-4.1-rc4 & FFmpeg Wrapper 6.x-1.1-beta2

in Video transcoder, i was using ffmpeg for transcoding n it is working

then i changed my video trancoder to FFmpeg Wrapper,
& when i upload video this error occurs "An HTTP error 0 occurred. /vivid/filefield/ahah/video/field_video/0"

[
in my php.ini
max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 300 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume (16MB)
]

so what is the problem??
plzz help.

hypertext200’s picture

It seems somethings is wrong with the video conversion settings. If manage to set up them correctly then it should work.

hypertext200’s picture

Status: Active » Fixed
hypertext200’s picture

Status: Fixed » Closed (fixed)
errand’s picture

My server support fixed it by increasing mod_fcgid

verta’s picture

I am also seeing
Call to undefined function ffmpeg_wrapper_file_data
using video rc4 and ffmpeg wrapper dev release from 9/30/10.

Changing video to use ffmpeg with no wrapper fixed it. Wrapper is giving me FastCGI issues, so I'm moving ahead without it.