WordPress demo content import "Invalid post type" issues

asamra said

I found the answer on http://wordpress.org/support/topic/failure-to-import-and-invalid-post-type-errors same as RockNRollaDesigns answer I gzipped the xml file and re-import it.
it took a little long time to import but finally it works :slight_smile:

Supercool, Iā€™m glad the RockNRollaDesignsā€™ solution works fine!

Thanks very much for sharing the result with us!

This solutions donā€™t work here ā€¦ same error ā€¦ ā€œInvalid post typeā€ when i upload gz file!

l0244018 said

This solutions donā€™t work here ā€¦ same error ā€¦ ā€œInvalid post typeā€ when i upload gz file!

Hi, and what theme do you use? One of my themes? ( http://themeforest.net/user/webmandesign/portfolio ) If so, please log a ticket on http://support.webmandesign.eu

Regards,

Oliver

RockNRollaā€™s trick kinda worked. However it left me withā€¦

Failed to create new user for admin. Their posts will be attributed to the current user.
Failed to import Media ā€œparallax-holderā€
Failed to import Media ā€œslider-holderā€
Failed to import Media ā€œflex-holderā€

I would assume I need these to not fail. Is there a separate trick for Failed To Import Media? Iā€™m using the 907 Parallax template.

Pretty sure this issue lies with Wordpress Importer.

The GZIP trick worked for me too, very odd, never had an issue doing this before.

Hi Webman,

Same problem with the LesPaul Theme v2.2

Failed to import Media ā€œTesting image titleā€
Failed to import Media ā€œ5ā€
Failed to import Media ā€œ2ā€
and so onā€¦
Also tried the gzip-solution but that does not work for me.

I tried to upload my Envato Purchase Code onto your website but it is not acceptedā€¦:frowning:

mvierhuis said

Hi Webman,

Same problem with the LesPaul Theme v2.2

Failed to import Media ā€œTesting image titleā€
Failed to import Media ā€œ5ā€
Failed to import Media ā€œ2ā€
and so onā€¦
Also tried the gzip-solution but that does not work for me.

I tried to upload my Envato Purchase Code onto your website but it is not acceptedā€¦:frowning:

Hi,

The issue youā€™ve described is actually not the same. From your description, you only have issue with importing media, which are demo images anyway and they should be changed.

If you still need help with this, please contact me via my profile contact form at http://themeforest.net/user/webmandesign#contact and post your !LesPaul purchase code so I can check why you are not accepted for support forum registration (havenā€™t you used the code to register before already?).

Thanks and regards,

Oliver

Anyone have problems importing?
Import WordPress
Failed to import Media ā€œelogixā€
Failed to import Media ā€œelogix_whiteā€
Failed to import Media ā€œbg1ā€
Failed to import Media ā€œ2ā€
Failed to import Media ā€œlogosā€
Failed to import Media ā€œbright_squaresā€
Failed to import Media ā€œconcrete_wallā€
Failed to import Media ā€œdotsā€
Failed to import Media ā€œdots1ā€
Failed to import Media ā€œteaser1ā€
Failed to import Media ā€œteaser1ā€
Failed to import ā€œSlide1 Uploadā€: Invalid post type optionsframework
Failed to import ā€œSlide2 Uploadā€: Invalid post type optionsframework
Failed to import ā€œSlide3 Uploadā€: Invalid post type optionsframework
Failed to import ā€œSlide4 Uploadā€: Invalid post type optionsframework
Failed to import ā€œSlide5 Uploadā€: Invalid post type optionsframework
Failed to import ā€œSlide6 Uploadā€: Invalid post type optionsframework
Failed to import ā€œLogo Uploadā€: Invalid post type optionsframework
Failed to import ā€œFavicon Uploadā€: Invalid post type optionsframework
Failed to import ā€œFooterlogo Uploadā€: Invalid post type optionsframework
Failed to import ā€œDefault Backgroundā€: Invalid post type optionsframework

I watched the youtube video, not sure where to start

I know this thread is super old, but google brought me here.

For me the issue was trying to edit the file - I ran some ā€œbeautifyā€ functions on the XML so I could try and understand the structure better and cherry pick a few items to import. This may be the same issue if youā€™re trying to build an XML file from scratch or via a script instead of using Tools > Export.

This is exactly what the Export tool spits out - this imports successfully:

<wp:post_type><![CDATA[page]]></wp:post_type>

This breaks things and will fail with the message
Failed to Import ā€œPage Titleā€: post type Page

<wp:post_type>
    <![CDATA[page]]>
</wp:post_type>