The MU forums have moved to WordPress.org

Uograde 2.9.2 To 3.0 Parse error (6 posts)

  1. LeeSkye
    Member
    Posted 13 years ago #

    I did an automatic upgrade 2.92 to 3.0 on a WPMU site and followed the info to edit the files htacess. wp-config etc. Now I can't log in and I get:

    "Parse error: syntax error, unexpected T_STRING in /home/consumer/public_html/wp-config.php on line 1"

    I disabled the plugins and also went in by ftp and renamed the plugins folder to plugins.hold in case I missed one but still the same problem. Did a search but don't see anyone asking about this error.

  2. augustas
    Member
    Posted 13 years ago #

    You have a syntax error in your config file. After you did corrections - some character is missing or too much. Make sure you copied that line correctly into wp-config

  3. tdjcbe
    Member
    Posted 13 years ago #

    When you edited the wp-config.php file, what specifically did you use to edit the file?

  4. LeeSkye
    Member
    Posted 13 years ago #

    I used notepad to edit the wp-config.php file. I copied the line

    define( 'NONCE_SALT', '6xF{&bvT_PAsmbnG<72.dJH>D8R8M!M{~r.U]-~j:rG!g!0(g7hvz)+/h9 IY7Ge' );

    from http://codex.wordpress.org/Upgrading_WPMU into notepad and then cut and paste that line into wp-config.php using notepad just above /* That's all, stop editing! Happy blogging. */.

    This is a copy of my wp-config.php

    <?php/** Enable W3 Total Cache **/define('WP_CACHE', true); // Added by W3 Total Cache
    /**
    * The base configurations of the WordPress.
    *
    **************************************************************************
    * Do not try to create this file manually. Read the README.txt and run the
    * web installer.
    **************************************************************************
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information by
    * visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation.
    *
    * @package WordPress
    */

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'xxxxxxxxx');

    /** MySQL database username */
    define('DB_USER', 'xxxxxxxxxxx');

    /** MySQL database password */
    define('DB_PASSWORD', 'xxxxxxxxxxxxx');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    define('VHOST', 'yes');
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'consumerreportsgalore.com' );
    define('PATH_CURRENT_SITE', '/' );
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOGID_CURRENT_SITE', '1' );

    /* Uncomment to allow blog admins to edit their users. See http://trac.mu.wordpress.org/ticket/1169 */
    //define( "EDIT_ANY_USER", true );
    /* Uncomment to enable post by email options. See http://trac.mu.wordpress.org/ticket/1084 */
    //define( "POST_BY_EMAIL", true );

    /**#@+
    * Authentication Unique Keys.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link http://api.wordpress.org/secret-key/1.1/wpmu/salt WordPress.org secret-key service}
    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    * @since 2.6.0
    */
    define('AUTH_KEY', '0aa7a243e1c39986dd6dc123cf3b2cb58db00211af19ae8397d5a747cd85839a');
    define('SECURE_AUTH_KEY', '0446ff9b0b28031d00b289a268f7166b2800c5bd7f6b7b49c6bab39e9280ebe2');
    define('LOGGED_IN_KEY', '5ef6e7c9f5ec1f28f5295f62561d1696d387f8c38ca48dad7e40dc17cd60a98d');
    define('NONCE_KEY', '2159ed5a49c1e6f13ec8b22ba5dd52c5ab89a7de30bd00b348e1e978fafcff94');
    define('AUTH_SALT', '1ce8a18fa16cef5da0d6c51d0043343c9cb39a313e6d4845191f04f06e30545f');
    define('LOGGED_IN_SALT', 'd3e6ec351d81cd70ca506bf46538583541be88ef4ba13523675c938964691aba');
    define('SECURE_AUTH_SALT', 'c5001f943d77db1322a54135f0c85d441c47dfa903685918c3124c36e8d83c1c');
    /**#@-*/

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = 'wp_';

    /**
    * WordPress Localized Language, defaults to English.
    *
    * 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', '');

    // double check $base
    if( $base == 'BASE' )
    die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );

    // uncomment this to enable WP_CONTENT_DIR/sunrise.php support
    //define( 'SUNRISE', 'on' );

    // uncomment to move wp-content/blogs.dir to another relative path
    // remember to change WP_CONTENT too.
    // define( "UPLOADBLOGSDIR", "fileserver" );

    // If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)
    // For example, the browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' );
    // Set this value to %siteurl% to redirect to the root of the site
    // define( 'NOBLOGREDIRECT', '' );
    // On a directory based install you must use the theme 404 handler.

    // Location of mu-plugins
    // define( 'WPMU_PLUGIN_DIR', '' );
    // define( 'WPMU_PLUGIN_URL', '' );
    // define( 'MUPLUGINDIR', 'wp-content/mu-plugins' );

    define( "WP_USE_MULTIPLE_DB", false );

    define( 'NONCE_SALT', '6xF{&bvT_PAsmbnG<72.dJH>D8R8M!M{~r.U]-~j:rG!g!0(g7hvz)+/h9 IY7Ge' );

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

    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

  5. andrea_r
    Moderator
    Posted 13 years ago #

    This is a copy of my wp-config.php

    <?php/** Enable W3 Total Cache **/define('WP_CACHE', true); // Added by W3 Total Cache
    /**

    There's no space between the php and the comment about enabling the cache. try this:

    <?php /** Enable W3 Total Cache **/ define('WP_CACHE', true);

  6. LeeSkye
    Member
    Posted 13 years ago #

    That did it! Thanks for the great pair of eyes LOL.

About this Topic