WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] can't access dashboard - syntax error in functions.php (6 posts)

  1. vegetarianepicurean
    Member
    Posted 8 months ago #

    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.

    http://biz141.inmoti.../test/wp-admin/

    (Trying to move over from wordpress.com http://www.vegetarianepicurean.com)

  2. Tara
    Member
    Posted 8 months ago #

    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.

    Unexpected

    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

  3. vegetarianepicurean
    Member
    Posted 8 months ago #

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

  4. Tara
    Member
    Posted 8 months ago #

    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.

  5. vegetarianepicurean
    Member
    Posted 8 months ago #

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

  6. Tara
    Member
    Posted 8 months ago #

    You are welcome. :-)

Reply

You must log in to post.

About this Topic