Attempting to install into a new site, from an install profile, produces

Call to undefined function image_get_toolkit()

I tried many times with our complete distribution, and also with a bare bones install of

drupal-6.22
imageapi-6.x-1.10
imageapi_gd-6.x-1.10
gallerix-6.x-1.5

and it failed with the same message. It seems Gallerix can only be installed into existing sites with the image toolkit already configured.

Comments

AlexisWilke’s picture

Hi lieb,

I'm not too sure how you proceed with your installation but the image_get_toolkit() is part of Core. (see include/image.inc)

It is loaded last with the completion of the bootstrap process:

function _drupal_bootstrap_full() {
  static $called;

  if ($called) {
    return;
  }
  $called = 1;
  require_once './includes/theme.inc';
  require_once './includes/pager.inc';
  require_once './includes/menu.inc';
  require_once './includes/tablesort.inc';
  require_once './includes/file.inc';
  require_once './includes/unicode.inc';
  require_once './includes/image.inc';
  require_once './includes/form.inc';
  require_once './includes/mail.inc';
  require_once './includes/actions.inc';
  [...]

I would think that even with a profile installation process, the boot should be full by the time you install gallerix.

Thank you.
Alexis Wilke