Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Getting this error when enabling the theme.
Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Object of type "Drupal\Core\Entity\Field\Field" cannot be printed.") in "themes/bootstrap/templates/page.html.twig" at line 80. in Twig_Template->displayWithErrorHandling() (line 279 of /var/www/site_dir/core/vendor/twig/twig/lib/Twig/Template.php).
Comments
Comment #1
markhalliwellI haven't worked on the D8 branch in weeks and likely won't again until after BADCamp. There is too much Theme System/Twig architecture changes that need/will happen before I'm willing to continue. I'll leave this open though to verify this is still a bug when I do.
Comment #2
rodvolpe CreditAttribution: rodvolpe commentedThanks
Comment #3
bzitzow CreditAttribution: bzitzow commentedI installed the bootstrap theme in a drupal 8 installation today and did not experience this.
php 5.4.6
Drupal 8.x branch
Drupal 8 Commit: 004fa12b8bf1db23e67296ffd50d0d69dcfb3c85
Bootstrap Theme 8.x-2.x branch
Bootstrap Theme Commit: d0b36a4d6490c4df28e98d57199f51e76426fc6c
Comment #4
younger870 CreditAttribution: younger870 commentedTwig_Error_Runtime: An exception has been thrown during the rendering of a template ("Object of type "Drupal\Core\Entity\Field\FieldItemList" cannot be printed.") in "themes/bootstrap/templates/page.html.twig" at line 80. in Twig_Template->displayWithErrorHandling() (line 279 of C:\Program Files (x86)\Zend\Apache2\htdocs\d8a4\core\vendor\twig\twig\lib\Twig\Template.php).
Comment #5
markhalliwellThe 8.x branch doesn't work, obviously. There has been way too many changes since it was initially created. Stop trying to use it for right now (as stated on the project page). Thanks.
Comment #6
markhalliwellWe are taking a different direction with the 8.x branch.