I posted this a couple of weeks ago in another issue thread, but haven't received a response. I could really use some help figuring this out, and will pay $20 via Paypal to whomever can fix this. The issue is that the images I upload are not appearing in the node, or any views, and this is because the URL for them is incorrect, they save to one place and Drupal looks for them in another.

I'll try to detail out exactly how everything is set up.

I'm using:
Drupal 6.5
PHP 5.2.1
CCK 6.x-2.0-rc10
ImageAPI 6.x-1.0
ImageCache 6.x-2.0-beta2
ImageField 6.x-3.0-alpha2
Views 6.x-2.0
"Sites" and "Files" folders are set to 755

I have a content type called "Boats". Within this content type I have an ImageField called "Picture". The configuration for "Picture" has "boats" as the "File Path".

I have two ImageCache presets, Node_View and Thumbnail. Views displays the "Thumbnail" on a page that lists out nodes of this content type, and I have the ImageField in CCK set to display Thumbnail in teaser, and Node_View on the full node.

When I create a piece of content the browser is looking for the picture (in the full node) here: /sites/default/files/imagecache/Node_View/boats/"imagename".jpg

When navigating to the View which lists nodes and should display the thumbnail, the browser is looking for the thumbnail here: /sites/default/files/imagecache/Thumbnail/boats/"imagename".jpg

Neither URL the browser is looking contains those files. They are both found here: /sites/default/files/boats/

Note the URL where the files actually are does not include the preset name, nor "imagecache".

What am I doing wrong?

Thanks for any assistance.

Dan

Comments

vm’s picture

you should first update your core and modules to the lastest versions to see if bug fixes that have been already fixed, fix your existing problems.

Do not forget to back up your database and files before starting the update process of both core and contrib modules.

AgentD’s picture

Ok, I updated everything so I have the latest versions. The pictures were not working, so I then created a new piece of content to see if it would only affect new ones, but the new node also has the wrong URL for the thumbnail and node view (/sites/default/files/imagecache/Thumbnail/boats/"imagename".jpg).

Thanks for taking your time to help.

Dan

cedarm’s picture

The URLs look fine to me. The files inside of imagecache/PresetName aren't supposed to exist until after they are first requested. On the first request, imagecache generates it and saves it. If you go to the image URL directly in your browser, what do you get? Is it a Drupal not found page, or a blank page, or something else?

Do the file names have any "strange" characters in them? & % + etc. Try something simple like test.jpg. Also, I have found that GD does some strange things on certain images (and doesn't work), where imagemagick works fine. I'm not saying you need to switch, but try some other images too.

AgentD’s picture

There were hyphens in the image names, I tested one without, but that didn't fix the issue.

If I go directly to the image in my browser I get a Drupal "Page not found".

Dan

Jeff Burnz’s picture

Look on the server to see if the files & folders are actually being generated (I assume they are not), the paths look fine to me but 755 sounds iffy, I would think 777 may be required.

You dont mention what version of Filefield module you are using.

Have you tried flusing the presets? admin/build/imagecache/list click flush.

AgentD’s picture

Files are there, I can see them when I FTP.

I "flushed", that didn't seem to do anything.

I'm using filefield 6.x-3.0-alpha5

Dan

Jeff Burnz’s picture

So there are files at;

~/sites/default/files/imagecache/Node_View/boats/

These would be the imagecache derivitives, not the actual files you uploaded.

Is the site live - if so please post a link.

AgentD’s picture

I will send a link when I'm back home. I don't want to post a link publicly, so will PM/email.

Thanks.
Dan

drewish’s picture

Status: Active » Postponed (maintainer needs more info)
drewish’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

This issue is being closed due to lack of feedback. Please update to the latest version of the module and see if the problem still occurs. If it does and you can provide more information please re-open this issue.

AgentD’s picture

This was never fixed, but I believe the issue is the same as here: http://drupal.org/node/371195