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)

Comments

sbaur created an issue. See original summary.

jurgenhaas’s picture

Status: Active » Needs review
StatusFileSize
new552 bytes

I 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.

  • hatuhay committed 0d91b6d on 8.x-1.x authored by jurgenhaas
    Issue #3031394 by jurgenhaas: Bootstrap Popover results in unexpected...
hatuhay’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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