When I installed media_mover 6.x-1.0-beta6 or 6.x-1.x-dev
I get 4 of these warnings at the add config page:

warning: Invalid argument supplied for foreach() in /var/www/html/virtualschool/includes/form.inc on line 1429.
warning: Invalid argument supplied for foreach() in /var/www/html/virtualschool/includes/form.inc on line 1429.
warning: Invalid argument supplied for foreach() in /var/www/html/virtualschool/includes/form.inc on line 1429.
warning: Invalid argument supplied for foreach() in /var/www/html/virtualschool/includes/form.inc on line 1429.

Type php
Date Thursday, January 14, 2010 - 03:46
User admin
Location http://XXXXX/admin/build/media_mover/add
Referrer http://XXXXX/admin/build/media_mover
Message Invalid argument supplied for foreach() in /var/www/html/virtualschool/includes/form.inc on line 1429.
Severity error
Hostname XXX.XXX.XXX.XXX
Operations

CommentFileSizeAuthor
#7 bug683740.patch4.11 KBTobias Weibel

Comments

arthurf’s picture

Can you give me a list of which media mover modules you have installed? It's a form that is throwing the error.

irakli’s picture

+1. I get the same errors, with beta6.

I get these if I either create configuration manually or try to import (before the save step, right after import). Both cases - the same error.

Modules installed:

Media Mover API
Media Mover API Token
Media Mover Auto Run
Media Mover CCK
S3 Media Mover module

rexsham’s picture

HI Arthurf,

I have installed:

Media Mover Antiword
Media Mover directory module
FFmpeg module
ImageCache processing
Media Mover node module
Media Mover Views
Media Mover Zip Compression
Media Mover defaults
Harvest from a FTP server
Media Mover CCK module
MM Remove module

rexsham’s picture

Will there be any follow up on this?

rexsham’s picture

Status: Active » Needs work

Hi Dear Developers, can anyone give me a clue on this?

nonom’s picture

I have the same problem

Tobias Weibel’s picture

Status: Needs work » Needs review
StatusFileSize
new4.11 KB

I had the same problems. Debugging helped finding the problem. A possible patch is attached. I'm quite new in php so someone should review it carefully.

Main changes to fix this problem:
- '#options' => $options['name'],
+ '#options' => $options,

I fixed some other 'problems' I found during debugging.

Tobias

arthurf’s picture

Version: 6.x-1.0-beta6 » 6.x-1.x-dev

Thanks for the patch Tobias- I accidentally mixed up who has credit on the commit- it's yours. I made a slight change, but should not impact the fix.

arthurf’s picture

Status: Needs review » Closed (fixed)
armyofda12mnkeys’s picture

I just installed this module... Havent done anything with it yet....
Just wanted to say I got this error on the admin/build/media_mover/add page:
Invalid argument supplied for foreach() in /home/smoministries/smoministries.us/includes/form.inc on line 1434.

I had rc7 and now updated to dev1.x version, but same problem.