• Resolved jesusgpastor

    (@jesusgpastor)


    Hi there!
    After a malware infection I cleaned up loooads of code… and that’s what I got when I visit my website (unfotografo.es) 🙁

    Parse error: syntax error, unexpected ‘define’ (T_STRING) in /homepages/31/d319923485/htdocs/wp-config.php on line 18

    Any idea?

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

    (@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 on line 18, 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

    Thread Starter jesusgpastor

    (@jesusgpastor)

    thanks!!!
    yes, the problem was not in line 18, was in line 15! Thanks for the tip!!!

    J

    Moderator t-p

    (@t-p)

    you are welcome 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse error: syntax error, unexpected 'define'…’ is closed to new replies.