![]() |
|
weird image urls construction - 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: weird image urls construction (/thread-13715.html) |
weird image urls construction - kyrd - 2022-04-26 Hello, I've succesfully upgraded a ZP stone-age installation and I'm quite satisfied with it (1300+ imgs, 600+ albums, 400+ Mapped POIs, 3x langs), nevertheless there are obviously some things that don't work as I've expected. Needless to say I'm working hard to solve them by myself but there are a number of issues that exceed my limited knowledge: the first is that the image url construction in image.php has two different outputs and I can't understand how this happens. This is the code (line 32 in image.php) this makes correctly the following:
but in too many cases - and random - I get the wrong url:
any idea where/what to look for, how to solve that? ( PS: Zenphoto version 1.5.8RC - Theme zpBootstrap+ZenPage - Version PHP: 7.4.27 - https://www.indirizzofantasma.net ) weird image urls construction - acrylian - 2022-04-26 The wrong URL is not wrong. That is the image processor URL before the cached resized mage has been generated. Zenphoto generates image sizes on the fly and any theme/plugin can directly request custom sizes. So there is nothing to solve. Once the image is cached/generated you get the "correct url". This is not new behaviour and exists "from the beginning". Also see: https://www.zenphoto.org/news/caching/ If your theme registeres the sizes with the cacheManager plugin you can pre-cache them. Glad you managed to upgrade a stone age install. That often works quite well as the base gallery system is still the same. weird image urls construction - kyrd - 2022-04-26 Aha! I've installed the cacheManager plugin, emptied the cache -should have thought that before- and problem (n°1) solved! thanks :-) |