- Issue created by @mizage@gmail.com
- Status changed to Postponed: needs info
about 1 year 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.
- π¦π«Afghanistan ab.shakir
I'm facing this in Drupal 10.3.0 after upgrading from 9.5.11. The patch mentioned in #7 not helping in my case.
- π¦π«Afghanistan ab.shakir
For me it was one of the core patches which I previously applied for D9 version. After removing all patches for Drupal core, the issue is resolved now.
- π«π·France sΓ©bastien-fr Nantes - France
Hello,
I had the same problem after an update to drupal 10.
For me, the problem does not come from the view but from an entity so I had to find which one. In my case, it was an entity created by a module that was causing problems with drupal 10. I could not delete the entity after the update. So I restarted the site before the update, disabled the problematic module. An option allows you to delete the associated entity. I did the update again and it worked. My advice, do the update again starting from a backup, delete the problematic entities before the update.