![]() |
|
Fatal error with custom latest.php - 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: Fatal error with custom latest.php (/thread-10758.html) |
Fatal error with custom latest.php - jackdaw - 2013-01-20 I'm using a custom php page to show my latest images. I get this fatal error at the beginning of the page where I have my h2 tag:
And this is what I have between the h2 tags: ` Fatal error with custom latest.php - sbillard - 2013-01-20 Functions like You seem to be creating the equivalent of a search page with a custom search, so you would have to set up an appropriate search context. The Fatal error with custom latest.php - jackdaw - 2013-01-20 The reason why this looks like a custom search page is perhaps because I use the same zenhead.php and zenfooter.php page for all the zp pages like album.php, image.php, search.php and latest.php. In my latest.php I actually use the code below and this has always functioned well, until now. The reported error message only occurs on this latest.php page at the point where I only wanted to check what page is loaded so that I can create the right title/navigation for the page.
Fatal error with custom latest.php - jackdaw - 2013-01-20 I added the head information right into latest.php, without that code betwee the h2 tags. This works, although it would be nice to have a zenhead.php for all cases Fatal error with custom latest.php - sbillard - 2013-01-20 You can tell what script (page) is running by lookig at the variable Fatal error with custom latest.php - jackdaw - 2013-01-21 Ok, thanks. I will try that. Fatal error with custom latest.php - acrylian - 2013-01-21 It is absolutely up to you how to structure your theme using head and footer pages. We don't do this because on those head you would have to check for the page anyway then you can also just write it on the page itself..;-) |