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!
Comment | File | Size | Author |
---|---|---|---|
#17 | d8_block_ok.png | 7.86 KB | anavarre |
#17 | d8_block_conf.png | 12.66 KB | anavarre |
#17 | d8_block.png | 5.58 KB | anavarre |
#17 | d6_block.png | 8.07 KB | anavarre |
#16 | D6Manifest-block.yml | 151 bytes | mrjmd |
Comments
Comment #1
ultimikeAdded information about enabled modules to issue summary.
Comment #2
ultimikeAdded related issue.
Comment #3
eliza411 CreditAttribution: eliza411 commentedComment #4
ultimikeUpdated test manifest to include custom block migration.
-mike
Comment #5
ultimikeComment #6
bdone CreditAttribution: bdone commentedi've updated instructions' migrate-manifest command to use the db-url option, per latest version of migrate-manifest.
Comment #7
brockfanning CreditAttribution: brockfanning commentedJust 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"
Comment #8
ultimikeComment #9
ultimikeComment #10
joemoraca CreditAttribution: joemoraca commentedsimple test with a couple of custom blocks worked for me ;-)
Comment #11
ultimikeComment #12
ultimikeComment #13
mrjmd CreditAttribution: mrjmd commentedI'm uploading a new copy of the manifest without the typo in the filename. Makes it easier to copy and paste the migrate command.
Comment #14
jarsenx CreditAttribution: jarsenx commentedHere's a new copy of the manifest file that includes two other required migrations: block_content_body_field and block_content_type.
Comment #15
ultimikeComment #16
mrjmd CreditAttribution: mrjmd commentedRan 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.
Comment #17
anavarreI'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.
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:
Comment #18
anavarreOkay, 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?
Comment #19
anavarreAfter looking into this more I found #2281393: D6->D8 Blocks - Custom titles not imported which looks to be the issue I'm seeing.
Comment #20
benjy CreditAttribution: benjy at CodeDrop commentedMarking 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.