Hi,

when I try to add a subroutine action I get this Error:
Fatal error: Call to undefined function imagecache_presets() in .../imagecache_actions/customactions/imagecache_customactions.module on line 188

Tekl

CommentFileSizeAuthor
#4 imagecache_customactions.patch1.04 KBbgilhome

Comments

dman’s picture

Whatever that function should be would have been renamed to something else in the upgrade ...
Needs fixing I guess.

bgilhome’s picture

Should the function be image_styles?

Line 188-190:

  foreach (image_styles(TRUE) as $preset) {
    $presets[$preset['name']] = $preset['name'];
  }

And line 213-216:

  if ($preset = image_style_load($data['subroutine_presetname'])) {
    foreach ($preset['effects'] as $effect) {
	    image_effect_apply($image, $effect);
    }

seems to work for me.

bgilhome’s picture

bgilhome’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

Here's a patch against current 7.x-dev.

dman’s picture

Status: Needs review » Fixed

Thanks for that. the change makes sense, was just a renaming of the function that slipped through the upgrade.
Patch is good.
Pushing it into -dev now.
Not tested, but it can't be worse than the current situation, so I'll trust it..

Status: Fixed » Closed (fixed)

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