The nascent wizard API support has broken attachment field support - formerly there was a single attachment field setting, passed as an argument to the attachment migration, assuming the blog posts but not pages would have attachments. This is now a setting that can be made separately for blog posts and pages - done on the UI end, but the attachment class code needs to make sense of it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

steveshen73’s picture

Hi Mike,

thanks for your great work. Somehow I found that I can not import images and comment from wordpress to my drupal 7 site.

Here are the errors:
Skipped sshenblogAttachment due to unfulfilled dependencies: sshenblogBlogEntry
Skipped sshenblogComment due to unfulfilled dependencies: sshenblogBlogEntry

I set up a field named Image on my blog entry type. (with file type, also tried field_image type) , both no luck. The comment can not be imported too. I had a comment field under blog entry content type (under comment fields).

Can you help to point out where I did wrong ?

Really appreciate!

steveshen73@gmail.com

himanshupathak3’s picture

When you import your wordpress posts.
set:
Convert WordPress posts to : Article
and
in text formats set:
Text fields: full Html
Comment Text fields:
full html

hurray... now comments and posts all will show attachments (images)

mikeryan’s picture

This issue is specifically about changes made to how attachment fields are handled in the refactoring we're doing in the next release.

The unfulfilled dependencies indicate that for some reason not all your blog entries were imported. If you go the Migrate dashboard (admin/content/migrate), is there a number greater than 0 in the Messages column for sshenblogBlogEntry? If so click on it to see what the messages are, and please post an example in a new issue in the support queue.

steveshen73’s picture

Thanks, Mike.

I checked the message under (admin/content/migrate), total rows: 326 imported: 325 unimported: 1 messages: 0.

Here is the screenshot for the unmapped message (17 unmapped) for sshenblogBlogEntry

On sshenblogComment, message ares:
comment_body:format Subfield: Text format for the field
comment_body:language Subfield: Language for the field

Thanks

steveshen73’s picture

Thanks, Mike.

I checked the message under (admin/content/migrate), total rows: 326 imported: 325 unimported: 1 messages: 0.

Here is the screenshot for the unmapped message (17 unmapped) for sshenblogBlogEntry

On sshenblogComment, message ares:
comment_body:format Subfield: Text format for the field
comment_body:language Subfield: Language for the field

steveshen73’s picture

I think I figured out how to import comments from wordpress blog into drupal 7, Mike. But somehow the images still can not be imported from wordpress using the way that I did with comments.

Thanks

katin’s picture

I'm just adding some data clues here for others that might be running into the "Skipped Comment due to unfulfilled dependencies" issue. What finally worked for me was removing some extra comment data that was in the export file. The extra data looked like this in the XML file:

<wp:commentmeta>
<wp:meta_key>dsq_parent_post_id</wp:meta_key>
<wp:meta_value><![CDATA[]]></wp:meta_value>
</wp:commentmeta>
<wp:commentmeta>
<wp:meta_key>dsq_post_id</wp:meta_key>
<wp:meta_value><![CDATA[103972399]]></wp:meta_value>
</wp:commentmeta>

As you might have guessed, this data was left over from using Disqus on the Wordpress site for comments. The data was still there even though the Disqus plugin had been uninstalled many months ago. I cleared out the wp_commentmeta table and re-exported, and the comments then imported fine.

atomjack’s picture

Has there been any progress on this? I'd like to be able to import attachments but haven't had any luck. I'm also getting the above unfulfilled dependencies and "field_tags was previously mapped from tag, overridden" errors.

atomjack’s picture

Ok, figured it out - after the import, I went to the Migrate section of admin, clicked the Options link at the bottom of the page and checked "ignore dependencies" and re-ran the attachment import. Got just about all of the attachments after that!

gagarine’s picture

I try everything on the thread but I'm still not able to import attachment. Should I try an older version? Witch one?

ace11’s picture

#9 atomjack - BIG thanks to you! That indeed works :)

gagarine’s picture

I understood why attachments was not imported, in fact it's a problem on the WP side. If you export only "article" you don't have attachment in the XML.

mikeryan’s picture

Status: Active » Fixed

Just made a commit that should fix up the last of this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.