i am attempting to use this module to deploy from my dev to my stage environments
the site will eventually be multilingual

i am basically doing this:

drush @$site export-all #uses structure_sync module to convert taxonomy + blocks + menu links into config
drush @$site config-export-plus --destination=/home/$user/.drush/config-export.$now #--ignore-list=/home/$user/.drush/config-ignore.yml
# copy all the files from the dev server to the stage server via scp
unset site
drush @$site -y config-import-plus --source=/home/$user/.drush/config-export.$now
drush @$site import-all

things break at the last point:

drush @$site import-all
Importing taxonomies...
What import style would you like?
 [0]  :  Cancel 
 [1]  :  Full   
 [2]  :  Safe   
 [3]  :  Force
2
Using "Safe" import style
Invalid argument supplied for foreach() TaxonomiesController.php:401                                                                                           [warning]
Successfully imported taxonomies                                                                                                                                    [ok]
Importing menu links...
What import style would you like?
 [0]  :  Cancel
 [1]  :  Full
 [2]  :  Safe
 [3]  :  Force
1
Using "Full" import style
Invalid argument supplied for foreach() MenuLinksController.php:220                                                                                            [warning]
exception 'Drupal\Core\Database\InvalidQueryException' with message 'Query condition 'menu_link_content.uuid NOT IN ()' cannot be empty.' in                     [error]
/home/madraset/public_html/lab/core/lib/Drupal/Core/Database/Query/Condition.php:103
Stack trace:
#0 /home/madraset/public_html/lab/core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php(27):
Drupal\Core\Database\Query\Condition->condition('menu_link_conte...', Array, 'NOT IN')
#1 /home/madraset/public_html/lab/core/lib/Drupal/Core/Entity/Query/Sql/Condition.php(53): Drupal\Core\Database\Query\Select->condition('menu_link_conte...',
Array, 'NOT IN')
#2 /home/madraset/public_html/lab/core/lib/Drupal/Core/Entity/Query/Sql/Query.php(163):
Drupal\Core\Entity\Query\Sql\Condition->compile(Object(Drupal\Core\Database\Driver\mysql\Select))
#3 /home/madraset/public_html/lab/core/lib/Drupal/Core/Entity/Query/Sql/Query.php(74): Drupal\Core\Entity\Query\Sql\Query->compile()
#4 /home/madraset/public_html/lab/modules/structure_sync/src/Controller/MenuLinksController.php(226): Drupal\Core\Entity\Query\Sql\Query->execute()
#5 /home/madraset/public_html/lab/modules/structure_sync/src/Controller/MenuLinksController.php(137):
Drupal\structure_sync\Controller\MenuLinksController::deleteDeletedMenuLinks(NULL, Array)
#6 /home/madraset/public_html/lab/modules/structure_sync/src/StructureSyncHelper.php(72):
Drupal\structure_sync\Controller\MenuLinksController->importMenuLinks(Array, NULL)
#7 /home/madraset/public_html/lab/modules/structure_sync/structure_sync.drush.inc(224): Drupal\structure_sync\StructureSyncHelper::importMenuLinks(Array)
#8 /home/madraset/public_html/lab/modules/structure_sync/structure_sync.drush.inc(73): drush_structure_sync_import_menus(false)
#9 [internal function]: drush_structure_sync_import_all()
#10 /home/madraset/public_html/lab/vendor/drush/drush/includes/command.inc(422): call_user_func_array('drush_structure...', Array)
#11 /home/madraset/public_html/lab/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#12 [internal function]: drush_command()
#13 /home/madraset/public_html/lab/vendor/drush/drush/includes/command.inc(199): call_user_func_array('drush_command', Array)
#14 /home/madraset/public_html/lab/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#15 /home/madraset/public_html/lab/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#16 /home/madraset/public_html/lab/vendor/drush/drush/drush.php(12): drush_main()
#17 {main}

thanks in advance

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marafa created an issue. See original summary.

fidovdbos’s picture

Hi marafa,

here is a patch to fix the issue, i have create a new version of the module so you van also update the module to last version.

Hope the model works fine nou.

Greetings,

Fidodido06

fidovdbos’s picture

Status: Active » Needs review
fidovdbos’s picture

after a lot of tests i found some other issue related to this.

here is the a additional patch for fixing the issue

I recommend to update to version 1.7

  • fidodido06 authored d037ac0 on 8.x-1.x
    Issue #2933837 by fidodido06: borks on import
    
fidovdbos’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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