Support » Plugin: Block Lab » Migration Issues – Multisite

  • Resolved tporteusiatro

    (@tporteusiatro)


    Hello,

    Few issues with the migration tool in a multisite environment:

    – No ability to migrate all sites
    – Final step trys to disable and remove the Block Lab plugin – Even if used by other sites! I have Block Lab network activated so this failed the permission check.

    So I don’t really have a route forward, I’ve network activated the new plugin, and my templates are picked up by both plugins – but I can’t add anything new and have no way of seeing which sites are activated and which aren’t.

    I’m left with opportunistically migrating sites, but with a few 1000 this is going to be painful.

    Please can you improve the migration tool to support multisite?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ryan Kienstra

    (@ryankienstra)

    @tporteusiatro,
    Sorry, and thanks for your patience.

    I’m left with opportunistically migrating sites, but with a few 1000 this is going to be painful.

    OK, does migration work for an individual site in the multisite?

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Not saying that’s a good solution, just trying to see exactly what isn’t working.

    tporteusiatro

    (@tporteusiatro)

    They work individually, just errors at the last step when it tries to remove blocklab.

    What is the migration doing? Is it just changing the CPT or is it migrating more than that?

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Ah, good to know.

    The migration is changing the block CPT and changing the namespace of blocks in post_content from block-lab/ to genesis-custom-blocks/

    tporteusiatro

    (@tporteusiatro)

    If I used a search and replace plugin could I achieve the same effect?

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hm, an earlier comment I made is held for moderation. That explains what the migration does.

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    A search and replace might be enough for the post_content migration to the genesis-custom-blocks/ namespace, but probably won’t migrate the block CPT.

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    This will migrate a single site’s CPTs and post_content, though I know it doesn’t help with multisite.

    
    wp shell
    ( new Block_Lab\Admin\Migration\Post_Content( 'block-lab', 'genesis-custom-blocks' ) )->migrate_all();
    ( new Block_Lab\Admin\Migration\Post_Type( 'block_lab', 'block-lab', 'block_lab', 'genesis_custom_block', 'genesis-custom-blocks', 'genesis_custom_blocks' ) )->migrate_all();
    
Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.