ZenphotoCMS Forum
Thumbnails caching: "touch" was the answer - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Thumbnails caching: "touch" was the answer (/thread-200.html)



Thumbnails caching: "touch" was the answer - Tobi_Kellner - 2006-01-09

Hey,

I had a weird problem with the thumbnails, I could not write to the cache folder even though it was CHMOD 777.
I had already changed the code, when I stumbled accross a weird solution: if I put an innocent
touch($newfile);
just before
imagejpeg($newim, $newfile, $image_quality);
in or near line 87 in i.php then it works.

Having spent a day figuring it out myself, I now found a post on php.net which said just that :-|

Will submit a bug-report, too.

Tobi




Thumbnails caching: "touch" was the answer - trisweb - 2006-01-11

Thanks, that could be a good precaution.