Just helping someone on the forums and recommended this

Edit teaserthumbnail.module, about line 20

<?php
  // We build a clean array of the presets namespaces to store the preset
  // itself and not its key
  $presets = _imagecache_get_presets();
?>

to

<?php
  // We build a clean array of the presets namespaces to store the preset
  // itself and not its key
  $func = (function_exists('imagecache_presets')) ? 'imagecache_presets' : '_imagecache_get_presets';
  $presets = $func();
?>

Fully untested, as I haven't a D5 local install with the required modules

Comments

antipix’s picture

does this solution work for someone ?
with this fix i can go on teaser thumbnail settings page but all settings are empty...

sakib000’s picture

same problem here, every field is empty

hunvreus’s picture

I never used Imagecache 2 but will have a look at the new api soon. I've got already to upload the latest version with view support and will make sure to make it follow by an Imagecache 2 compatible version.

MetalicusKhan’s picture

change (line 22):

  $presets = _imagecache_get_presets();
  $presets_clean = array();
  foreach($presets as $preset) {
    $presets_clean[$preset] = $preset;
  }

to:

  $presets = imagecache_presets();
  $presets_clean = array();
  foreach($presets as $preset) {
    $presets_clean[$preset[presetname]] = $preset[presetname];
  }
hunvreus’s picture

This is fixed but not committed yet: I need first to finish the views support.

hunvreus’s picture

The latest version is being committed: support for ImageCache 2, as well as Views and RSS.

hunvreus’s picture

Status: Active » Fixed
hunvreus’s picture

Status: Fixed » Closed (fixed)