Life, SAP, Consulting, Programming, Coding, ASP.NET, Sharepoint, MVC, Javascript, PHP, WebDesign, CSS, HTML

When trying to export and import wordpress data. You sometimes encounter with unknown error like Failed to import Media “slide1”. And you don’t have any clue about what to do. To understand what is going on, you have turn on the Debug function of the plugin. You go to plugin editor, choose the plugin “WordPress Importer” and choose the file wordpress-importer.php.

You will find the line: define( ‘IMPORT_DEBUG’, false );

And change it to

define( ‘IMPORT_DEBUG’, true );

And run the plugin again under menu “Tools->Import”

You will see what is going on by reading the error message.

Something like:

Failed to import Media “slide1”: Fetching attachments is not enabled

Or:

 Invalid post type home_page

For the second type of error message (Which says  Invalid post type home_page). You should check again with previous WordPress site, add the custom post type and do import again.

For the first type of error message. You rerun the Importer and select Download and import file attachments

Remember to download attachment file for to your site first. WP will check for not-currently-available files on server only.

Good luck.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: