I was wondering about the way that images are associated with article.
When I use the main image/thumbnail image the files are uploaded to sites/all/files (which is the default path) with the thumbs going to a folder called imagefield_thumbs that is created on the fly. However, the template is trying to pull the images for the article from the imagecache folder so it displays a broken image.
The same goes for the Author image assigned in the author content type.
When I look at the author image and click the crop option and select a preset then Imagecahce seems to behave properly. But I'm having no luck when it comes to an article image.
I'm right in thinking (I think) that the imagecache module creates sub-folders in an imagecache folder based on image cache presets. So it seems that something is not connecting here. Am I doing something wrong?
Is it a template call that is wrong? Do I need to set-up a new imagecache preset and, if so, how does that map to the fields in the article page.
I'm aware that I might be missing something really simple here, so apologies if I'm being dim. But any help would be great
Best
Andy
Comments
Andy, Are you always looking
Andy,
Are you always looking as user #1?
If not, you might need to set the access rights correctly.
Otherwise, check if the folder /sites/default/files is writable by Drupal
Checked permissions
Thanks for the reply Resveld
The site folder is writeable by Drupal. Checked the settings in FTP and the settings in drupal itself. Its writing the files okay but it seems not to the place the template is expecting!
Tried looking logged in and logged out as well. No difference.
So I'm wondering where it's set that the main image and image thumb use imagecache or whether the template (wrongly) assumes that.
do you have a link or is it
do you have a link or is it local in xampp?
It's a local example at the
It's a local example at the moment I'm afraid.
Can you post a little source
Can you post a little source from the page?
I have it running in xampp as well and I have no problems.
hopefully this helps!
I had this same issue, and I realized I did not have the .htaccess file present in the root drupal directory. Actually, 2.1 had just come out so I downloaded it, copied the .htaccess from the archive to the root of the site, and everything started working, even though I was running 2.0...
Another thing to make sure is that mod_rewrite is enabled.