Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\custom_elements\CustomElement->setSlotFromCustomElement() (line 197 of modules/contrib/custom_elements/src/CustomElement.php).

Drupal\custom_elements\CustomElement->setSlotFromCustomElement('image', Object) (Line: 83)
Drupal\ldp_custom_elements\Processor\ParagraphImageProcessor->addtoElement(Object, Object, 'default') (Line: 139)
Drupal\custom_elements\CustomElementGenerator->process(Object, Object, 'default') (Line: 118)
Drupal\custom_elements\CustomElementGenerator->generate(Object, 'default') (Line: 32)
Drupal\custom_elements\CustomElementsLayoutBuilderEntityViewDisplay->buildMultipleViaCustomElements(Array, Array) (Line: 35)
Drupal\custom_elements\CustomElementsLayoutBuilderEntityViewDisplay->buildMultiple(Array) (Line: 343)
Drupal\Core\Entity\EntityViewBuilder->buildComponents(Array, Array, Array, 'default') (Line: 285)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 18)
Drupal\paragraphs\ParagraphViewBuilder->buildMultiple(Array) (Line: 242)
Drupal\Core\Entity\EntityViewBuilder->build(Array)

CommentFileSizeAuthor
#3 ce_image_warning.patch1.05 KBfago

Comments

fago created an issue. See original summary.

fago’s picture

Status: Active » Closed (won't fix)

This is caused from custom code: ldp_custom_elements

fago’s picture

Status: Closed (won't fix) » Fixed
StatusFileSize
new1.05 KB

turns out this was a bug still, as the custom code used the API correctly. Fixed this in custom elements then with the patch attached.

  • fago committed 7333d64 on 8.x-2.x
    Issue #3060570: Warning when rendering thunder image paragraphs: count...

Status: Fixed » Closed (fixed)

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