Apparently, this has to be in the global includes directory and not the site-specific one. This is a problem for testing upgrades :-(

I'm in the middle of testing an upgrade from Drupal 5 to Drupal 6 on Fedora 11. The sites sub-directory has it's own modules, includes, and libraries directories. The image module is there (and only there) and is loaded, but it fails to find the image.imagemagick.inc file.

On Fedora, it looks like this:

/usr/share/drupal/{modules,includes,libraries} <- core only
/usr/share/drupal/sites <- symlink to /etc/drupal
/usr/share/drupal/sites/{all,default} <- installed by default, but have to be configured
/usr/share/drupal/sites/mysite.example.com <- symlink points to location of my real web site data

Under the mysite.example.com directory, I have a libraries, includes, and modules subdirectories. All modules are detected correctly, but the file image.imagemagick.inc is not loaded unless I put it in the global includes directory, /usr/share/drupal/includes, which is subject to being trashed during upgrades of drupal itself.

I'm not sure if this is really a module issue or a core issue since I'm not sure how includes are supposed to work....

Comments

joachim’s picture

I think this may be core -- image_get_available_toolkits() is called by image_im_advanced.install and that's core: http://api.drupal.org/api/function/image_get_available_toolkits/6

joachim’s picture

Status: Active » Closed (won't fix)