I am trying to move my working Drupal 8.8.2 site to the new composer.json template. I started from scratch following https://www.morpht.com/blog/drupal-and-composer-part-2-managing-drupal-8-site-composer

But that of course does not move my site content, so here is what I did:

  • Edited sites/default/settings.php to have the correct database block, added
    • $config_directories['sync'] = 'sites/default/files
    • $settings['config_sync_directory'] = 'sites/default/sync';
    • if (isset($GLOBALS['request']) and
          '/web/index.php' === $GLOBALS['request']->server->get('SCRIPT_NAME')) {
          $GLOBALS['request']->server->set('SCRIPT_NAME', '/index.php');
      }
  • In composer.json, I added all the missing modules that were in my old composer.json (i.e., that were in modules/contrib), and I removed the require-dev section.
  • I copied my old libraries, profiles, and themes directory to web
  • I copied the old sites/default/files to the new sites/default
  • I deleted the vendor and composer.lock directories.
  • I did
    • composer update --no-dev --with-dependencies
    • drush updb
    • drush cr
  • Then I used composer to add all the modules that I used that were not in modules/contrib or composer.json

After another round of drush updb and drush cr, my site throws a php error:

php             Error      Drupal\Component\Plugin\Exception\PluginNotFoundException: The "condition_group" plugin does not exist. Valid plugin IDs for Drupal\rules\Core\ConditionManager are: entity_bundle:block_con

After much Googling, most posts say to delete and reinstall the offending module. But all of my modules were freshly installed by composer. Also, I haven't a clue as to which module is causing this.

drush cim -y

put a list of yml files in my sync directory, but searching for condition_group in the many files does not seem to turn up a likely suspect:

/public_html/web/sites/default/sync # grep -rnw './' -e "condition_group"
./block.block.announcement.yml:29:  condition_group:
./block.block.announcement.yml:30:    id: condition_group
./block.block.ferrellshop.yml:29:  condition_group:
./block.block.ferrellshop.yml:30:    id: condition_group
./block.block.gtranslate.yml:22:  condition_group:
./block.block.gtranslate.yml:23:    id: condition_group
./block.block.navigation_2.yml:73:  condition_group:
./block.block.navigation_2.yml:74:    id: condition_group
./block.block.orcmaaddress.yml:29:  condition_group:
./block.block.orcmaaddress.yml:30:    id: condition_group
./block.block.pagetitle.yml:23:  condition_group:
./block.block.pagetitle.yml:24:    id: condition_group
./block.block.socialmedialinks.yml:116:  condition_group:
./block.block.socialmedialinks.yml:117:    id: condition_group
./block.block.specialtyplates.yml:29:  condition_group:
./block.block.specialtyplates.yml:30:    id: condition_group
./block.block.views_block__headershow_block_1.yml:32:  condition_group:
./block.block.views_block__headershow_block_1.yml:33:    id: condition_group
./block.block.views_block__next_concert_block_1.yml:32:  condition_group:
./block.block.views_block__next_concert_block_1.yml:33:    id: condition_group
./block.block.views_block__next_concert_block_2.yml:27:  condition_group:
./block.block.views_block__next_concert_block_2.yml:28:    id: condition_group
./block.block.views_block__orcma_pictures_block_1.yml:27:  condition_group:
./block.block.views_block__orcma_pictures_block_1.yml:28:    id: condition_group
./block.block.views_block__slick_slideshow_block_1.yml:27:  condition_group:
./block.block.views_block__slick_slideshow_block_1.yml:28:    id: condition_group
./block.block.zurb_foundation_account_menu.yml:34:  condition_group:
./block.block.zurb_foundation_account_menu.yml:35:    id: condition_group
./block.block.zurb_foundation_branding.yml:32:  condition_group:
./block.block.zurb_foundation_branding.yml:33:    id: condition_group
./block.block.zurb_foundation_breadcrumbs.yml:29:  condition_group:
./block.block.zurb_foundation_breadcrumbs.yml:30:    id: condition_group
./block.block.zurb_foundation_footer.yml:34:  condition_group:
./block.block.zurb_foundation_footer.yml:35:    id: condition_group
./block.block.zurb_foundation_search.yml:31:  condition_group:
./block.block.zurb_foundation_search.yml:32:    id: condition_group

This process should be easier! I tried gocomposer also, but it ended up with similar issues. How can I proceed?

Thanks for the help

Comments

tjtj’s picture

That was drush cex -y, not cim -y.

More info:

/drush wd-one 371815
wid: '371815'
uid: '0'
type: php
message: 'Drupal\Component\Plugin\Exception\PluginNotFoundException: The "condition_group" plugin does not exist. Valid plugin IDs for Drupal\rules\Core\ConditionManager are: entity_bundle:block_con'
severity: Error
link: ''
location: 'https://jarfx.dyndns.org/new/public_html/web/'
referer: ''


@GiorgosK drush entity-update is not helping. But after clearing cache_discovery table via phpmyadmin site is up and running – Nabil Jan 27 '18 at 7:49

It seems to me that drush should do this!