I am trying to upgrade this module to work with Drupal 7 and the upgrade fails due to this error:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://site.com/update.php?id=1014249&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function imagecache_presets() in /home/site/public_html/sites/all/modules/imagecache_actions/canvasactions/imagecache_canvasactions.install on line 38

Any ideas how to get around this?

CommentFileSizeAuthor
#5 1237226-remove-d6-upgrade-hook.patch1.51 KBmrfelton

Comments

makeapage’s picture

Have the same problem....

makeapage’s picture

Further info:

Notice: Undefined index: update_success in update_results_page() (line 162 of /home/xxx/public_html/www.xxx.com/update.php).

The update process was aborted prematurely while running update #6201 in imagecache_canvasactions.module. All errors have been logged.

mariano.barcia’s picture

same problem here

mrfelton’s picture

Same here.

Drush command terminated abnormally due to an unrecoverable error. Error: Call to undefined function imagecache_presets() in /var/aegir/platforms/live/systemseed-7.8-09262011/sites/all/modules/contrib/imagecache_actions/canvasactions/imagecache_canvasactions.install, line 37

Output from failed command : Fatal error: Call to undefined function imagecache_presets() in /var/aegir/platforms/live/systemseed-7.8-09262011/sites/all/modules/contrib/imagecache_actions/canvasactions/imagecache_canvasactions.install on line 37

it's referring to code in imagecache_canvasactions_update_6201(). Is that update hook still supposed to be in the Drupal 7 version of the module? Looks like a Drupal 6 update hook.

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new1.51 KB

I tried upgrading to 2.0 before upgrading to D7, but made no difference. Attached patch seems to resolve it for me:

moices’s picture

The function imagecache_presets do not exist anymore in drupal 7.
image_styles should be used.

Replace imagecache_presets for image_styles in imagecache_canvasactions.install.

Aurochs’s picture

Why did not they commit this in the latest dev release???

fonant’s picture

Fix in #6 seems to work for me.

fietserwin’s picture

Status: Needs review » Fixed

Patch is OK, even though you should have upgraded in Drupal 6 and thus already be on 6201. But as there is no upgrade path from image presets (D6) to image styles (D7) upgrading does not make any sense. So I will remove this upgrade function (as in the patch).

Note: it looks like the whole install file can be removed, but will check that later.

Status: Fixed » Closed (fixed)

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