At admin/config/media/image-styles/testsuite
There is no images under GD

Then i tried to clear all cache, en then an error
at admin/config/development/performance
User error: Failed to open original image module://imagecache_testsuite/sample.jpg with toolkit gd i imagecache_testsuite_generate() (linje 244 af /home/www/xxx.xxxxx.dk/sites/all/modules/imagecache_actions/tests/imagecache_testsuite.module).
and so 5 times below

Pafla

Comments

fietserwin’s picture

- But does that image exist (all lower case)?
- Is the system_stream_wrapper module installed correctly?
- What are the access rights to that file? (If IM does work, it looks like PHP opens the file with different flags than IM does)

Pafla’s picture

Under "Sample" the most of them have an image.
The system_stream_wrapper module is installed like the other modules, and no errors there.

"What are the access rights to that file? (If IM does work, it looks like PHP opens the file with different flags than IM does)"
This mean?

dman’s picture

Curious that GD could be failing when IM doesn't. From our level it's just a switch in the toolkit.
Unlikely to be memory as the image is pretty modest.
It *does* copy the sample image over into that directory at the beginning (if not there already) and I'd not anticipated what to do if that fails. But again - if imagemagick is doing OK, that doesn't seem to be it.

Pafla’s picture

My old version of Imagecache worked fine, 7.x-1.0+11-dev
But the i did not use system_stream_wrapper module - maybe this is the problem?

Pafla’s picture

The folder at /sites/default/files/styles is empty

When using 7.x-1.0+11-dev the folder styles is not empty

And when disable the modules errors:
User error: Failed to open original image module://imagecache_testsuite/sample.jpg with toolkit gd i imagecache_testsuite_generate() (linje 244 af /home/www/xx.xxxxx.xx/sites/all/modules/imagecache_actions/tests/imagecache_testsuite.module).
(9 times)

Any solution

fietserwin’s picture

Can you debug the code? There is a chain of calls that all may fail and wil lead to this error. We want to know which function returns FALSE and because of what condition.

Pafla’s picture

How to do this?

fietserwin’s picture

Hmm, if you don't know how to debug, it is difficult to explain in a few sentences. Certainly within the scope of this issue queue, where we answer in our own free time. OTOH, if you only want to know where to put breakpoints or add logging statements, we can help.

Pafla’s picture

I have tested versions from 1.0-1-4 + latest dev
, they all have the same issue, but i have figured out,when not enable module "Image Effects Text test" errors are gone.
What does this part of "Module" do?, or what do i miss if i don´t enable this?

fietserwin’s picture

It is a test module for the maintainers of the imagecache_actions project. It doesn't do anything for end users.

Pafla’s picture

Thx

I just disable this and use it as it is

dpatte’s picture

I also noticed that somewhere along the line that imagecache started failing on my site. Images were not being output to the cache directories. I tracked it down and the TEXT effect was the culprit. I removed the text effect and things are running again. Note. This was Drupal 6.