• dbe4876

    (@dbe4876)


    NOTE: I am importing from an MT 3.0 installation.
    I followed the directions in your article “How to Import MovableType Entries into your WordPress Blog” to the tee (I believe).
    After successfully installing WordPress, I carried out the instructions in Setp 1 and Step 2, editing the “import-mt.php” file and re-uploading it to the “wp-admin” directory as instructed. I logged into WordPress as Admin, and then excuted the php command (http://myurl/wordpress/wp-admin/import-mt.php). I got the following error:
    Parse error: parse error in…www/blog/wp-admin/import-mt.php on line 279.
    I looked at line 279 of “import-mt.php” in Dreamweaver and its the last line of code in the php file…
    // Check if it’s already there
    if (!$wpdb->get_row(“SELECT * FROM $tablecomments WHERE comment_date = ‘$comment_d
    Why would the import be failing in this line?

Viewing 11 replies - 1 through 11 (of 11 total)
  • MaxT

    (@maxt)

    AFAIK that article were wrote for WP 1.01 version and is not fully compatible with new WP 1.2 and MT 3.0

    Thread Starter dbe4876

    (@dbe4876)

    Somebody got a “fix” for this issue? I’d really like to move my MT posts into WordPress (I signed up to beta test and installed MT 3.0 before SixApart put out the new price list – and its outta my range now;-)

    carthik

    (@carthik)

    dbe4876, I hope you are trying to install 1.2 beta, and not 1.0.1 or 1.0.2. If it’s 1.2 beta, then I can help with the importing, it works fine, really.

    Moderator Matt Mullenweg

    (@matt)

    dbe, it sounds like maybe when you edited the file you forgot to close a quote or something.

    Thread Starter dbe4876

    (@dbe4876)

    I’m not seeing anything wrong with this…
    define(‘MTEXPORT’, ‘import.txt’);
    Quotes, etc., all seem to be in place. Again, the error message indicated the problem was in line 279 (not line 2).
    Also, I took the 1.02 “stable” version for installation. Is the code for line 279 in “import-mt-php” any different in 1.2 beta?

    Anonymous

    Okay WordPress developers, I still need a solution to the parse error on line 279 of the “import-mt.php” script. I’d like to move forward with migrating to WordPress, and getting my MT posts imported is the first major goal. I really need your help. Thanks! -Dave

    carthik

    (@carthik)

    Dave,
    I’ll be glad to help you out. Can you please use a more recent import-mt.php (get one from the cvs-sourceforge, accessible through the download section — view cvs) and give it one last shot.
    Use wordpad to edit the import-mt.php file, or a web interface if you have one (using wordpress’ in built template editor is a good way of doing it too).

    carthik

    (@carthik)

    dbe4876, from your posts, it appears you are using v1.0.2 Please upgrade to the latest 1.2.x version before using the new import-mt.php
    _e is the function used for localization, in 1.2. So please do upgrade and try again.

    carthik

    (@carthik)

    After you get the files for 1.2 and upload them to your server, You have to point your browser at http://example.com/wordpress/wp-admin/upgrade.php to upgrade your install. This makes the required changes in the mysql databases, and in general upgrades your wordpress install to use new functions and such.
    After you run upgrade.php, run the import-mt.php script.
    Simply uploading the new version files does not upgrade your installation. πŸ™‚

    Thread Starter dbe4876

    (@dbe4876)

    Fargon,
    Okay GOT IT! Finally! Ran the Upgrade and found all my imported entries alive and well. Whew! Thanks for the help!!
    http://www.dave.englund.name/blog/index.php

    carthik

    (@carthik)

    I’m happy for you.
    I’m sorry it took such a long time. Now that you are in, have a ball πŸ™‚

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

The topic ‘Parse error when importing MT entries’ is closed to new replies.