• I did a search of the forums for Postnuke to WP import/conversion and noticed a few people seem to have done it, but couldn’t find any practical tips and / or tools for the job.

    Could someone point me in the right direction of an import script please? (or indeed any other useful info welcome).

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Scott

    (@scottwermter)

    I needed the same thing and did lots of searching and came up with these sites. I have not tried it yet but it looks very promising. Let me know how it goes.

    https://migratedata.sourceforge.net/

    https://www.csamuel.org/2007/01/06/script-to-migrate-postnuke-to-wordpress-2/

    -Scott

    Thread Starter darkhorse57

    (@darkhorse57)

    Thanks.

    I had a look at https://migratedata.sourceforge.net and in itself seems to be the tool for the job at a very basic level (i.e. migrating Stories from PN)

    The core script would need quite a lot of additions to the XML to migrate all the data I have in PN – thousands of reviews and hundreds of items in both PageEd and Content Express tables…….could take quite a while to write all the XML to do the conversion, but the script is an excellent starting point.

    Not sure if anyone else has gone through this in recent memory, but I was using Postnuke for years to run my blog and recently moved to WordPress. I did some digging online and found a convert script that seemed to work pretty good but was not ready for 2.5 of WP. So, I re-wrote some of the code and was able to import my PN blog to WordPress using the modified script. It kept my categories & comments no problem.

    If anyone needs this script, I’ve made it available at https://bobsroom.com/misc/pnconvert_250.txt

    That’s it. Figured I’d share it out as I know others would might make use of it as well. No guarantees but it could help someone.

    I’m encountering an error that just looks wrong but I’m not a coder so I’m struggling to figure out what is happening. This is the DB info (modified for some privacy) used in the script:

    $hostname = "cobalt.ipowermysql.com";
        $username = "cobalt";
        $password = "mypass";
    
        $sourcedb = "cobalt_pn"; // your postnuke database
        $sourcetable = "nuke_stories"; // your postnuke stories table
        $sourcecat = "nuke_topics"; // your postnuke topics table
    
        $destdb = "wpress"; // your wordpress database
        $desttable_prefix = "wp_"; // you word press table prefix

    With this I get the following error but notice it looks like the missing table is a concatenation of my PN DB and WP tables. Any idea what is happening?

    Updating Comment Counts
    SID Comment count
    Fatal Error: Table ‘cobalt_pn.wp_posts’ doesn’t exist

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Postnuke to WP import’ is closed to new replies.