Jump to:

23370 Posts in 18160 Topics by 2864 members

General Questions

SilverStripe Forums » General Questions » Login Page Not Displaying

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 4856 Views
  • robgreen
    Avatar
    Community Member
    11 Posts

    Login Page Not Displaying Link to this post

    The login page for the site I have built appears to have stopped displaying in FF, and shows a page without the login fields in IE : http://www.phonic888fm.com/admin/

    Not sure what could have changed to make this happen, as only 1 user has access to the CMS, and that is not admin level.

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Login Page Not Displaying Link to this post

    That is really weird. What version are you running?

    Can you post the contents of your main Page.ss file please?

    Aaron

  • robgreen
    Avatar
    Community Member
    11 Posts

    Re: Login Page Not Displaying Link to this post

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" >

    <head>
          <% base_tag %>
          <title>$MetaTitle &raquo; PHONIC 88.8FM</title>
          $MetaTags(false)
          <link rel="shortcut icon" href="/favicon.ico" />
          
          <% require themedCSS(layout) %>
          <% require themedCSS(typography) %>
          <% require themedCSS(form) %>
          
          <!--[if IE 6]>
             <style type="text/css">
              @import url(themes/blackcandy/css/ie6.css);
             </style>
          <![endif]-->
          
          <!--[if IE 7]>
             <style type="text/css">
              @import url(themes/blackcandy/css/ie7.css);
             </style>
          <![endif]-->
       </head>
    <body>
    <div id="BgContainer">
           <!--$AdSense-->
           <div id="adsense">
    <script type="text/javascript"><!--
    google_ad_client = "pub-5203049143326530";
    /* phonic 120x600, created 10/14/09 */
    google_ad_slot = "9054160939";
    google_ad_width = 120;
    google_ad_height = 600;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    </div>
       <div id="Container">
          <div id="Header">
             <!--$SearchForm-->
              <img src="/themes/blackcandy/images/phonicbanner.gif" alt="Phonic 88.8 FM - the nature of sound" id="mainlogo" />
          </div>
          
          <div id="Navigation">
             <% include Navigation %>
           </div>
           
           <div class="clear"><!-- --></div>
          
          <div id="Layout">
           <!-- google_ad_section_start -->
           $Layout
           <!-- google_ad_section_end -->
          </div>

        <div class="clear"><!-- --></div>
       </div>
       <div id="Footer">
          <% include Footer %>
       </div>
    </div>

    <!--Start Google Analytics code-->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-8950627-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    <!--End Google Analytics code-->

    </body>
    </html>

  • robgreen
    Avatar
    Community Member
    11 Posts

    Re: Login Page Not Displaying Link to this post

    ... nothing out of the ordinary. and the change has just happened out of the blue.

    not sure what exact version I am using, but it must be nearly a year old.

  • ChrisBryer
    Avatar
    Community Member
    95 Posts

    Re: Login Page Not Displaying Link to this post

    You posted the master Page.ss, but didnt post what is in Layout/Page.ss..

    the login form wont show up if there is no $form method called from the Layout/Page.ss template.

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Login Page Not Displaying Link to this post

    Yup, Layout/Page.ss should look a little something like:

    <div class="typography">
          <div id="Content">
             
       <% if Level(2) %>
           <% include BreadCrumbs %>
       <% end_if %>
       
          <h2>$Title</h2>
       
          $Content
          $Form
          $PageComments
       
          </div>
    </div>

  • robgreen
    Avatar
    Community Member
    11 Posts

    Re: Login Page Not Displaying Link to this post

    Here is layout/page.ss ...

    <div class="typography">
       <% if Menu(2) %>
          <% include SideBar %>
          <div id="Content">
       <% end_if %>
             
       <% if Level(2) %>
           <% include BreadCrumbs %>
       <% end_if %>
       
          <h2>$Title</h2>
       
          $Content
          $Form
          $PageComments

       <% if Menu(2) %>
          </div>
       <% end_if %>
    </div>

    I am using version 2.3.1 - and i am basically locked out of the CMS because there is no way of loging in :-/ I am tempted to try upgrading to see if that helps?

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Login Page Not Displaying Link to this post

    Well that looks fine then. Do you have any other forms on the site that are/aren't displaying?

    Have you tried clearing your browser cache and a ?flush=1 on the security page just to be sure? I'm not overly hopeful that it will work, but it's worth a shot before you upgrade.

    Otherwise it is probably more efficient for you to upgrade than trying to figure out what is happening here, since you obviously need to get into the site.

    If it were my site, I would get a copy of the live codebase, and live database, and install it on WAMP (or MAMP). See if you can see the form locally. That will rule out a server related issue. (which I can only imagine being the cache).

    After that, you could try upgrading. I'd always do that locally first to make sure everything is A-OK.

    Aaron

    4856 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.