Uploading Batch files produces PHP fatal error / 500 error when clicking on ‘Next Step’ in Drupal 6Aug 3rd, 2012 | By admin | Category: Internet
So, new install of drupal based on an existing install led to this lovely error when testing out the image upload process: PHP Fatal error: Unsupported operand types in imagecache/imagecache.module on line 902.
Upgrading it to the latest dev version didn’t fix the issue but it seems to all come down to fUpload being hopelessly out of date. Insanely great module but the creator seems to have abandonned it like a drunken worthless deadbeat father that does the work to get the baby out the door, get everyone loving it and then bails, leaving us to fix his mess when it starts to break down.. On one hand we have to be grateful for the awesome module, on the other, I mean dude can’t you take teh 30 minuets out of your week just to make sure it works for the rest of us? Especially when your module is used by so many folks
Anyways, it’s a simple fix
Just change line 902 from:
return '<img' . drupal_attributes($ours + $attributes) . '/>';
return '<img' . drupal_attributes($ours) . $attributes . '/>';