Whenever I try to load the login page <domain>/index.php?option=com_users&view=login I only see a white page. When I look at the sites source code that gets delivered, there is the CSS statement html { display:none } in the head that makes the whole page get not displayed:


    <base href="<domain>/index.php" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="generator" content="Joomla! - Open Source Content Management" />
  <style type="text/css">
html { display:none }

All other pages are shown without any problems. Above that it is related to a special template: as soon as I activate one of the standard templates the login page is working.

I could already hunt it down to the jdoc:include type="head" code part in the ìndex.php and I tried to find out where the corresponding head.php gets it from, but as I don't have any PHP experience I'm stuck here.

Has anyone some hints where to go on or (even better) an explanation or a fix for this?

I use Joomla 2.5 if this is important.

closed as off topic by faker, Ward, EEAA, Scott Pack, mdpc Dec 22 '12 at 3:01

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.


PHP developer here. It may be due to some code in the behavior.php file under libraries\joomla\html\html.

If your login page is inside a frame, it seems to hide the page at first and then display it using it JavaScript when the browser has finished loading the page (and its assets) and also break the site out of the frame.

Do you happen to have JavaScript disabled in your browser? That might cause the problem.

 * Break us out of any containing iframes
 * @param   string  $location  Location to display in
 * @return  void
 * @since   11.1
public static function noframes($location = 'top.location.href')
    // Only load once
    if (isset(self::$loaded[__METHOD__]))

    // Include MooTools framework

    $js = "window.addEvent('domready', function () {if (top == self) {document.documentElement.style.display = 'block'; }" .
        " else {top.location = self.location; }});";
    $document = JFactory::getDocument();
    $document->addStyleDeclaration('html { display:none }');

    JResponse::setHeader('X-Frames-Options', 'SAME-ORIGIN');

    self::$loaded[__METHOD__] = true;
  • unfortunately not. I had already all scripts allowed on this site. To go for sure I tried it with a browser that didn't have any script blocking tools installed. – Benedikt Bauer Dec 21 '12 at 21:44
  • Are you running the site inside a frame? Perhaps the JavaScript does not work correctly. – brianpeiris Dec 21 '12 at 21:45
  • No, the site is running completely on its own, no frames. – Benedikt Bauer Dec 21 '12 at 21:47
  • Can you take a look at your "default_login.php" file under "components\com_users\views\login\tmpl\" to see if there is anything fishy in there? You might also want to try using a different template, to see if that helps. – brianpeiris Dec 21 '12 at 21:59
  • Oh, I forgot to mention that in my question. It seems to be template specific. When I take one of the standard templates, the login page is displayed as intended. – Benedikt Bauer Dec 21 '12 at 22:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.