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.
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).
Comment | File | Size | Author |
---|---|---|---|
#8 | ViewsBootstrapTab-8.patch | 402 bytes | samerali |
#5 | ViewsBootstrapTab.patch | 498 bytes | seyfettinkahveci |
Comments
Comment #2
phannphong CreditAttribution: phannphong commentedI have the same error with v. 8.x-3.x-dev.
Please let me know how to fix this.
Thanks.
Comment #3
phannphong CreditAttribution: phannphong commentedComment #4
bassam CreditAttribution: bassam commentedHave you figured out how to solve this?
Comment #5
seyfettinkahveci CreditAttribution: seyfettinkahveci commentedYou can prevent the related error with the appropriate patch.
Comment #6
seyfettinkahveci CreditAttribution: seyfettinkahveci commentedComment #7
jonathanshawComment #8
samerali CreditAttribution: samerali as a volunteer and at Lechleider Mitchell LLC commentedre-roll of patch #5 to use proper file paths, i can confirm this is actually working probably and fixes the above issue
Comment #9
4c2o CreditAttribution: 4c2o as a volunteer commentedI also confirm #8 works
Thanks!
Comment #11
aburrows CreditAttribution: aburrows at DigiDrop commentedCommitted with Thanks :)
Comment #13
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedHello! 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.Comment #14
jonathanshawProbably best to open a new issue referencing this one
Comment #15
basseye CreditAttribution: basseye commentedJust 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
Comment #16
aburrows CreditAttribution: aburrows at DigiDrop commentedPlease create a new issue so we can track it and work on fixing it.