Step 1. Enable "Use default image" for a image cache field
Step 2. Ignore the "Upload image: " inside same fieldset
Step 3. Save setting
Step 4. Load a dummy node [same content type of course]
Step 5. Check your watchdog log where you'll find this error "array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in ../sites/all/modules/imagecache/imagecache.module on line 572."

Disabling "Use default image" will stop error logs

Comments

afagioli’s picture

Status: Active » Needs review

This fix seems to work fine:

original code @ imagecache.module:570

  // Views does not load the file for us, while CCK display fields does.
  if (empty($item['filepath'])) {
    $item = array_merge($item,  _imagefield_file_load($item['fid']));
  }

my fix

  // Views does not load the file for us, while CCK display fields does.
  if ($item)  {
    if (empty($item['filepath'])) {
      $item = array_merge($item,  _imagefield_file_load($item['fid']));
    }
  }

sponsored by : http://noteurbane.com

fizk’s picture

Status: Needs review » Closed (won't fix)