• Hi, I’m using Local app to run a WordPress dev site on my local machine to test an import of a large XML file (400MB) that is over the limit for shared hosting file limit size. My goal is to import it locally and then make smaller export files. The import works perfectly when I increase the php.ini settings for max file size and memory. The problem is that when I run the import I get errors for every user that would be created (but isn’t because of the error). The error is:

    Warning: Undefined array key 1 in /Users/carolyn/Local Sites/iparticles/app/public/wp-content/plugins/wordpress-importer/parsers/class-wxr-parser-regex.php on line 65

    It still runs but it assigns my user account as the author of all the articles. There are about 300 authors that need to get imported and should remain the authors of their respective posts.

    I ran smaller imports with the same number of users/authors and for these smaller XML imports it works perfectly, giving me the option to create a new user for each unique user (which is what I want) or assign to an existing user. But for the larger file I get the error and no ability to create the users during import.

    The other difference between the large file and the smaller file is that the large file includes image attachments that I am downloading and the smaller file does not.

    Is there any way to solve this, do I need to look at another method for import?

    Thanks in advance for any pointers.

    Best regards,

    Carolyn V.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator jordesign

    (@jordesign)

    Hey @carolynvictoria – that definitely sounds like a bit of a strange one. Given that the import works correctly (and assigns the correct authors) when done in a small batch, but not in the larger batch, it definitely sounds like a bug of some description.

    My suggestion would be to report that as a Bug/Issue for the plugin within Github – where the development for it is managed.

    https://github.com/WordPress/wordpress-importer/issues

    Thread Starter Carolyn Victoria

    (@carolynvictoria)

    Hi @jordesign, thanks that was helpful. There are at least two other bug reports currently open on this issue but no fix. I will be looking more closely at the differences in the user data portion of the failed and the successful XML files to see if I can figure it out. Meanwhile it’s a known bug but not resolved yet. Thanks for your comments.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error during import of users for large XML file’ is closed to new replies.