I get below kinds of pathes generated for taxonomy images in nodes or views-displays:

[site-name]/sites/default/files/imagecache//taxonomy_image/[picture.ext]

Path to uploaded taxonomy images is: sites/default/files/taxonomy_image
and I do not use imagecache presets, means nothing marked in that config section of taxonomy_image.

Any ideas what's wrong here or did I miss anything?

Comments

humanchimp’s picture

I don't think I'm experiencing the same issue, but it is similar. Basically, when I call


$image = taxonomy_image_get_object( $tid );
print $image->path; // prints the filename, with no path.

In my configuration, we're using "category_pictures" as the namespace, so path should say ../sites/all/files/category_pictures/image.png, but it just says image.png. I don't know if this is a bug, or a misconfiguration on my end.

mastoll’s picture

I am having the same issue as jbiechele

This is the path for the image that renders in the node display:
http://cals.arizona.edu/arizonawet/teachersupport/sites/cals.arizona.edu...

This is what it should be, and what the setup page says it will be:
http://cals.arizona.edu/arizonawet/teachersupport/taxonomy_pictures/azcw...

The only part I can modify is the folder name i.e. taxonomy_pictures.

I see the image only on the taxonomy edit image screen. What can I do to remedy this?

mastoll’s picture

Wow, this is frustrating.

The imagecache module is involved. I disabled imagecache and the images showed up on the node displays. Re-enabled it and of course they disappear due to strange path rendering.

Then finally, I found a remote forum issue that said "misunderstood imagecache option and selected ORIGINAL, the only option there . . ." So, I blindly did the same. And, it worked.

The instructions on the Imagecache Preset setting sounds contradictory i.e. "If you select one of these presets, or provide one in your call, then Taxonomy Image will use Imagecache to process the image and ignore the following settings. "ORIGINAL" effectively disables Imagecache and uses the following settings." sounds like if you select the only selection option then the settings are ignored AND if select the only selection option then the settings are used!

My issue is resolved, by I'm sure that future users will struggle for hours like I have. I am sure that most of the "images don't show up" issues are this exact thing. So, perhaps a revision to the Imagecache Preset item instructions is in order along with a note in the documentation about how the two modules interact is in order. Could save so many people so much time.

devkinetic’s picture

We just encountered this issue last night when moving our site from dev to staging. In our dev environment we had not selected any options under the imagecache settings. When we moved to staging, all of our images disappeared. Setting the select to "Default" as mastoll suggested did the trick.

I would suggest adding a default option of "Default" for that setting.