2

I'm creating a new Drupal 8 site using Lando/Pantheon - and then installing the Umami profile. I've done this before with no problems.

This morning when I try, the site is created and it looks like the Umami theme is in place. However, the content is not created.

Is there any way to create the content after the profile is installed?

Note: Oddly, drush is saying that the demo_umami_content module is not found but is able to find demo_umami_tour. ~/Desktop/lando/lando-panth $ lando drush pmi demo_umami_content demo_umami_content was not found.

  • Oddly, drush is saying that the demo_umami_content module is not found but is able to find demo_umami_tour. ~/Desktop/lando/lando-panth $ lando drush pmi demo_umami_content demo_umami_content was not found. – gmercer Oct 19 at 16:37
  • How exactly did you install the Umami profile? via Drush or the Installer UI? Did you try this several times? – No Sssweat Oct 20 at 9:25
3

The Umami demo: Content module is not found from Drush, nor is it visible in the list of modules, because it is set as hidden in demo_umami_content.info.yml. If you change the hidden: true line in hidden: false, you will be able to uninstall the module, and re-install it. This will execute again demo_umami_content_install(), which imports the content.

/**
 * Implements hook_install().
 */
function demo_umami_content_install() {
  if (!\Drupal::service('config.installer')->isSyncing()) {
    \Drupal::classResolver(InstallHelper::class)->importContent();
  }
}

If that doesn't work, the alternative is re-install Drupal using Unami as installation profile.

  • Thanks very much. The trick of uninstalling and reinstalling worked. Sorry I hadn't noticed the hidden option (not something I've run across before). – gmercer Oct 20 at 20:58
  • BTW, I had originally installed with the Umami profile - but somehow it had gotten itself in this odd state. Not sure how this was different than the times before I had done this type of setup. Oh well. – gmercer Oct 20 at 21:00
  • I know the feeling. I still find puzzling that installing the same module/profile can sometimes produce different results. – kiamlaluno Oct 21 at 7:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.