After attempting to select Bootstrap Popover on a block and saving my block, I received the error, "website encountered unexpected error try again later". Recent log messages showed
Twig_Error_Loader: Template "modules/contrib/block_styles/modules/block_styles_bootstrap/templates/bootstrap_card/block--bootstrap--popover.html.twig" is not defined. in Twig_Loader_Chain->getCacheKey() (line 179 of /Users/sbaur/Sites/devdesktop/popovertest/themes/custom/bootstrap2/templates/page.html.twig).
Somewhere, an incorrect path is being used to load the template, but I can't figure out where (I'm not a programmer, and not especially drupal savvy)
To workaround this error, I created a symlink in modules/contrib/block_styles/modules/block_styles_bootstrap/templates/bootstrap_card that points to the template in bootstrap_popover
(For anyone with the same problem, start in the bootstrap_card directory and then run
ln -s ../bootstrap_popover/block--bootstrap--popover.html.twig block--bootstrap--popover.html.twig. This fix may not survive an update to this module)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3031394-2.block_styles.Bootstrap-Popover-results-in-unexpected-error.patch | 552 bytes | jurgenhaas |
Comments
Comment #2
jurgenhaasI came across the same problem and found the reason for this in the definition of the themes in the block_styles_bootstrap subtheme. Looks like this was caused by a copy and paste error.
The attached patch solves the problem, please review.
Comment #4
hatuhay commented