ZenphotoCMS Forum
Failed to include a custom php page - 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: Failed to include a custom php page (/thread-9707.html)



Failed to include a custom php page - jackdaw - 2012-02-27

I made a simple zenfooter.php page and called it using this code:

``

but I get this error message, although the file exists and in the right location:

Warning: include() [function.include]: Failed opening '/collecties/themes/jacktummers/zenfooter.php' for inclusion (include_path='.:/var/php5.3/lib/php') in /srv/jackdaw/www/www.jacktummers.nl/collecties/themes/jacktummers/album.php on line 68




Failed to include a custom php page - Michel Gagnon - 2012-02-27

You are calling the footer from another page of your template? If that's the case, you need to declare the relative address. I.e. ``.

If you insist on declaring an absolute path, the exact way to do it depends on your server's configuration. In my case, it would be something like: ``
(you could actually find the first part of the code from SERVERPATH, if my memory is correct.)




Failed to include a custom php page - jackdaw - 2012-02-27

Thank you! I thought I had to use the zp_themeroot variable because this is also used to include the themes stylesheet.