Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I can see that sometimes images are not created. Only some of the presets are created, while all the other images do not show up in the browser. I tried to reload the whole page, clear the browser cache, open the image by its URL - all fails. Only flushing the Drupal cache (using admin menu) does solve the problem.
Comments
Comment #1
mthomas CreditAttribution: mthomas commentedI'm experiencing a similar problem after upgrading to Filefield 6.x-3.5. I see a 404 in my error log generated by imagecache that looks like, "404: Unable to find **originalimagepath**" Clearing cache solves the problem temporarily.
The path began with images/ but the image file's path began with files/images/. Perhaps Imagecache is getting an inappropriate path from Filefield?
Comment #2
jaochoo CreditAttribution: jaochoo commentedIs there anyone who can help with this?
Comment #3
juliebaumler CreditAttribution: juliebaumler commentedWe are seeing this same thing occasionally using 6.x-2.0-beta10. It seems to occur intermittently when we add a lot of images at once.
Comment #4
jaochoo CreditAttribution: jaochoo commentedI am getting the same problem even when uploading only one single image.
Comment #5
jaochoo CreditAttribution: jaochoo commentedIs there any update on this one? We are still getting this issue regularly. Many images do not show up properly but we need to flush the cache first to get all images.
Comment #6
augiem CreditAttribution: augiem commentedI can confirm this bug has affected a site of mine as well. After having the site up for a few weeks, suddenly inserting images via Insert into CK Editor stopped working for any ImageCache presets, but it still worked for "original image", which is why I suspected it was ImageCache at fault. It would simply insert a blank src="" and checking the imagecache directories, no new files were created.
After finding this thread, I cleared the caches and it works again.
ImageAPI: 6.x-1.6
ImageAPI GD2: 6.x-1.6
ImageCache: 6.x-2.0-beta10
ImageCache UI: 6.x-2.0-beta10
FileField: 6.x-3.2
ImageField: 6.x-3.2
Insert : 6.x-1.0-beta4
Comment #7
jaochoo CreditAttribution: jaochoo commentedIs there a function to flush the (image-) cache? If there is such function I would simply flush the cache everytime a new node is created (using hook_nodeapi) and hopefully it'll work then..
Comment #8
carvalhar CreditAttribution: carvalhar commentedi had a local copy for developing and today i uploaded to my server and new presets doesn't work anymore.
I have a 404 error at status report.
what can i do?
*EDIT*
i had a local copy and then i had to change the temp directory in /admin/settings/file-system
Comment #9
albplus.ru CreditAttribution: albplus.ru commentedHello, I'm from Russia so sorry for my english.
Solution is: imagecache.module in a file you need to edit two functions:
imagecache_create_url and theme_imagecache
before the function returns, insert the following code
-------------------------------------------
$imagecache_path = imagecache_create_path($presetname, $path);
if (!file_exists($imagecache_path)){
//drupal_set_message('No pictures, makes do');
$preset = imagecache_preset_by_name($presetname);
imagecache_build_derivative($preset['actions'], $path, $imagecache_path);
}
--------------------------------------------
only the variable names $presetname, $path may vary, be careful
Comment #10
SebastienT CreditAttribution: SebastienT commentedIs there any update on this? I am also experiencing this problem...
Everything went fine on my local WAMP server, but once I put the site online the images won't show after I created a node. I had to flush my caches before the images were shown
Comment #11
webdevandy CreditAttribution: webdevandy commentedAlso experiencing the problem here. Using the following:
ImageAPI: 6.x-1.0
ImageAPI GD2: 6.x-1.0
ImageCache: 6.x-2.0-beta10
ImageCache UI: 6.x-2.0-beta10
FileField: 6.x-3.7
ImageField: 6.x-3.7
Comment #12
nyleve101 CreditAttribution: nyleve101 commentedHi,
did anyone find a solution to this issue?
Hope you're well,
Evelyn
Comment #13
nyleve101 CreditAttribution: nyleve101 commentedHi,
in case anyone else runs into this issue, I noticed it was only occurring where I was using imagecache directly in a custom tpl. To get around the issue I created a Rule. On the event 'After saving new content' of node type X add an action 'ImageCache: Flush ALL presets for this node's filefield images'.
Hope this helps someone.
Comment #14
fizk CreditAttribution: fizk commentedPlease reopen if this is still an issue with ImageCache 6.x-2.0-rc1.