- Issue created by @mizage@gmail.com
- Status changed to Postponed: needs info
9 months ago 6:46am 28 September 2023 - π³π±Netherlands Lendude Amsterdam
Since this could point to a regression, I'm changing this to a bug
The most likely culprit seems to be π pointless if() block in EntityViewsData Fixed since that changed some of the logic building this data.
@mizage@gmail.com do you happen to have some steps to reproduce this on a clean install of Drupal?
- πΊπΈUnited States mizage@gmail.com
I wish I did.
Originally I migrated the site from 7.x to 9.x and then to 10.0.x a few months later. I'm wondering if something didn't migrate cleanly and I just never noticed an issue.
Does this look like a problem with the structure of a database table?
- π³πΏNew Zealand Richarda253
I'm getting the same error but it refers to a different line of EntityViewsData.php:-
TypeError: Drupal\views\EntityViewsData::mapFieldDefinition(): Argument #3 ($field_definition) must be of type Drupal\Core\Field\FieldDefinitionInterface, null given, called in /var/www/hpets/drupal/web/core/modules/views/src/EntityViewsData.php on line 333 in Drupal\views\EntityViewsData->mapFieldDefinition() (line 435 of core/modules/views/src/EntityViewsData.php).
Likewise, the site was upgraded from 7.x to 9.x and then 10.1.6
The only error I found on the site before it went away was this warning on Reports > Field List
Warning: Undefined array key "image" in Drupal\field_ui\FieldStorageConfigListBuilder->buildRow() (line 133 of core/modules/field_ui/src/FieldStorageConfigListBuilder.php). Warning: Trying to access array offset on value of type null in Drupal\field_ui\FieldStorageConfigListBuilder->buildRow() (line 133 of core/modules/field_ui/src/FieldStorageConfigListBuilder.php). Warning: Undefined array key "image" in Drupal\field_ui\FieldStorageConfigListBuilder->buildRow() (line 133 of core/modules/field_ui/src/FieldStorageConfigListBuilder.php). Warning: Trying to access array offset on value of type null in Drupal\field_ui\FieldStorageConfigListBuilder->buildRow() (line 133 of core/modules/field_ui/src/FieldStorageConfigListBuilder.php).
I hit the link to check manually for an update and it turned to custard. I have another version of this site running 10.1.6 and apart from the warnings, it seems fine.
- πΊπΈUnited States mizage@gmail.com
After updating from 10.1.0 to 10.1.6 the error has gone away and I was able to apply db updates cleanly.
I did use this patch:https://www.drupal.org/files/issues/2023-11-10/FilterPluginBase.patch β
- πΊπΈUnited States smethawee
@mizag,
This patch not working for me. It is the same issue.