if the function imagefilter doesn't exist the color actions module try to include/require the file imagefilter.inc from imageapi_gd module :

require_once drupal_get_path('module', 'imageapi_gd') .'/imagefilter.inc';

but this file exists at the root of the module imagecache_actions. If we change all this includes this problem is fixed :

require_once drupal_get_path('module', 'imagecache_actions') .'/imagefilter.inc';

Comments

rooby’s picture

Title: include file missing 'imagefilter.inc' from module imageapi_gd » Fatal error: require_once() Failed opening required '/imagefilter.inc'
Priority: Normal » Major
Status: Active » Needs review
StatusFileSize
new1.45 KB

For more info, this causes this error:

Fatal error: require_once() [function.require]: Failed opening required '/imagefilter.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/mysite/sites/all/modules/contrib/imagecache_actions/coloractions/imagecache_coloractions.module on line 172

When you edit an image style that has a color shift in it, along with other cases.

Here is a patch to fix it.

fietserwin’s picture

Priority: Major » Normal
Status: Needs review » Fixed

Thanks for your patch. I applied and committed it.

I was not major though, as, to my knowledge, imagefilter is available on most systems.

Status: Fixed » Closed (fixed)

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