Uploading Batch files produces PHP fatal error / 500 error when clicking on ‘Next Step’ in Drupal 6

Aug 3rd, 2012 | By | 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 . '/>';
and you’re set.  Hope that helps
Tags: , , , , , ,

4 Comments to “Uploading Batch files produces PHP fatal error / 500 error when clicking on ‘Next Step’ in Drupal 6”

  1. anton the admin says:

    thanks a bazillion times for this!

  2. Bosmaen says:

    Well done sir!

    I’d changed the operand from + to . but didn’t realize the $ours was the only variable in parentheses. Well done again!

  3. Abdullah says:

    That is really helpful. I was missing

    return ”;

    after resolving the attributes, all worked fine.

    Thank You

  4. isitOnline says:

    Thanks for sharing post that will help me to get rid of batch file fatal error.

Leave a Comment