I'm trying to figure out what should happen when running a D6 Upload migration. I'm getting errors and results that are different than I expect, but I'm not totally clear what the expected behavior is.

On my D6 site:

  • Upload module is enabled
  • There's a content type, Spotlight
  • One Spotlight node has a file attached using Upload
  • One basic page node also has a file attached using Upload

When I run the migration manifest in #2223993: Manual Testing: D6 Upload, I get the following outcome:

$ sudo drush migrate-manifest mysql://imp:sourcepass@localhost/source D6Manifest-Upload.yml

filesize(): stat failed for public://theend.png File.php:205                            [warning]
filesize(): stat failed for public://screencap.png      [warning]
File.php:205
The specified file sites/default/files/theend.png could not be copied because no file by[error]
that name exists. Please check that you supplied the correct filename.
The specified file sites/default/files/Error | Drupal.org D7 2013-07-03 15-19-42.png    [error]
could not be copied because no file by that name exists. Please check that you supplied
the correct filename.

Additionally:

  • The Page content type now has a file field
  • The Page file field is disabled in Manage display, even though Upload is configured to display files by default
  • There is no file value for the Basic page node (probably because of the errors above)
  • The spotlight content type does not have a file field.

Comments

eliza411’s picture

Issue summary: View changes
eliza411’s picture

Title: Errors migration uploaded files » Errors migrating uploaded files
eliza411’s picture

With the revised manifest on the parent issue:

- d6_file
- d6_node
- d6_upload_entity_display
- d6_upload_entity_form_display
- d6_upload_field_instance
- d6_upload_field
- d6_view_modes
- d6_filter_format
- d6_node_type
- d6_field_instance
- d6_field
- d6_field_settings
- d6_node_settings

I get:

$ sudo drush migrate-manifest mysql://imp:sourcepass@source.l/source D6Manifest-Upload.yml
filesize(): stat failed for public://theend.png File.php:205                            [warning]
filesize(): stat failed for public://Error | Drupal.org D7 2013-07-03 15-19-42_0.png    [warning]
File.php:205
The specified file sites/default/files/theend.png could not be copied because no file by [error]
that name exists. Please check that you supplied the correct filename.
The specified file sites/default/files/Error | Drupal.org D7 2013-07-03 15-19-42_0.png  [error]
could not be copied because no file by that name exists. Please check that you supplied
the correct filename.
ultimike’s picture

Project: IMP » Drupal core
Version: » 8.x-dev
Component: Miscellaneous » migration system
benjy’s picture

Status: Active » Closed (duplicate)