I have a “weird” issue here.
Recently I had couple of support calls for demo content of my themes. In both instances the WordPress importer returns many of similar errors:
- Failed to import post tag
- Failed to import (yes, this one is plain just like that)
- Failed to import "XYZ": Invalid post type
Even I was able to replicate the issue when installing the demo content (and also with other ThemeForest themes I’ve bought) on localhost on my computer. It was working perfectly fine before. The only change I can think of was that I updated my theme demo websites (from where the demo images are being downloaded) to current WordPress 3.5, but I don’t think it should be a problem.
Though, when I try to install the demo content on the same server where my theme demo websites are installed, everything works fine.
This rises several questions for me and I was wondering if anybody can shed a light on them:
- Why there are these "invalid post type" errors during the import process? As far as I know, WordPress takes the post types directly from XML file regardless what theme is installed / what post types you are actually using. The not-existing post types should be just saved in database, so they should be imported. Why does WordPress have issues with this? (And BTW, there is no error in actual XML file - I've run through it all and as I've mentioned, the erroneous imports occurs intermittently while importing the same file.)
- During import process WordPress downloads only images and attachments from external server. All other data are being taken from XML file, right?
- As of previous question: could WordPress import fail due to bandwidth limitation to my theme demo website?
- Can somebody explain how the WordPress import works? How it creates WP data, how it imports images (if it import also all created formats or just the main image that is formated during the import process)?
Thank you in advance for any suggestions/ideas!