Getting this error in Drush without further configuration or tweaking.

I created a patch that checks whether $widget_types[$widget_type]['field types'] is an array before checking whether 'filefield' is in the array.

CommentFileSizeAuthor
imagefield_extended-array.patch752 bytesvkareh

Comments

alan d.’s picture

Version: 6.x-4.1 » 6.x-4.x-dev
Assigned: vkareh » Unassigned
Status: Needs review » Fixed

Can you replicate this from a clean Drupal install?

I modified this slightly, it should return if this is empty or not set

  if (empty($widget_types[$widget_type]['field types']['filefield'])) {
    return;
  }
  if (!in_array('filefield', $widget_types[$widget_type]['field types'])) {
    return;
  }

Will commit soon

Status: Fixed » Closed (fixed)

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