ZenphotoCMS Forum
404 pages don't show logout button - 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: 404 pages don't show logout button (/thread-6346.html)



404 pages don't show logout button - sint - 2009-12-29

while creating my custom theme, i come about a problem with the logout link. i've created a header.php and included it in every page. the logout link works fine, except for the 404 page, its not loading.

seems like, the function does not exist on a logout page?

this is my code inside the header.php to load the link:

if (function_exists('printUserLogin_out')) { printUserLogin_out('[*]', '');




404 pages don't show logout button - sbillard - 2009-12-29

Does your custom theme include a 404.php script?




404 pages don't show logout button - sint - 2009-12-29

ya, the file is working fine on 404 errors, except the included header.php doesn't show the logout link in the top of the page.




404 pages don't show logout button - sint - 2009-12-29

ok, i've played around a bit more. if i copy the code inside the 404 it does nothing as well.
the function does not exist on 404 pages. so function_exists('printUserLogin_out') returns false and printUserLogin_out() gives an error.

maybe i should use a hardcoded link?! would work for now...




404 pages don't show logout button - sbillard - 2009-12-29

Yes. We don't currently load the plugins on a 404 error. I will change that in the nightly build.




404 pages don't show logout button - sint - 2009-12-29

great! i just wanted to have the 404 page like all other pages, with navigation in top.