ZenphotoCMS Forum
static_html_cache error - 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: static_html_cache error (/thread-5551.html)



static_html_cache error - southdreamz - 2009-07-27

Dear Developer,

I'm getting the following error message in image.php(Only it is last 2 days).
I'm using zenphoto version 1.2.4 [3716] (http://gallery.southdreamz.com/movie-gallery/yogi/yogi-movie-working-stills-02.jpg.html).

Warning: fopen(cache_html/images/movie-gallery_yogi-yogi-movie-working-stills-24.jpg_en_US.html) [function.fopen]: failed to open stream: File too large in /xxx/gallery.southdreamz.com/zp-core/plugins/static_html_cache.php on line 171

Warning: fputs(): supplied argument is not a valid stream resource in /xxx/gallery.southdreamz.com/zp-core/plugins/static_html_cache.php on line 172

Warning: fclose(): supplied argument is not a valid stream resource in /xxx/gallery.southdreamz.com/zp-core/plugins/static_html_cache.php on line 173

--
thanks & regards,
palPalani




static_html_cache error - sbillard - 2009-07-27

disable the static cache plugin and delete all the files in the cache_html folder. Something has happend on your server with file-opens. This line should be opening a file for output, but is getting an error saying it is too big. (Opening for output should reset the file to empty.)

After emptying the static cashe folder you may be able to enable the static cache plugin again. I don't know.




static_html_cache error - southdreamz - 2009-08-09

Yes, the problem is because of folder size and i'm not able to open the folder, it is giving timeout error. i have doubt, all expired cached files are automatically deleted or not?
If not deleted automattically, then please help me, how to delete all expired files automatically.




static_html_cache error - acrylian - 2009-08-09

Actually it should delete the out dated files after the time frame you set. Also you can delete it manually on the plugin's options or via ftp.

Check also the permissions on the cache folder.




static_html_cache error - m3palani - 2009-08-10

If zenphoto uses/creates different folder for each album, then the problem may be cleared.
I have one question, how the expired files are deleted, using CRON jobs?




static_html_cache error - acrylian - 2009-08-10

Actually the cache plugin should simply overwrite the outdated files, there should be only one cache file per page always. Except you use the manual button on the plugin option to delete the whole cache.




static_html_cache error - southdreamz - 2009-08-11

ok fine.

For this issue, i have created small PH script, and i i'm going to setup cron job using my panel. before going to live i want check with you.

Note: it is not using any zenphoto function and deleting only images, albums.
`

--
Update:
actual delete function is commented here.