When creating an 'Image Mask' I got the error 'Call to undefined function file_create_path()', this is because the function no longer exists in Drupal 7.
I got the error on line 75 of canvasactions.inc, where

$filepath = file_create_path($action['path']);

should be replaced by

$filepath = 'public://' . $action['path'];

Maybe there are other effects that have the same bug, haven't really checked them all.

Comments

semanthis’s picture

thank You dazz, that change solved my problem.

Anonymous’s picture

Status: Active » Reviewed & tested by the community

This solved it for me, thanks

changed status to rtbtc

Anonymous’s picture

Please put this in the next (dev) release.

3rdLOF’s picture

Status: Reviewed & tested by the community » Active

Can we PLEASE fix this for once? Kind of getting annoying having to patch this with every dev release.

fietserwin’s picture

Status: Active » Closed (duplicate)

Fixed and committed by the patch from #1494830: Patch for multiple issues with canvas actions

Please note that defining files (if an effect needs one) has been changed with that patch and will probably be further changed. I'm thinking that explicitly specifying public:// or private:// is better than the module looking at a number of places. This will thus be a not backwards compatible way, unless you start using public:// or private:// right away.

7.x-1.0 is on its way, check the project page regularly...