Closed (fixed)
Project:
FFmpeg Converter
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2009 at 10:12 UTC
Updated:
9 Feb 2009 at 23:00 UTC
warning: Invalid argument supplied for foreach() in /home/causecast/public_html/sites/all/modules/ffmpeg_converter/ffmpeg_converter.module on line 100.
This is an error I get when I try and upload a file to the server with a converter preset that converts to FLV. No advanced options are set. Simple setup.
Comments
Comment #1
zoo33 commentedThat's strange. That piece of code (line 100 and above) hasn't changed recently.
– Does the node form have a multiple upload widget (created with FileField)?
– Has it worked before?
– What versions of FileField, FFmpeg Converter and FFmpeg Wrapper are you using?
Comment #2
spirodon commentedYep I'm using FileField.
It's worked before. With some playing around, I've managed to get the error to go away.
I'm using FieldField 6.x-3.0-alpha6
FFMpeg Converter 6.x-1.x-dev
FFMpeg Wrapper 6.x-1.1-beta1
I think what was happening is that I had set no file type restrictions and I had only one field instead of the minimum 5 as outlined in the document and ever since I set file type restrictions and setup 5 fields, it's been working.
EXCEPT now I get this:
an http error 0 occured
/filefield/ahah/blogpost/field_spiros_removeable_field/0
Comment #3
spirodon commentedAnd that http error doesn't always appear, btw. Only half the time. The other half the time, the upload tries to work but it ends up doing nothing.
Comment #4
zoo33 commentedI'm working on a better solution for the file field widget. Five upload fields isn't very user friendly. And there should be some sanity checking on the field settings so that your problem can never occur. I'll keep this issue open as a reminder.
As for the http error, I don't think that's related to this module. Please search for that error message on drupal.org.
Comment #5
zoo33 commentedFixed in the last commit. Thanks for reporting!