- Issue created by @lazzyvn
- Status changed to Needs review
9 months ago 9:26am 20 February 2024 - π·πΈSerbia bojanz
@lazzyvn
We need either a test or a small form class where the problem can be observed.Changing status to "needs review" to signal that there is a patch here.
- π«π·France lazzyvn paris
I tested twice on 2 machines and it drives me crazy. Same version, same project but one has an error, the other does not. it never calls the formError.
Environment has an error Drupal 10.2.3, PHP 8.2 - πΊπΈUnited States goose2000
I am getting this error too, triggered when "Add another item" is clicked in a add form:
TypeError: Drupal\address\Plugin\Field\FieldWidget\AddressDefaultWidget::errorElement(): Argument #1 ($element) must be of type array, null given, called in D:\wwwroot\pss-2024-fix\web\core\lib\Drupal\Core\Field\WidgetBase.php on line 580 in Drupal\address\Plugin\Field\FieldWidget\AddressDefaultWidget->errorElement() (line 188 of D:\wwwroot\pss-2024-fix\web\modules\contrib\address\src\Plugin\Field\FieldWidget\AddressDefaultWidget.php).
Drupal 10.3.5
PHP 8.1.29
Version: 2.0.2