• Resolved Booblacain

    (@booblacain)


    pls help. i get this error when i try to open a wordpress site I am trying to build on my local pc. it is locally installed on my c: drive. what do I do?

    Parse error: syntax error, unexpected ‘define’ (T_STRING) in C:\xampp\htdocs\lifeisrich.com\wp-config.php on line 45

    just below is line 45 to 52 on my wp-config.php file.

    */
    45 define(‘AUTH_KEY’, ‘put your unique phrase here’);
    46 define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’);
    47 define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’);
    48 define(‘NONCE_KEY’, ‘put your unique phrase here’);
    49 define(‘AUTH_SALT’, ‘put your unique phrase here’);
    50 define(‘SECURE_AUTH_SALT’, ‘put your unique phrase here’);
    51 define(‘LOGGED_IN_SALT’, ‘put your unique phrase here’);
    52 define(‘NONCE_SALT’, ‘put your unique phrase here’);

Viewing 4 replies - 1 through 4 (of 4 total)
  • Rename the wp-config.php file and run the install again.

    Thread Starter Booblacain

    (@booblacain)

    @esmi… do you mean changing the wp-config name to something else? If so would that be to any name at all?

    I’ve built the site to about half way. Would I have to start all over again after I re-install wordpress?

    do you mean changing the wp-config name to something else?

    Yes. Just use something like wp-config-old.php.

    Would I have to start all over again after I re-install wordpress?

    Ah – yes. I thought this was a completely fresh install. all I can suggest in this case is that you make another copy of wp-config-sample.php and try to re-create your old wp-config.php file again.

    Thread Starter Booblacain

    (@booblacain)

    Followed your advice and now it’s working again. God bless you man. Thank you.

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

The topic ‘Help! Syntax error in wp-config.php’ is closed to new replies.