I'm having trouble using the theme('imagecache' call. I can't tell if I'm doing something wrong or this is a bug.

The image in question exists. The imagecache preset works too because the same image I'm testing with has been successfully added to a node and displayed using the same imagecache preset.

My code follows:
$alt = "this is a test alt";
$title = "this is a test title";
$attributes = "";
$image_path = 'sites/default/files/test-header.jpg';
print theme('imagecache', ‘header-image’, $image_path, $alt, $title, $attributes);

The output is <img title="this is a test title" alt="this is a test alt" src="http://staging.mysitename.com/sites/default/files/imagecache/0/test-header.jpg">

Notice the "0" in the src path?

The correct path should be: http://staging.mysitename.com/sites/default/files/imagecache/header-image/test-header.jpg

Any suggestions?

Comments

fizk’s picture

Status: Active » Closed (fixed)

Please reopen if this is still an issue with ImageCache 6.x-2.0-rc1.