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

CommentFileSizeAuthor
#2 issues-3205990.patch632 byteslobodakyrylo

Comments

lobodacyril created an issue. See original summary.

lobodakyrylo’s picture

StatusFileSize
new632 bytes

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

lobodakyrylo’s picture

Status: Active » Needs review

  • asmdk committed 2e923d7 on 8.x-1.x
    Issue #3205990 by lobodacyril: fixing a fatal error if using a...
asmdk’s picture

Hi,

Thanks for reporting. Good catch!
I've fixed it in a little bit another way.

Best,
Dzianis

asmdk’s picture

Version: 8.x-1.x-dev » 8.x-1.62
Assigned: Unassigned » asmdk
Status: Needs review » Fixed
asmdk’s picture

Status: Fixed » Closed (fixed)