• Resolved lindseyh

    (@lindseyh)


    I previously had an older version of wordpress on different server. After trying to backup my database and import tables/mysql db and failing I decided to upgrade that installation, export the wordpress file and import it to my new WP installation on a different server.

    Everything went smoothly except for the import. I have a file that has roughly 300 entries and 3000 comments, however whenever it imports into my new wordpress installation, only the first 155 entries come through. The other half don’t. I tried to import twice, the second time deleting the entries that came through the first time, but then the file imported nothing.

    Does anyone have any idea what could be causing this? I don’t know why WP is exporting fine but not importing. Is there another way I can go about importing my entries to the new wordpress installation?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Vietson

    (@limited)

    You can manually import your posts. Most db import only file size up to 3mb (or at least my server).

    Chris_K

    (@handysolo)

    Would be nice to know what versions of WP are running on the old and new and which export and import options you’re trying.

    If 2.1.x, go to Manage -> Export to get the “WXR” xml file on the old blog. (if not 2.1, go get the WXR plugin here).

    On the new blog, then just go to Options -> Import and choose the WordPress option.

    Thread Starter lindseyh

    (@lindseyh)

    hey, sorry guys for being so vague. I am exporting from 2.1.x and I am importing to 2.1.x. Originally the blog I tried to export the db from was older (I can’t remember what version, but not 2.1.x) and that wasn’t working for me so I upgraded to the current version to fix this. But now my importing is not complete. I have the WXR xml file and it’s exporting properly, as far as I can tell it has 300 entries, but WP is not pulling in all 300 entries even though they are in the file.

    Chris_K

    (@handysolo)

    Hmm, and the import you’re doing is the “WordPress” option?

    Have you checked your web server’s error log? I wonder if you’re running out of (php) memory.

    Thread Starter lindseyh

    (@lindseyh)

    Yeah I did the WP option. I don’t know what’s going on. Yesterday I started getting 500 internal errors, so I gave up after trying to just restore the db. I restored the db and changed the config file and now everything is peachy, all 300+ entries and 3K+ comments are where they’re supposed to be. Not sure why the import wouldn’t work, but for now all that matters is that I got them in the system via the db restore.

    Stelios

    (@djstelios)

    I had the same problem trying to import 1463 posts. As soon as I fixed the PHP timeout and CGI timeouts, the importing was always stopping at the post #643. I realize the problem was on post #644.

    Opening the XML file with the WXR data, and manually removing the problematic item from the XML (about 2500 lines), everything was working fine. I was reading and re-reading the lines of the specific post and after 2-3 hours!!!! I realize the problem was on some comments. I remove a range of comments from the XML and everything was fine.

    For the specific post the PHP’s preg_match_all function, was unable to parse the regular expression pattern '|<item>(.*?)</item>|is', used by wordpress.php importer, because of a mis formatted? comment between the <item> elements.

    Anyway, I was unable to find out a recent solution, even replacing lines on XML output, nor changing the search pattern, except from deleting a range of problematic comments

    Is there a way to execute the import script on the server? I’m getting timeouts when I try to import through the web, but I have access to execute the imports on the server, I just need to know what commands to execute.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Partial Import WordPress to WordPress’ is closed to new replies.