fclose and fopen error with Static Cache?

After the upgrade to 1.2.7 I've had the following errors filling up my error_log

`
[Mon Dec 14 14:40:10 2009] [error] [client xxx.xx.xx.xxx] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/public_html/gallery/zp-core/zp-extensions/static_html_cache.php on line 169

[Mon Dec 14 14:40:10 2009] [error] [client xxx.xx.xx.xxx] PHP Warning: fopen(cache_html/) [function.fopen]: failed to open stream: Is a directory in /home/public_html/gallery/zp-core/zp-extensions/static_html_cache.php on line 167

[Mon Dec 14 14:40:08 2009] [error] [client xxx.xx.xx.xxx] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/public_html/gallery/zp-core/zp-extensions/static_html_cache.php on line 169

[Mon Dec 14 14:40:08 2009] [error] [client xxx.xx.xx.xxx] PHP Warning: fopen(cache_html/) [function.fopen]: failed to open stream: Is a directory in /home/public_html/gallery/zp-core/zp-extensions/static_html_cache.php on line 167
`
I re-uploaded the static_html_cache.php file just in case, but it's still showing up. I've dumped the static_html cache to no effect either.

The referrer in those lines is either an image page or an album folder. Makes no diff there.

Comments

  • You probably have a permissions issue with the static cache folder. You should turn off the static cache plugin and look at the permissions of that folder.
  • Permissions are 777 and it's owned by me.
  • Ok, there seems a problem in the plugin. There will be a fix in tonight's build.
  • Yay :) (Yet another reason why I suggest ZenPhoto to my friends - Stellar support)
  • Updated this morning an hour ago, no errors since.

    Looks good!
  • Hello,

    I am using ZenPhoto version 1.3 with ZpFocus 1.3. Also I have enabled the static_html cache. I understand that my pages, albums, images, etc are there after they are viewed, but am I suppose to clear these folders for updates to be "live" on the web. What is the purpose of this plugin?

    Thank-you - Renee
  • It makes your site faster and can put less strain on your server.

    And the cache is cleaned every 24 hours, so it catches up. If you need to add new images and have them available ASAFP, you can force-dump the cache, but that can be expensive to re-build.
  • acrylian Administrator, Developer
    As you surely know Zenphoto generates the display dynamically via PHP using MySQl and file system. This can add up a lot of server power if you have a lot of visitors as it is done for each of them, even if they view exactly the same.

    So this plugin caches static html pages of those dynamically generated stuff so it is generated once. It even caches different language versions in case you use the multilingual feature.
    We have also a similar caches for the rss feeds and the sitemap plugin.

    Yes, if you update something you have either to clear the cache manually or wait until the cache time as expired when it updates automatically (see the plugin's options).

    Btw, the current version is 1.3.1.1.
  • acrylian Administrator, Developer
    @Ipstenu: You were faster and shorter..;-)
  • There's a 'that's what she said' joke in there.

    Seriously, though, my site would DIE were it not for static cache! 39471 Images, 624 Albums, and when I add new albums, it's usually 60-100 photos, all of which get hit for traffic within an hour of posting. The static saves my bacon!
  • acrylian Administrator, Developer
    As always glad to hear that what we make up works...;-)
Sign In or Register to comment.