I have been receiving this error

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

this is occuring on "admin/content/file_import"

when I click on the "Import" Button I get

"No files files were imported."

also the selection box that is supposed to list the nodes to add the file(s) too is empty

Comments

neochief’s picture

Assigned: Unassigned » neochief
Status: Active » Postponed (maintainer needs more info)

Are you have some nodes in your site? Or it's just clear instalation?
Also, could you please check write permission of your output dir (see in the module settings)?

open-keywords’s picture

I have the same error when accessing /admin/ecsettings/location (an ecommerce module)

this is a pretty fresh install done on march 27th with the head of 5.7 branch
running on ubuntu feist 7.04 (php 5.2.1)

corresponding code is

// array_key_exists() accommodates the rare event where $element['#value'] is NULL.
  // isset() fails in this situation.
  $value_valid = isset($element['#value']) || array_key_exists('#value', $element);
  $value_is_array = is_array($element['#value']);
  $options = '';
  foreach ($choices as $key => $choice) {
    if (is_array($choice)) {
      $options .= '<optgroup label="'. $key .'">';
      $options .= form_select_options($element, $choice);
      $options .= '</optgroup>';
    }
open-keywords’s picture

see also http://drupal.org/node/234679
Shouldn't this be reported to Form ?

open-keywords’s picture

In fact Forms seems pretty stable, should be somewhere else

neochief’s picture

But how this related to File import module?

neochief’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
xurizaemon’s picture

Status: Closed (fixed) » Closed (duplicate)

This was a dupe of http://drupal.org/node/294054, patch is there