version: CVS

The following error is displayed at Drupal install:
Fatal error: Call to undefined function image_get_toolkit() in drupal-6.x-dev/sites/all/modules/image_resize_filter/image_resize_filter.install on line 26

Comments

quicksketch’s picture

Title: undefined function image_get_toolkit() » Undefined function image_get_toolkit() on profile install
Priority: Critical » Normal
Status: Active » Fixed
StatusFileSize
new852 bytes

Hmm, sounds like you're installing image_resize_filter as part of an install profile. This problem does not occur when normally installing the module. Apparently our check for maintenance mode is not suitable, so let's just do a direct check for the function "image_get_toolkit". The function is part of Drupal core (it's in image.inc) so it should always exist if a full bootstrap has been done.

pasqualle’s picture

repro steps:
1. download drupal-6.x-dev and image_resize_filter-6.x-1.x-dev
2. copy image_resize_filter into sites/all/modules
3. undo these changes:
http://drupal.org/cvs?commit=268380 (September 28)
http://drupal.org/cvs?commit=278124 (October 22)

4. try to install Drupal

It seems like this bug was fixed twice since the issue was submitted :)

quicksketch’s picture

Ha, shoot I thought the MAINTENANCE_MODE check was in the 1.4 version, guess not. Anyway the 1.5 version is out now containing the later fix. :-)

Status: Fixed » Closed (fixed)

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