WordPress.org

Ready to get started?Download WordPress

Forums

WXR Imports everything on one server, only first post on another (3 posts)

  1. Dennis Whiteman
    Member
    Posted 5 years ago #

    I've developed a system that converts an xml file exported from one piece of software to a WordPress eXtended RSS (WXR) file that can be used to import WordPress posts.

    This has worked great in my test environment, a Macintosh running Mac OS X 10.5.5, but on two other non-Mac servers, both running some flavor of Linux, the file is imported, but only the first post is recognized. There's no apparent error as a result of only one post being imported. The file is less than 200K (server max is 8MB) so it's not a size limitation issue.

    So, on the Mac, 100 posts are imported, but using the same WXR file on two different Linux servers, only one post is imported. Any ideas as to where I should be looking for the problem and what I might be able to do to resolve it?

    Dennis

  2. Dennis Whiteman
    Member
    Posted 5 years ago #

    Since WordPress uses regular expressions rather than an XML processor on import, that's one potential source of problems I've been pursuing. My Macs running Leopard have PCRE Library Version 7.6 (7.8 is the latest); the two Linux servers where the import only brings in one or two records have PCRE Library Versions 6.6 and 6.7.

    All three servers are running Apache 2, PHP 5 and MySQL 5, though there are some minor variations. I should add that I have virtually no control over any server software running on the two Linux servers.

    Does it make sense that this difference in the PCRE libraries on two different platforms could be the problem? Anyone have any suggestions working around it?

    Dennis

  3. Dennis Whiteman
    Member
    Posted 5 years ago #

    For now I have a work around, but I'd really like to find a longer term solution since we're replacing manual data entry with this import process.

    The work around is to import my XML file on the Mac to a new user and then export the new records for that user to a new WXR file that I then import into the production server. Really, this just means the Linux machines have an issue with the WXR file I'm generating, but I'll revisit that later when I have more time.

    Dennis

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags