Installed Views Bootstrap on D8.2.7

Created a view. Pulls fields as expected.

Selected Views Format: Bootstrap Accordion and the fields render as expected.

Changed Views Format to: Bootstrap Tabs and no query is run.

Results in error:

Exception: Object of type Drupal\views\ResultRow cannot be printed. in Drupal\Core\Template\TwigExtension->escapeFilter() (line 449 of /core/lib/Drupal/Core/Template/TwigExtension.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sassafrass created an issue. See original summary.

phannphong’s picture

I have the same error with v. 8.x-3.x-dev.
Please let me know how to fix this.
Thanks.

phannphong’s picture

Priority: Normal » Critical
bassam’s picture

Have you figured out how to solve this?

seyfettinkahveci’s picture

FileSize
498 bytes

You can prevent the related error with the appropriate patch.

seyfettinkahveci’s picture

Status: Active » Patch (to be ported)
jonathanshaw’s picture

Priority: Critical » Major
Status: Patch (to be ported) » Needs review
samerali’s picture

FileSize
402 bytes

re-roll of patch #5 to use proper file paths, i can confirm this is actually working probably and fixes the above issue

4c2o’s picture

I also confirm #8 works

Thanks!

  • aburrows committed 576e92a on 8.x-3.x authored by samerali
    Issue #2871454 by seyfettinkahveci, samerali: Bootstrap Tab - Exception...
aburrows’s picture

Status: Needs review » Fixed

Committed with Thanks :)

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Version: 8.x-3.x-dev » 8.x-4.0

Hello! I would like to suggest reopening this issue on the 8.x-40 branch as I stumbled upon it just now after the first release of the module. Bootstrap Tab view throws the exact same error.

I tested the patch provided and it didn't work straight away, however I tested mannually editing the file and added the line protected $usesRowPlugin = TRUE; just where the patch indicated, and the problem was solved after that.

jonathanshaw’s picture

Probably best to open a new issue referencing this one

basseye’s picture

Just updated to the views bootstrap 8.x-4.0, stable released 23 January 2019, and my site using Bootstrap Barrio is completed broken. There is obviously a bug with this version that needs to be reviewed. Thanks

aburrows’s picture

Please create a new issue so we can track it and work on fixing it.