Closed (fixed)
Project:
ImageCache Scale-9 Actions
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2010 at 14:31 UTC
Updated:
21 Sep 2010 at 01:30 UTC
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
Comment #1
edegro commentedcanvasactions_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.
Comment #2
edegro commentedMore specifically, make sure the ImageCache Actions module 'Imagecache Canvas Actions' is enabled.
Comment #3
FuXXz commentedYes 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
Comment #4
edegro commentedWhat 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.
Comment #5
FuXXz commentedThank 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
Comment #6
edegro commentedMy test installation uses those exact versions. When exactly does the error appear? Could you possibly list the steps you took to reach it? Thanks.
Comment #7
ZuluWarrior commentedHI,
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
Comment #8
edegro commentedThis should be fixed with the current release version. Thanks for the help.