• Hello. I’m currently trying to migrate my wife’s blog from Mambo to WordPress. I set up WP and I’m trying to use the script available in the codex to make the import. I added the db info on the config file and tried to run the export script. I get the following error:

    Parse error: parse error, unexpected T_VARIABLE in /home/content/m/h/h/mhh1212/html/wordpress/export/index.php on line 1

    This is in the index.php that hasnt been edited. I opened up the file and that path is nowhere to be found. Going through the Mambo adminstrator I see in the server info that path is set as absolute path. Is that determined by the hosting company? (godaddy).

Viewing 3 replies - 1 through 3 (of 3 total)
  • I had same issue.. I commented out the this line at the top: $_wp_installing = 1; and I got a bit further.. looks like it works but then it gets stuck at the second step looking for the file wp-includes/functions-formatting.php.

    I recon this script is old and not quite working with the newer versions of wordpress as the file above is not in the version im using. I will try an older vesion of WordPress and try to upgrade from it.

    I found the file functions-formatting.php was renamed to formatting.php sometime around 2.0.6 so I did a search and replace on the index.php and renamed it in the script. This script will only work up to 2.2.3. The 2.3.x series renames the wp_category table causing this script to not work. It wouldn’t put things into the category I wanted so I ended up doing that manually.

    I got this script to work with WP 2.3.2 thanks to a little minor hackery. It wasn’t pretty but it did the job.

    in index.php rename as follows:

    * cat_ID –> term_ID
    * categories –> terms
    * cat_name –> name
    * wp_categories -> wp_terms

    There might be a little more to it than that, I’ll send you my modded index.php if you don’t care to search and replace for half an hour like I did.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Migrating from Mambo to WordPress’ is closed to new replies.