• When trying to install a new template through the upload function, I get the error below. Can someone advise what I need to do in order to fix this problem?
    “Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home/mclubz/public_html/wp-admin/includes/class-wp-filesystem-base.php on line 126”

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

    (@t-p)

    (1). What template are you trying to upload?

    (2). What theme are you using?

    In general:

    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:
    ■ Unexpected ‘=’ : you have forgotten to include the $ when referencing a variable
    ■ Unexpected ‘)’ : you have forgotten to include the opening bracket (
    ■ Unexpected ‘(‘ : you have forgotten to include the closing bracket )
    ■ Unepxpected T_STRING: you have forgotten a quotation mark or a semi-colon at the end of the previous line
    ■ Unexpected T_ELSE: you have an else statement with no opening if statement

    Source: http://codex.wordpress.org/Common_WordPress_Errors#Parse_errors

Viewing 1 replies (of 1 total)
  • The topic ‘Parsing Error in Template Install’ is closed to new replies.