Set up to test:

Important: See https://groups.drupal.org/node/398588 to get set up. This page also includes instructions for re-setting to a clean destination.

Ensure modules are enabled on the source and destination sites:
D6: drush en block -y
D8: drush en block -y

Place some blocks (including a custom block or two) on your D6 site in various regions.

Place the manifest file in the D8 site root

Download the attached file (be sure to remove the "_.txt" - Drupal.org doesn't allow uploading of .yml files).

Run the migration

From the D8 site root:
drush migrate-manifest --db-url=mysql://user:pass@source/source D6Manifest-Block.yml

If you've updated/installed drush 7.x after July 16, 2014, you'll want to use:

drush migrate-manifest --legacy-db-url=mysql://user:pass@source/source D6Manifest-Block.yml

Be sure to use the connection information for the source (D6) database, not your D8 database!

Compare post-migration settings

Block settings for Drupal core-provided blocks including:

* Book navigation
* Active forum topics
* New forum topics
* Syndicate
* Powered by Drupal
* User login

Note that only those blocks whose corresponding modules are enabled on both the source and destination will be migrated.

Success?

If your site migrates successfully, let us know with a comment on this issue. We'd love to hear details like:

  • the size and complexity of the site you migrated
  • performance observations
  • any customizations you made to the migration manifest!

Problems?

Open a new issue as a normal priority support request. Describe what happened, including the exact text of error messages. Depending on the nature of the problem, someone may ask for a sample of the data you're trying to migrate or follow up with other questions.

Remember, too, that this is pre-Beta. The focus is on D6 core > D8 core, not custom work or contributed modules, so there may be portions of your site that need special consideration that won't get addressed at this point in the process.

Documentation Needed

The logic behind the block and theme mapping needs to be documented somewhere. Specifically:

Theme mapping
Region mapping
What to expect when migrating

Important: Please connect your issue to this issue when you create it by using entering this ticket number, 2221805 , in the Parent issue field!

Comments

ultimike’s picture

Issue summary: View changes

Added information about enabled modules to issue summary.

ultimike’s picture

Added related issue.

eliza411’s picture

Issue summary: View changes
ultimike’s picture

StatusFileSize
new82 bytes

Updated test manifest to include custom block migration.

-mike

ultimike’s picture

Project: IMP » Drupal core
Version: » 8.x-dev
Component: Miscellaneous » migration system
Related issues: +#2248407: D6 Block Mapping, +#2250429: d6_block migration not migrating all blocks, +#2248691: D6 custom block migration overwrites existing D8 custom blocks?
bdone’s picture

Issue summary: View changes

i've updated instructions' migrate-manifest command to use the db-url option, per latest version of migrate-manifest.

brockfanning’s picture

Just a note that testing this requires the patch in https://drupal.org/node/2248407
Without the patch, this gives me the error: "Migration d6_block did not meet the requirements"

ultimike’s picture

Issue summary: View changes
ultimike’s picture

Issue summary: View changes
joemoraca’s picture

simple test with a couple of custom blocks worked for me ;-)

ultimike’s picture

Issue summary: View changes
ultimike’s picture

Issue summary: View changes
mrjmd’s picture

StatusFileSize
new82 bytes

I'm uploading a new copy of the manifest without the typo in the filename. Makes it easier to copy and paste the migrate command.

jarsenx’s picture

StatusFileSize
new136 bytes

Here's a new copy of the manifest file that includes two other required migrations: block_content_body_field and block_content_type.

ultimike’s picture

mrjmd’s picture

StatusFileSize
new151 bytes

Ran a fresh test of this today, and received the following error:

Migration d6_block did not meet the requirements. Missing migrations d6_user_role. requirements: d6_user_role.

Added the requirement to the bottom of the manifest, new manifest file attached.

anavarre’s picture

StatusFileSize
new8.07 KB
new5.58 KB
new12.66 KB
new7.86 KB

I've run a dummy block migration with the YAML file provided in #16 - Drush ran nicely and the test blocks (Powered by Drupal + a custom Hello world block) were successfully migrated.

Running d6_block_content_type             [ok]
Running d6_block_content_body_field       [ok]
Running d6_menu                           [ok]
Running d6_filter_format                  [ok]
Running d6_custom_block                   [ok]
Running d6_user_role                      [ok]
Running d6_block                          [ok]

I could however spot an issue with the block titles (core/custom) on the D8 site. Here's the D6 block:

Now the D8 block. Note the missing title...

...despite the block title being successfully migrated over and the Display title option selected as seen in the block configuration:

Saving the block again does show the block title just fine this time:

anavarre’s picture

Okay, compared the CMI revisions before and after I fixed the block title. The label is indeed missing.

label: ''

Also not sure the file should be named block.block.block.yml?

anavarre’s picture

After looking into this more I found #2281393: D6->D8 Blocks - Custom titles not imported which looks to be the issue I'm seeing.

benjy’s picture

Status: Active » Fixed

Marking this issue fixed as I think we've reached a point now where the Drupal 6 to Drupal 8 issue path is stable enough that we can simply open individual issues as problems arise.

Status: Fixed » Closed (fixed)

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