Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » BLANK LOGIN PAGE

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
Go to End
Author Topic: 985 Views
  • servalman
    Community Member
    211 Posts

    BLANK LOGIN PAGE Link to this post


    I was doing minor changes to my vebsite (template mostly) and suddenly after a ?flush=all I now get to see a blank page on login page .

    I then cheked my php error log and this what I got :

    [Thu Jul 01 17:22:45 2010] [error] [client xx.xxx.xxx.xxx] PHP Parse error: syntax error, unexpected '<', expecting T_STRING or T_VARIABLE or '$' in /tmp/silverstripe-cache-var-www-vhosts-xxxxxxx.com-httpdocs-test_lg/.cache.var.www.vhosts.xxxxxxx.com.httpdocs.test_lg.themes.blackcandy.templates.Page.ss on line 70

    I'm know trying to correct this line 70 but I can't fine any because my Page.ss or Page.php doesn't go that far .

    Does anyone have a clue ?

    thank you


  • Willr
    Forum Moderator
    5497 Posts

    Re: BLANK LOGIN PAGE Link to this post

    Don't take the line number seriously, this would be the compiled line number rather than the file line number. I suggest you remove parts of your Page.ss template until it works again. Once it starts working you'll know what code is causing the error.

  • TotalNet
    Community Member
    181 Posts

    Re: BLANK LOGIN PAGE Link to this post

    Just curious ... would adding ?showtemplate=1 to the URL show the correct line number as reported in the PHP log?

    I've yet to use this when it's actually needed.

  • Shauna G
    Community Member
    52 Posts

    Re: BLANK LOGIN PAGE Link to this post

    Check your template for syntax errors. Make sure all tags are closed, all variables are marked correctly, and all quotes are the correct ones (none of those "smart quotes" if you've copied code from anywhere) and closed with matching quotes.

    If you're using a program that highlights code, you can usually set it to recognize .ss files as HTML, which will provide code highlighting for the parts it recognizes, making it easier to spot errors.

Page: 1
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.