drupal imagecache thumbnail teaser not visible
IMAGECACHE should create the file in the imagecache folder, but when it can't it creates a different folder...
Create a new preset (e.g. Scale to 100x100) Afterwards you should get a Preview link sites/default/files/imagecache/small/imagecache_sample.png?1273411576
Click on the link, you should see the blue drupal drop...
Now use your FTP client to check /sites/default/files/imagecache/small
If you had your FTP Client (filezilla) already open you know that there's a file:
/sites/default/files/imagecache_sample.png
What you may not realize is that you have to hit refresh about 5 times to ensure that you can see the new preset directory (and image cache file) is created (only after a browser has requested it and Apache has not been able to service that request, therefore drupal gets handed the URL which the IMAGECACHE module starts up and creates the preset image!)
/sites/default/files/imagecache/small/imagecache_sample.png
------------------------------------------------------------------
TROUBLESHOOTING
First check that cleanurl is enabled or rewrite or permissions...
Next, ensure you have all modules: cck, filefield, imagefield, imageapi, imagecache
ENABLE ImageAPI GD2 & ImageAPI ImageMagick!
Administer > Site configuration > ImageAPI Here you can choose which tool to use (GD2 only supports png, jpg, gif)
Administer > Site configuration > File system. Are the file system path and temporary directory writable by Drupal? Is the download method public?
Next click on home (or any other way that your new Image Node will display on a listing page) and you will see the "Teaser view" (Title, date, author, thumbnail!)
Using your FTP client, again hitting refresh many times, you will now notice:
/sites/default/files/imagecache/small/newimage.png
Sucess!
ANONYMOUS USERS (permissions)
admin/user/permissions anonymous users checkboxes (and authenticated too I guess)
content_permissions module => view field_image (custom field name)
imagecache module => view imagecache "preset name"
node module = access content
flush all caches
admin/content/node-settings/rebuild
(adminster > content management > post settings)
AUTHENTICATED (OR IMAGE_UPLOADER) ROLE Administer > User management > Permissions admin/user/permissions
content_permissions module => view field_image
node module => create image content (for new content type "image")
edit own image content
------------------------------------------------------------------
I discovered that the node believes the file URL is:
http://domain.com/sites/default/files/imagecache/thumb/test3.png
BUT my FTP shows me that ImageCache is creating the files in
/sites/default/files/imagefield_thumbnail
WOW, that sucks...
Do ImageField (CCK) and ImageCache conflict or something? (I certainly can't configure how imagecache decides on the thumbnail directory)
Is there difference between
Imagecache 6.x-2.0-beta10 Download (65.9 KB) 2009-Aug-19
6.x-2.x-dev Download (225.39 KB) 2010-May-04 REQUIRES MODULE: TRANSLITERATION
It certainly looks like it... I'd rather not hack into the php and make a custom solution, I'd prefer to install the right module/configuration...
The new module (ImageCache from 2010 which is the "dev" edition) is maybe better?
"The directory sites/default/files/imagecache/thumbnail has been created."
Though the Preview still doesn't work (probably not a good sign) http://domain.com/sites/default/files/imagecache/thumbnail/imagecache_sample.png?1273179671
New Content Type: image
(pretty much image everywhere including Manage Fields -> image ... file ... image
Path settings = default no default image (right?)
Display Field settings = Full Node = thumbnail URL
(which is how I discovered the earlier error!)
automatic alias, right?
When I upload, weirdly, the "thumbnail" always appears correct! (right next to REMOVE)
PREVIEW (shows me the image, or because I modified Display Field, shows the thumb url) http://domain.com/sites/default/files/imagecache/preset/test2.png
So the "troubleshooting" page is supposed to fix all errors but really doesn't explain much clearly...
/sites/default/files/.htaccess SHOULD ONLY BE TWO LINES: SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 Options +FollowSymLinks
I had an extra Options None in there?