Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291923

The "" entity type does not exist

$
0
0

Problem/Motivation

I'm not sure when this began but I'm getting a big error when I go to certain pages which list Fields. For example, if I go to the main File List page in Drupal (/admin/reports/fields), or if I go to certain content types' (not all) fields lists, it shows an error page. I don't know how to troubleshoot this issue, but here's the error.

The website encountered an unexpected error. Try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).
Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::storageSettingsSummary() (Line: 144)
Drupal\Core\Field\FieldTypePluginManager->getStorageSettingsSummary() (Line: 141)
Drupal\field_ui\FieldStorageConfigListBuilder->buildRow() (Line: 242)
Drupal\Core\Entity\EntityListBuilder->render() (Line: 88)
Drupal\field_ui\FieldStorageConfigListBuilder->render() (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 50)
Drupal\ban\BanMiddleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)

With my minimal ability to read these errors, it appears to be looking for an entity that doesn't exist. It seems like the database has an entry for an entity which is blank.

Steps to reproduce

I don't know if this happened when we upgraded to Drupal 10, or when I removed certain outdated modules. It's really hard for me to track when this began, so I have to take another approach to find the root cause. I have some patches in composer.json. I don't know how helpful it would be to show these, but here they are.

"patches": {
"drupal/core": {
"3347685-3: Access denied error on warning links from update module - invalid csrf_token" : "https://www.drupal.org/files/issues/2023-03-16/3347685-3.patch",
"3392572: Deprecated function: strnatcasecmp(): Passing null to parameter #1 ($string1) of type string is deprecated in LayoutPluginManager" : "https://www.drupal.org/files/issues/2023-11-01/3392572-26.patch"
},
"drupal/accordion_menus": {
"3350925: Drupal 10 compatibility" : "https://www.drupal.org/files/issues/2023-03-29/drupal-10-compatibility-3..."
},
"drupal/migrate_directory" : {
"3288616: Automated Drupal 10 compatibility" : "https://www.drupal.org/files/issues/2022-06-16/migrate_directory.2.0.0.r..."
},
"drupal/bootstrap_barrio" : {
"3399061: Subtheme is not compatible with Drupal 10" : "https://www.drupal.org/files/issues/2023-11-06/3399061-2.patch"
},
"drupal/viewsreference" : {
"3273497: Passing null to parameter #1 ($data) of type string to unserialize() is deprecated" : "https://www.drupal.org/files/issues/2023-11-07/viewsreference-3273497-27...",
"3400712: Enable extra settings only allows for saving of Pagination and Argument options" : "https://git.drupalcode.org/project/viewsreference/-/merge_requests/38.patch"
},
"drupal/xmlsitemap" : {
"3299530: Automated Drupal 10 compatibility fixes" : "https://www.drupal.org/files/issues/2023-09-27/xmlsitemap--drupal-10--32..."
},
"drupal/views_bootstrap" : {
"2948150: Views Bootstrap Tabs cannot be grouped" : "https://www.drupal.org/files/issues/2023-04-18/2948150-45.patch"
}
},

Please let me know if you have any ideas on where to start. I'm happy to query the database or maybe there's an Admin UI page that would be helpful. Any advice would be appreciated.


Viewing all articles
Browse latest Browse all 291923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>