When I updated module from 1.6 to 1.61 and I'm trying to open edit page of any Carousel Item, I get this error:
PHP Fatal error: Method Drupal\Core\Template\Attribute::__toString() must not throw an exception, caught Error: Call to undefined method Drupal\Core\Field\FieldItemList::render() in /web/core/lib/Drupal/Core/Template/TwigExtension.php on line 0, referer: /admin/structure/bootstrap_simple_carousel
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | issues-3205990.patch | 632 bytes | lobodakyrylo |
Comments
Comment #2
lobodakyrylo commentedI've noticed that ContentEntityBase::getTranslatedField() method returns Drupal\Core\Field\FieldItemList object and it cann't be rendered or converted to string. I created patch that works for me.
Comment #3
lobodakyrylo commentedComment #5
asmdk commentedHi,
Thanks for reporting. Good catch!
I've fixed it in a little bit another way.
Best,
Dzianis
Comment #6
asmdk commentedComment #7
asmdk commented