When creating a node with an image attached, I get this noticiation when submitted.

The node and the image ar both there, though.

Comments

ethnovode’s picture

Title: image_attribute_defaults_field_attach_presave() » Warning in image_attribute_defaults_field_attach_presave()

This is the exact warning I get repeatedly on random pages:
Warning : Invalid argument supplied for foreach() in image_attribute_defaults_field_attach_presave() (line 162 in /sites/all/modules/image_attribute_defaults/image_attribute_defaults.module).

divined’s picture

foreach ($languages as $langcode) {
+   if (isset($entity->{$field_name}[$langcode])) {
	  foreach ($entity->{$field_name}[$langcode] as &$field_data) {
	  }
+   }
}
13rac1’s picture

Project: » ImageField Tokens
Version: » 7.x-1.x-dev
Assigned: Unassigned » 13rac1

Code has moved to ImageField Tokens 7.x, moving issues also.

13rac1’s picture

Status: Active » Fixed

Fix in #2 committed. Thank you!

Status: Fixed » Closed (fixed)

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