This issue is similar to http://drupal.org/node/326858, but not the same, as that one happened after an upgrade, and mine is a brand-new installation of ImageCache (the module is new, but the site is updated from Drupal 5.7 to 6.6).
I'm running the site in Mac MAMP Pro 1.7.2 (MySQL 5.0.41, PHP 5.2.6). The problem is that directories and image presets are simply not created. The imagefield to which Imagecache is set to work with do not show preset images. They do show when I select 'Image' (the default display for image fields) in the Display fields settings.
Already tried:
- Verify permissions for the files directory. I have set them to 'read & write' (777)
- run cron
- Flush presets after and before running cron.
- uninstall e reinstall ImageCache, Imagefield and ImageAPI
- change the directory setting in the image field settings
- delete and recreate presets before and after running cron and flushing presets
Nothing solved the problem. The imagecache directory is created, but the presets subdirectories and images are not. The original (not preset) images and their corresponding thumbnails are normaly uploaded to the server via Image Field, as I can see them in the files directory.
Is there something else I should try?
Comments
Comment #1
aspafford commentedI'm having a similar problem. After upgrading to the latest version of ImageCache, preset folders and images are no longer created. I've also tried deleting files/imagecache and found that this folder is not being created after un-installing and then re-installing imagecache. This seems like it must be a permissions problem but I'm not sure where to begin troubleshooting since everything was going fine before the upgrade.
setup:
Comment #2
aspafford commentedI've tried rolling back to the beta1 version and am still unable to create presets, so it would seem that my problem is probably not with the latest imagecache version but possibly another conflicting module or some other setting.
And I've tried the troubleshooting page with no luck but it may help someone else.
http://drupal.org/node/224913
Comment #3
dtabach commentedMy problem was solved after I changed the files directory location from files to sites/default/files, which is the default suggestion in Drupal. I also accepted the default location for the temporary directory (which is /Applications/MAMP/tmp/php for MAMP server).
I'm not sure if the fix was due to these location changes or if it was a result of Drupal creating a new .htaccess for sites/default/files. My .htacces in the old files directory may be outdated, because I updated the site from Drupal 5 to 6 and did not change it manually.
Comment #4
geraldito commentedSimilar issue with 6.x-2.0-beta solved deleting and creating directory files/imagecache by hand and giving 777 permissions. Log showed that module doesn't have permissions to create directories inside imagecache directory as it was created with user www-data (by cron?) and 775 permission.
Comment #5
aspafford commentedmy problem came from a custom template that wasn't pulling in the picture variable properly.
debugging the custom node.tpl.php with
print_r(get_defined_vars());renders the image and creates the preset folder and image.
what I learned here is that the imagecache presets are created when the node is viewed, not when the node is created. this makes sense now since we're talking about 'cached' data, but intuitively I had expected the image to get uploaded and then resized, cropped etc. by the preset all at once when the node was saved.
Comment #6
baronmunchowsen commentedI am experiencing a similar issue with a drupal 6.6 site (upgraded from 5.11 > 6.5 > 6.6). I installed Imagecache after the site was upgraded to 6.5 (i.e. wasn't installed before). Everything installs fine (no errors) but the imagecache directory and files are not getting created at all once I have specified a preset, allocated it to an imagefield and created a node using the imagefield.
I have tried all the suggestions listed above with still no luck.
Incidentally, when working on new 6.6 sites everything works just fine. Imagecache seems to works like a charm.
Comment #7
dorien commentedSame problem.
New and clean Drupal 6 install. I chmodded 777 the default/files/imagecache directory.
But there are no subfolders for my presets, nor are the images there. I manually created the subfolder Thumb, but the images are still not being created.
Thanks for all your hard work! I love this module!
***********
Edit, Sorry, I don't have clean urls on. I'll get back and see if this solved it. Maybe something for all posters to check??
***********
Comment #8
dnystwn commentedI had the same problem. It was solved after I enabled Clean URL
Comment #9
dorien commentedFixed it with me too.
Comment #10
dman commentedI've rolled a few solutions into
Troubleshooting imagecache end
Troubleshooting imagecache MIGRATION
- Hopefully that's covered most of what's mentioned here. Please feel free to add anything more that needs clarification to those docs.