I copied a working site to a different server with no GD, when I went to include an image using imagefield it caused:
warning: Division by zero in /home/site/public_html/sites/all/modules/imageapi/imageapi.module on line 221.
I feel this should have been a bit more of a understandable message, such as no image-manipulation installed etc

Minor cosmetic bug for idiots like me.

Comments

quicksketch’s picture

Status: Active » Closed (won't fix)

This is a bug for ImageAPI really (that's where the error is coming from). I think it already comes with a hook_requirements() check and you shouldn't be able to even install the ImageAPI GD module if your server is missing it. *However* if you deployed an existing database to a production site... well... it will try to run but throw that error. Drupal will also throw notification saying your configuration is incorrect if GD is not found, so it's already reported on the Status Report page.

Requirements check in ImageAPI:
http://drupalcode.org/project/imageapi.git/blob/refs/heads/6.x-1.x:/imag...

So, all told. Too minor to worry about.