Hello,

I want to use the "Overlay (scale-9) - Position a selected file in a layer on top of the canvas." filter, but with the option "Place overlay under image"

I i use it i get the error code: Fatal error: Call to undefined function canvasactions_definecanvas_image() in .../imagecache_scale9actions/scale9actions.inc on line 534

Comments

edegro’s picture

canvasactions_definecanvas_image() is defined in the module ImageCache Actions. Double check that you have it installed and enabled. It should be a project dependency, I'll have to check that.

edegro’s picture

More specifically, make sure the ImageCache Actions module 'Imagecache Canvas Actions' is enabled.

FuXXz’s picture

Yes the Imagecache Canvas Actions is enabled, because its dependence! It is not possible to activate Imagecache Scale-9 Actions without it

this error only appears with the "Place overlay under image" option

edegro’s picture

What version of ImageCache Actions are you using? A full list of your modules with their versions might also be helpful. It must be a conflict like that. Thanks.

FuXXz’s picture

Thank you for reply! This are my versions!
ImageAPI 6.x-1.8
ImageCache 6.x-2.0-beta10
Imagecache Canvas Actions 6.x-1.7
Imagecache Scale-9 Actions 6.x-1.0

edegro’s picture

My test installation uses those exact versions. When exactly does the error appear? Could you possibly list the steps you took to reach it? Thanks.

ZuluWarrior’s picture

HI,

Any news on this? I am having the same problem!

I am using the same versions (Drupal6, Php5, GD Library) except imagecache_scale9actions-6.x-1.01...

The Error appears for me after clicking the "Preview" link in the imagecache build screen (admin/build/imagecache/#), the image just doesn't appear on the imagecache build screen, and clicking "Preview" exposes the php error...

My Actions for the imagecache preset are:
Scale (350x350, No Upscaling) -- sensible image size
Scale9 Overlay (left:1, top:1, right:350, bottom: 350, Place Under Image) -- add a background if transparent
Scale9 Overlay (left:20, top:20, right:330, bottom:330, Over Image) -- Add a border

It works without the underlay, but doesn't when underlay added...

I did some checking and looked at the list of included files at the point of error, I found that imagecache_canvasactions.module was indeed loaded BUT canvasactions.inc (a file within ImageCache Actions, which is where the function canvasactions_definecanvas_image is defined) is NOT loaded at the point of error! Any more info I find I'll post but to be honest lack of comments in code makes for slow going! :)

Hope you can help and Many Thanks for looking!

ZuluWarrior

edegro’s picture

Status: Active » Fixed

This should be fixed with the current release version. Thanks for the help.

Status: Fixed » Closed (fixed)

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