Download & Extend

7.x Upgrade fails - Call to undefined function imagecache_presets()

Project:ImageCache Actions
Version:7.x-0.0
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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?

Comments

#1

Have the same problem....

#2

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.

#3

same problem here

#4

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.

#5

Status:active» needs review

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

AttachmentSize
1237226-remove-d6-upgrade-hook.patch 1.51 KB

#6

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.

#7

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

#8

Fix in #6 seems to work for me.

#9

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.

#10

Status:fixed» closed (fixed)

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