Support » Fixing WordPress » can't access dashboard – syntax error in functions.php

  • Resolved vegetarianepicurean


    Hi –

    I was trying to edit my functions.php page in order to add additional google fonts. I got this message: Parse error: syntax error, unexpected T_STRING in /home/vegeta9/public_html/test/wp-content/themes/dms/functions.php on line 24

    I can no longer access my wordpress or pagelines developer site – and therefore can’t fix whatever the error is. I”m new to this whole thing, but would like to try again – I just need a way to get there. Any help would be appreciated.


    (Trying to move over from

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p


    Parse errors:

    Syntax Error:

    A syntax error means that you have made a mistake while creating your PHP structure. You could, for example, be;
    ■ Missing a ; at the end of an individual line.
    ■ Using curly quotation marks.
    ■ Missing a curly bracket.

    When this error appears it will tell you which file the error appears in (functions.php for example) and approximately which line (it may not always be the exact line so be sure to check just before and just after) in the code.


    If you are receiving an error which says ‘parse error: unexpected’ this usually means that you have forgotten to include a character. The most common are:
    ■ Unepxpected T_STRING: you have forgotten a quotation mark or a semi-colon at the end of the previous line

    Thanks – The problem is I can’t even access my dashboard (and thus the php file) to edit it!

    Moderator t-p


    The problem is I can’t even access my dashboard

    You don’t need to.

    Use FTP or SFTP or whatever file management application your host provides.

    I figured that out just now. Thank for your help!

    Moderator t-p


    You are welcome. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘can't access dashboard – syntax error in functions.php’ is closed to new replies.