I upgraded to the newest BETA version (bad idea
) to try the new option to pre-cache images. Now the static HTML cache plugin doesn't seem to be working at all. I tried disabling it and enabling it and even tried installing another copy and it when I look at the HTML code, the cache comment doesn't show up. (I'm not logged in as admin either).
Anyone else having this issue?
Useful Info:
-----------------
Zenphoto version 1.4.3-BETA [10366] (Official build)
PHP version: 5.4.4
Graphics support: PHP GD library bundled (2.0.34 compatible)
supporting: gif, jpg, jpeg, png, bmp
MySql version: 5.5.25
Comments
I'm using the class-anyFile plugin and it seems that this plugin does not cache images. It creates the cached image but it does not load it once you refresh the page (the src=i.php?...).
Now I have a question, what changed from 1.4.2 -> 3? I was able to cache everything using 1.4.2 but I can't with .3.
Any other ideas?
Update:
-------
I replaced the static_html_cache.php file with the old one and now it's working again (the HTML cache not the anyClass cache)
With the older static cache plugin the page would be cached but the image not, it would always run the image processor no matter what.
BTW, it is really not recommended that you mix and match files from different releases. No telling what problems that can cause.
I have some files (CR2, DNG etc) that I import using the anyFile plugin. (I don't need a preview just a generic icon). When I look at the HTML source code the image src links to i.php?... instead of the cached file.
for example:
``
When I visit this link directly the i.php file redirects me to:
`/gallery/cache/Others/Image/cr2/_%7Bplugins%7D_%7Bclass-AnyFile%7D_cr2Default_w420_h200_cw420_ch200_thumb.png`
So, yes... it creates the cache file, but instead of loading it, it keeps re-creating it?
In the meantime, I decided to downgrade (once again).
What pages does this happen on?
Both say build # 10413 so I'm guessing they are the same.
update:
------
I know it is not recommended but using the old static_html (from 1.4.2) seems to work correctly.
Caching the page with this reference will leave most of the overhead you are trying to save.
Again, I caution you from using mixed environment scripts. You may think it works, but you will not know until it does fail.
Did you install from the trunk nightly build? The dev build would not necessarily have the fix. Right now we are pretty lax in trying to keep the dev build up to date as all attention is on the trunk/release 1.4.3 builds.
So maybe install again from last night's trunk build to be sure the fix is present. If it still does not work report again what i.php script calls are present.
Also, maybe clear the image cache. Be sure that you reload the page at least once before checking.
Right now I just installed trunk build: 10413.
Sample of CR2 Thumbnail code.
``
I just installed the 1.4.11 version of zenphoto and zpbase theme on my old zenphoto. Everything is working except staticHTML cache I have over 3000 images in my gallery so I need it. This plugin is enabled and I have no idea what can I do more. Directory of chache_html/albums is empty
Also this is not a cache for images (the image cache is always on), it is for the pages to limit server side processing. See the entry on the user guide about caching.
Otherwise youn need to look at your Zenphoto and server logs.
NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131
static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])
from include (index.php [71])
from index.php [28]
{14057:Sun, 03 Jan 2016 08:08:38 GMT}
NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131
static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])
from include (index.php [71])
from index.php [28]
{14057:Sun, 03 Jan 2016 08:49:11 GMT}
NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131
static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])
from include (index.php [71])
from index.php [28]
{14020:Sun, 03 Jan 2016 09:10:44 GMT}
NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131
static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])
from include (index.php [71])
from index.php [28]
{14057:Sun, 03 Jan 2016 09:10:50 GMT}
NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131
static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])
from include (index.php [71])
from index.php [28]
{14020:Sun, 03 Jan 2016 09:10:53 GMT}
NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131
static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])
from include (index.php [71])
from index.php [28] `