Forums

[resolved] parse error unexpected T_STRING in wp-config.php (version 2.6) (9 posts)

  1. MoneyEnergy
    Member
    Posted 1 year ago #

    I've uploaded wordpress 2.6 into my cPanel directory at bluehost. I'm putting it in a special subdirectory because it's going to be a second blog for me. I've already created the database for it and have modified the wp-config file accordingly.

    I'm already to point my browser at the website.com/wp-admin/install.php and it returns the

    parse error - unexpected T_STRING in wp-config.php at line 17

    I check the syntax but can't find anything wrong.
    I removed the two lines that I didn't need,
    $table_prefix and
    WPLANG

    Can anyone help?
    Pls email me at moneyenergy AT hotmail too, if anyone sees this....

  2. MoneyEnergy
    Member
    Posted 1 year ago #

    Finally fixed it.

    EVERYBODY PAY ATTENTION: You can't have apostrophes ' and quotes " in your secret keys. Delete them. Wordpress says you can "make up" your secret keys to be whatever you like, but it's not true. If there are apostrophes within the ' and ' that are supposed to be there, your install won't work.

  3. drashok
    Member
    Posted 1 year ago #

    PLEASE MAKE NOTE OF THE ABOVE IN CODEX

    EVERYBODY PAY ATTENTION: You can't have apostrophes ' and quotes " in your secret keys.

    Dr. Ashok Koparday

  4. whooami
    Member
    Posted 1 year ago #

    some of us already know this :)

    PLEASE MAKE NOTE OF THE ABOVE IN CODEX

    You can do that -- you wont, but you can.

  5. samboll
    moderator
    Posted 1 year ago #

    :>)

  6. derkxaine
    Member
    Posted 1 year ago #

    Guys,

    I removed the " and the ' but I'm yet facing this sort of an error - Parse error: parse error, unexpected T_STRING in D:\hosting\member\diabetescare\wordpress\wp-config.php on line 13

    I'm at a total loss. I even entered my own made up keys to make sure I was not using any special characters and yet this error persists.

    I'm using notepad to make the edits. Any help on this will be greatly appreciated.

  7. moshu
    Member
    Posted 1 year ago #

    I removed the " and the '

    But you left it there around the key, right?
    define('AUTH_KEY', 'whatever'); // Change this to a unique phrase.

  8. derkxaine
    Member
    Posted 1 year ago #

    Moshu, there was some problem running the latest version of wordpress on my host. I downloaded and set up version 2.0.5 (provided thru my host) and hey presto, I'm in business!

  9. samboll
    moderator
    Posted 1 year ago #

    That is not a secure version.

Topic Closed

This topic has been closed to new replies.

About this Topic