Forums

[resolved] Parse error: syntax error (4 posts)

  1. skrunch
    Member
    Posted 3 years ago #

    I tried to install the latest version of wordpress. I get this error :
    Parse error: syntax error, unexpected $end in C:\xampp\htdocs\wordpress\wp-config.php on line 32

    wp-config.php looks like:

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'wordpress'); // The name of the database
    define('DB_USER', 'root'); // Your MySQL username
    define('DB_PASSWORD', "); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');

    // Change each KEY to a different unique phrase. You won't have to remember the phrases later,
    // so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
    // to get keys generated for you, or just make something up. Each key should have a different phrase.
    define('AUTH_KEY', 'CjoYC{:`/->>z ,kC6wWKlKfhJH>XHzm5;><fB?yEY3+V%?p.<zL@tP=fu/atZCp');
    define('SECURE_AUTH_KEY', '3vV*9XEH93`|}Jlo2\\#3!:\\!V~t^in;=8@!r~6k#M36VF8/<l3C=dm|HK<Q:zwj>');
    define('LOGGED_IN_KEY', '?./N]~]O42XG88SA1bREqnU4qDJ[<P/%P!DO<Uf(A@T]h`%Aw^*$jbk\"fbS4igZq');// You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-content/languages.
    // For example, install de.mo to wp-content/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    /* That's all, stop editing! Happy blogging. */

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');
    require_once(ABSPATH . 'wp-settings.php');
    ?>

    Any help?
    Thanx
    Brian

  2. whooami
    Member
    Posted 3 years ago #

    make sure that there are no single or double quotes in your keys. Note that they are suppposed to be enclosed in single quotes.

    I think I see a double quote mark " in your third key. Maybe that will help?

  3. thisisedie
    Member
    Posted 3 years ago #

    define('DB_PASSWORD', "); // ...and password

    Change this to

    define('DB_PASSWORD', ' '); // ...and password

    You have a quotation mark where there should be 2 apostrophes.

  4. skrunch
    Member
    Posted 3 years ago #

    Thanx! I followed both replies and it worked...thanx!

Topic Closed

This topic has been closed to new replies.

About this Topic