When consult an order, error 'The website encountered an unexpected error. Please try again later."

In the log
Warning: Undefined variable $element in Drupal\commerce\Plugin\Field\FieldFormatter\RemoteIdDefaultFormatter->viewElements() (line 31 of /var/www/html/web/modules/contrib/commerce/src/Plugin/Field/FieldFormatter/RemoteIdDefaultFormatter.php)

TypeError: Drupal\Core\Render\Element::children(): Argument #1 ($elements) must be of type array, null given, called in /var/www/html/web/core/lib/Drupal/Core/Field/FormatterBase.php on line 93 in Drupal\Core\Render\Element::children() (line 72 of /var/www/html/web/core/lib/Drupal/Core/Render/Element.php)

Pb : missing
$element=[];

in RemoteIdDefaultFormatter.php

CommentFileSizeAuthor
#3 3331063-2.patch668 bytesjsacksick

Comments

guitchmada created an issue. See original summary.

  • jsacksick committed a927d25b on 8.x-2.x
    Issue #3331063 by guitchmada, jsacksick: RemoteIdDefaultFormatter $...
jsacksick’s picture

Status: Active » Fixed
StatusFileSize
new668 bytes

Committed the attached patch, thanks for reporting this!

  • jsacksick committed 8dd20eda on 3.0.x
    Issue #3331063 by guitchmada, jsacksick: RemoteIdDefaultFormatter $...

Status: Fixed » Closed (fixed)

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