Hi Dopry,

I have an error that I can't track down.

I can get as far as installing and congifuring ImageAPI, but when I switch on Imagecache I get the white screen of death right after enabling the module on the modules page.

I've ruled out that other modules might cause this, I thoroughly tested against all the other modules I was running. I can't get the site back until I remove Imagecache from the module dir and refresh. Once its refreshed, I can add the module back to the modules dir and refresh the page and for all purposes it -looks- like the module is enabled and running.

But when I create presets for image formatting, I get all kinds of WSOD issues.

Am I running the wrong version of something?

Drupal 5.10
ImageAPI 5.x 1.2
Imagecache 5.x 2.1

Web server: Apache/2.0.59 (Unix) PHP/5.2.0 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7l

Let me know what you think?

Comments

moeed’s picture

Project: ImageCache » Test driven development infrastructure
Version: 5.x-2.1 »

What version of Imagefield are you using? I just tried to upgrade from 1.6 to 2.1 and I got the same. When I enabled display_errors in the php.ini it showed me the following error:

Fatal error: Call to undefined function _imagecache_get_presets() in /htdocs/sites/all/modules/imagefield/imagefield.module on line 564

In the new version of Imagefield 2.1 doesn't call this function so I suspect upgrading Imagefield would solve your issue. Though I tried upgrading to Imagefield 2.1 but the uploader on it is broken.

If you like you can change the function call in the Imagefield module (line 253, 564 and 586) to call the new imagecache presets function imagecache_presets() which seems to solve the problem but I'm not sure if it will cause problems elsewhere. Any thoughts on this from Imagefield and Imagecache authors would be great.

Amazon’s picture

Project: Test driven development infrastructure » ImageCache
Version: » 5.x-1.0

Moving from testing to imagecache.

seaneffel’s picture

Version: 5.x-1.0 » 5.x-2.1
Status: Active » Closed (fixed)

One of the following steps resolved my issue, though its been really difficult to determine which one really did it:

1. I was using Thickbox 5.x-1.2 with Imagecache 5.x-2.x, and apparently that is a no-no. I thought that they just wouldn't work together but instead they actually break Drupal. See the bold note on http://drupal.org/project/thickbox

2. Imagecache's status warning always suggests that you raise the PHP memory_limit to at least 94M. My php.ini was set to 94M, but then I jacked it up to 125M and the site does not break anymore. This has only been effecting my dev server and not my production server so, insomuch as I care, this problem is resolved.

Some reason or another it looked like this combination of point 1 and point 2 was causing my WSOD problem, but I didn't dive into why.