404 pages don't show logout button

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('', '');`

Comments

  • Does your custom theme include a 404.php script?
  • 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.
  • 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...
  • Yes. We don't currently load the plugins on a 404 error. I will change that in the nightly build.
  • great! i just wanted to have the 404 page like all other pages, with navigation in top.
Sign In or Register to comment.