Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

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

Login Page Not Displaying


Go to End
Reply

21 Posts   5000 Views

Avatar
robgreen

1 December 2009 at 11:00pm Community Member, 11 Posts

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.

Avatar
Double-A-Ron

2 December 2009 at 7:33pm Community Member, 604 Posts

That is really weird. What version are you running?

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

Aaron

Avatar
robgreen

3 December 2009 at 2:00am Community Member, 11 Posts

<!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" xml: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>

Avatar
robgreen

3 December 2009 at 2:02am Community Member, 11 Posts

... 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.

Avatar
ChrisBryer

3 December 2009 at 5:05pm Community Member, 95 Posts

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.

Avatar
Double-A-Ron

3 December 2009 at 5:12pm Community Member, 604 Posts

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>

Avatar
robgreen

3 December 2009 at 9:56pm Community Member, 11 Posts

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?

Avatar
Double-A-Ron

3 December 2009 at 10:25pm Community Member, 604 Posts

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

Go to Top