I wanted to use Aspect switcher. So I created two presets - one for the portrait and second for landscape. When I created these presets, everything was OK and I received no warning. When I created new, third preset, I used there Aspect switcher. I choose previous presets for portrait and lanscpae images and set ration to 1. After I save the form for Aspect switcher action, I received notice

"Notice: Undefined variable: preset_name in canvasactions_aspect_image() (line 705 of /data/web/myweb/sites/all/modules/imagecache_actions/canvasactions/canvasactions.inc)."

I see note that "The image effect was successfully applied." above the warning.
But on pages where the presets are used, I see the same notice about undefined variable. My presets names contains only allowed characters.

Have somobody similar problem?

Comments

rosvain’s picture

I am having the same problem and have not been able to find a solution.

Thank you
Ramiro

dman’s picture

Status: Active » Fixed

OK, the variable was renamed in D7.
a fix for that now added to 7--1 dev

Status: Fixed » Closed (fixed)

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

Blue’s picture

The problem is still there!

I have 2 presets:
1) one for the portrait - Scale and crop 128x128
2) second for landscape : scale 128px

The one for landscape works great but the one for portrait it does not work.

The notice is : "Notice: Undefined variable: preset_name in canvasactions_aspect_image() (line 705 of .../sites/all/modules/imagecache_actions/canvasactions/canvasactions.inc)."

How can this be fixed? Many thanks for this beautiful module.