Moving WP Blog - Third Time NOT A Charm

12 replies
In the process of saving money and consolidating my blogs with one hosting company (HostGator), I have been moving 4 blogs, one by one.

The first 2 moved without any problems whatsoever, but the third keeps giving me the following error when I try to boot the moved blog:

Actual URL removed, mow issue is resolved

I just don't get it, first there isn't a line 147 in this file and second, all I have done is update it with the new database information.

Just to make sure, I re-downloaded the wp-config.php file a second time from the old servers and edited it again, but I still get this same error when I try to boot the site.

Can you give me any pointers?
#blog #charm #moving #time
  • Profile picture of the author RyanAndrews
    Sounds like a missing semi-colon or { brace }.
    Basically a syntax error, but it's not really at the end of the file, it's located elsewhere, and definitely near your recent edits.
    {{ DiscussionBoard.errors[3567701].message }}
  • Profile picture of the author Happy_Balance
    Ryan is correct, I just looked at the file and it's very short, so you should be able to spot the problem.
    Signature

    Every Day Is Fun! :)

    {{ DiscussionBoard.errors[3567727].message }}
  • Profile picture of the author Patrick
    Check if there is any spacing either on the top or the bottom of the wp-config.php file..
    {{ DiscussionBoard.errors[3567733].message }}
    • Profile picture of the author AnniePot
      I spent a long time going through the file line by line and can't see anything missing. I also downloaded the file a second time from the old hosting servers and edited that with nothing but the new database information. Still get the same error.

      This is why I asked for help...
      {{ DiscussionBoard.errors[3567790].message }}
      • Profile picture of the author Happy_Balance
        Originally Posted by AnniePot View Post

        This is why I asked for help...
        OK
        The error is obviously in that file so re-loading from the source isn't helping.
        Either start here
        PHP Code:
        <?php
        /**
         * The base configurations of the WordPress.
         *
         * 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. You don't have to use the web site, you can just copy this file
         * to "wp-config.php" and fill in the values.
         *
         * @package WordPress
         */

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

        /** MySQL database username */
        define('DB_USER''youruser');

        /** MySQL database password */
        define('DB_PASSWORD''knotpass');

        /** 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''');

        /**#@+
         * Authentication Unique Keys and Salts.
         *
         * Change these to different unique phrases!
         * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/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',         'changemekofpdswkerifu5748e');
        define('SECURE_AUTH_KEY',  'changemegkofpdswkerifu5748e');
        define('LOGGED_IN_KEY',    'changemeotgkofpdswkerifu5748e');
        define('NONCE_KEY',        'changemesssm4jofpdswkerifu5748e');
        define('AUTH_SALT',        'changemewerm4jtgkofpdswkerifu5748e');
        define('SECURE_AUTH_SALT''changemem4jdfghtgkofpdswkerifu5748e');
        define('LOGGED_IN_SALT',   'changeme4jtgkfghhofpdswkerifu5748e');
        define('NONCE_SALT',       'changemegkofpdfghhdswkerifu5748e');

        /**#@-*/

        /**
         * 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!
         */
          
        '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''');

        /**
         * For developers: WordPress debugging mode.
         *
         * Change this to true to enable the display of notices during development.
         * It is strongly recommended that plugin and theme developers use WP_DEBUG
         * in their development environments.
         */
        define('WP_DEBUG'false);

        /* 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');


         
        define('AUTOSAVE_INTERVAL'240 ); // Default value is 60 seconds.
         // define('WP_POST_REVISIONS', 7); // Number of revisions to save.

        define('FORCE_SSL_LOGIN'false);
        define('FORCE_SSL_ADMIN'false);
        or...
        copy/paste from a config file on one of your *working* blogs.

        • Then just insert the correct database info, modify the site keys, and you are good to go.
        Hope that helps you
        Signature

        Every Day Is Fun! :)

        {{ DiscussionBoard.errors[3567830].message }}
  • Profile picture of the author Patrick
    Contact me I will get it working free of cost.
    {{ DiscussionBoard.errors[3567802].message }}
    • Profile picture of the author AnniePot
      Doing so now :-)
      {{ DiscussionBoard.errors[3567832].message }}
  • Profile picture of the author SteveJohnson
    It's very rare, but this can also be caused by inconsistent EOL (end of line) markers in the file. Files edited on a Mac have a carriage return (\r) as EOL, *nix uses only a linefeed or newline (\n), Windows uses both (\r\n).
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[3568004].message }}
    • Profile picture of the author AnniePot
      Got it sorted in the end. I deleted everything associated with the first transfer and started afresh. This worked fine, so clearly the original download from the old servers was flawed. Thanks for your advice everyone.
      {{ DiscussionBoard.errors[3569892].message }}
  • Profile picture of the author Happy_Balance
    ^^^
    Glad you fixed it.
    Someday you might be ready for this:
    rsync - Wikipedia, the free encyclopedia
    You can move a huge amount of files in less than 5 or 10 seconds

    and errors almost Never happen!
    Signature

    Every Day Is Fun! :)

    {{ DiscussionBoard.errors[3570019].message }}
    • Profile picture of the author AnniePot
      Hello Happy Balance

      VERY useful info - thanks very much
      {{ DiscussionBoard.errors[3573974].message }}
      • Profile picture of the author Happy_Balance
        Originally Posted by AnniePot View Post

        Hello Happy Balance

        VERY useful info - thanks very much
        Sure glad you like it, rsync is great.
        Signature

        Every Day Is Fun! :)

        {{ DiscussionBoard.errors[3575508].message }}

Trending Topics