after `Enable the theme: drush theme:enable bootstrap_storybook` and making theme default none of the website pages work and get WSOD.

Twig\Error\LoaderError: Template "@BOOTSTRAP_STORYBOOK_SUBTHEME_MACHINE_NAME/nav/nav.twig" is not defined in "themes/contrib/bootstrap_storybook/src/kits/default/templates/navigation/links.html.twig" at line 7. in Twig\Loader\ChainLoader->getCacheKey() (line 142 of /app/vendor/twig/twig/src/Loader/ChainLoader.php).

on a fresh drupal installation of Drupal 8.8.5

Similar error happens when going to with creating a custom subtheme.

Comments

GiorgosK created an issue. See original summary.

doxigo’s picture

I cannot reproduce this, but the point is not to use the `bootstrap_storybook` theme itself but the subtheme, did you manage to get it fixed? anyways I will go through it soon

doxigo’s picture

Status: Active » Postponed (maintainer needs more info)
giorgosk’s picture

@doxigo as I mentioned above the same behaviour can be seen when creating a subtheme with the steps specified on project page

I know that we are supposed to use a custom subtheme but the point was that even before going to the subtheme the main theme has trouble starting ... but it might be just my installation not sure when I can retest this.

doxigo’s picture

Okay thanks for the update, will try to test this in different environment see if I can come up with the issue

ivansb@drupal.org’s picture

I can confirm the problem on D9.0.2

doxigo’s picture

@ivan could you please let me know your environment and the steps you took that caused the issue? so I can trace the problem

ivansb@drupal.org’s picture

I got it working.

I think the steps in the Getting Started are a bit misleading since you get the idea that the generated custom theme comes already compiled (you suggest to enable it before compiling it).

While reinstalling everything from scratch I stumbled in a couple of problems:

1)
Installing bootstrap_storybook via composer fails with:

- Can only install one of: drupal/core[8.9.x-dev, 9.0.2].
- Installation request for drupal/core (locked at 9.0.2) -> satisfiable by drupal/core[9.0.2].

Installation failed, reverting ./composer.json to its original content.

2) there is a small bug in
./src/kits/default/includes/page.inc: $result = \Drupal::service('path.alias_manager')->getAliasByPath($current_path);

that should be

path_alias.manager

https://www.drupal.org/project/block_exclude_pages/issues/3126973

  • doxigo committed a152e53 on 3.0.x
    Issue #3134709 by ivanSB@drupal.org: WSOD when enabling
    
doxigo’s picture

Version: 8.x-2.x-dev » 3.0.x-dev
Status: Postponed (maintainer needs more info) » Fixed

Thank you both for the help, there was an issue with components module dependency and its D9 compatibility on the theme which got fixed, also fixed the new `path_alias` issue, credited & commited.

I'll go through the steps on the documentation and will update accordingly as well

Status: Fixed » Closed (fixed)

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