![]() |
|
ZPBootStrap Include Issue - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: ZPBootStrap Include Issue (/thread-14019.html) |
ZPBootStrap Include Issue - Adrian0832 - 07-01-2025 Another question from the department for "I've broken something again". And I don't know if it's ZenPhoto, ZPBootstrap or PHP I've broken...I've a workaround, but it's not scalable, and I could do without the same issue again... Issue (or you'll get bored and not read to the end)PHP include was working but now not including (but no error)... BackgroundTwo instances of ZenPhoto, same domain, different subdirectories and albums (one is "live" [27,000 images] and one "test" [12 images]). Same version of both ZenPhoto and ZPBootstrap Both instances working fine until just before Christmas - then the live one went "weird" Detective WorkLooking in the browser at "Page Source"; Home, Gallery, News and other sections were not including "inc_header.php". This was the only part missing, others (including "inc_footer.php") were fine. Workaround (or desperation!)Copy 'inc_header' to a new file 'inc_head' and include that in Home - it worked! Repeat for "Gallery", "News", "Favourites" etc ConclusionFor some reason, one (and only one) instance of ZenPhoto has stopped (it was previously working) including "inc_header.php" but without an error - no other include is affected. ZPBootStrap Include Issue - acrylian - 07-01-2025 You did neither mention the version of zpBoostrap nor Zenphoto. Note that the original zpBoostrap is not maintained for years. So if use our fork that at least is generally compatible with the current Zenphoto releases: https://github.com/zenphoto/zpBootstrap Sounds more like a server side issue. PHP require and include (incl the ones with "_once") are doing generally the same with some detail difference Maybe any server update occurred? You surely have consulted the debug logs (ZP's and the server PHP log). What do they tell about this? ZPBootStrap Include Issue - Adrian0832 - 07-01-2025 ZenPhoto 1.6.4 |