• Resolved tanisbr1

    (@tanisbr1)


    I edited my config file and I’ve checked for syntax errors and I can’t find any. I put in my database name, user name and password and did the wordpress key generator to generate random keys ad salts for wordpress login and security. That is all I changed.

    The error I get when I go to http://mysitename.com/wp-admin/install.php is:

    Parse error: syntax error, unexpected ”);’ (T_CONSTANT_ENCAPSED_STRING) in /home/username/public_html/wp-config.php on line 25

Viewing 5 replies - 1 through 5 (of 5 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 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

    It’s also possible that the actual password you use contains a character that’s interpreted improperly by PHP (such as opening/closing brackets, apostrophes or quotes).

    Thread Starter tanisbr1

    (@tanisbr1)

    i used the wordpress salt and key generator. It generated passwords with the opening and closing brackets. I will take those out and see if that works.

    Thread Starter tanisbr1

    (@tanisbr1)

    I tried everything and nothing worked. I finally logged into my c panel with go daddy and under applications, I downloaded the one called word press. It walks you through it basically does all the heavy lifting with your set up for you. No going in and having to manually change the config page or even bother FTPing anything…That was so much easier.

    Thanks Tara and Senff for your help. I found the information helpful and interesting. Much appreciated.

    I’m going to set up all of my wordpress websites with Godaddy from now on though, much easier!

    Moderator t-p

    (@t-p)

    Glad you got it sorted 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘wp-admin/install.php producing a Parse error: syntax error, unexpected '');' (T_’ is closed to new replies.