For some reason, I am unable to enable the Imagecache Text Actions module. When I try to do so, the browser returns a blank page with no content (or source). If I then reload the modules page, the module remains unselected.

I can't find any other issues mentioning this problem, so not sure if it's the combination of versions I'm running or something else?

Drupal 5.15
ImageCache 5.x-1.7
ImageAPI not installed
PHP 4.4.8
MySQL 5.0.41

Comments

nasi’s picture

Title: Can't enable Imagecache Text Actions » Drupal 5.x version also requires Imagecache 2?

I think I have tracked down the problem here. In imagecache_textactions.install there are calls to imagecache_action_definition(). This function is only defined in Imagecache 2, not Imagecache 1.

The release notes seem to suggest that Textactions was backported from the D6 version, so was this an oversight in the backport, or is there now a requirement for IC 2 regardless of Drupal version?

In essence, is Imagecache Actions 5.x (and more specifically Imagecache Text Actions) compatible with Imagecache 1 or not?

If not then that is a real blow for me. I am working on a site that only has access to PHP4, which didn't look like it was going to be a problem as I only need text overlays and so don't need to use ImageAPI. If I need to use Imagecache 2 then that requires ImageAPI and that is not an option atm.

dman’s picture

I can't trace it too closely, but yes, anything that's been added to imagecache_actions in the last 3 months or so is targeting imagecache 2.
There's no reason I know why text actions can't be backported to imagecache 1 compatability - EXCEPT that I'm not maintaining a legacy branch just for imagecache1, nor have I separated the differences. I've just tried to keep up with development and changes that were happening there while creating a new and immature module.
The textactions were added later still, by another contributor, and there was no backwards compatibility that we had to support.

I've got not much interest in rewriting the textactions to work without the imageapi model. It really was that code change in imagecache that made imagecache_actions possible.

PHP4 restrictions are unacceptable this year. Working to support that is like working to support IE4.
There may be way to tweak imagecache 2 to be php4 compatible, with some limitations or compromises - so that's up to you.

nasi’s picture

Category: bug » support
Status: Active » Closed (fixed)

Thanks for clarifying the situation for me – I thought this might be the case anyway from what I'd read about the new Imagecache 2 actions API.

I completely understand your position and wouldn't expect you to put lots of effort into supporting older versions for an increasingly diminishing market. It's just unfortunate that it creates a problem for my particular setup at the moment.