Posted by RikiB on August 2, 2011 at 7:27pm
9 followers
| 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.
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
I tried upgrading to 2.0 before upgrading to D7, but made no difference. Attached patch seems to resolve it for me:
#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
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
Automatically closed -- issue fixed for 2 weeks with no activity.