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

markhalliwell’s picture

Assigned: Unassigned » markhalliwell
Priority: Critical » Minor

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

rodvolpe’s picture

Thanks

bzitzow’s picture

I 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

  1. I installed bootstrap theme as a git submodule in /themes/bootstrap
  2. I installed drupal 8 via /install.php
  3. I logged in as admin, and chose the "enable and set as default" option for the bootstrap theme.
younger870’s picture

Twig_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).

markhalliwell’s picture

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

markhalliwell’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

We are taking a different direction with the 8.x branch.