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

zoo33’s picture

That'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?

spirodon’s picture

Yep 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

spirodon’s picture

And 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.

zoo33’s picture

Title: Convert line 100 error » Require correct field settings
Priority: Critical » Normal

I'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.

zoo33’s picture

Status: Active » Fixed

Fixed in the last commit. Thanks for reporting!

Status: Fixed » Closed (fixed)

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