Problem/Motivation
The following error is reported when using this module with component_content, cohesion_layout, comment, content_moderation_state, focal_point, file, media, menu_link_content, path_alias, shortcut, taxonomy_term, user, or webform_submission entities after selecting a bundle:
Drupal\Core\Entity\Query\QueryException: 'type' not found in Drupal\Core\Entity\Query\Sql\Tables->ensureEntityTable() (line 369 of /home/ide/project/docroot/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php)
Proposed resolution
These entities likely either use a different notation for their bundles, or don't have any. Check which is the case for each of the above, and allow the code to handle either gracefully.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | autogrid-wsod_bundles-3254750-5.patch | 3.38 KB | mandclu |
Comments
Comment #2
mandclu commentedHere's a patch that should fix the issue.
Comment #3
mandclu commentedI discovered that the previous patch didn't prevent fatal errors with entities that don't use bundles, so here's an updated path that excludes these entities and will also gracefully redirect if someone tries to put one manually into the path.
Comment #4
mandclu commentedSince the current implementation relies on leveraging an EntityListBuilder for getting available operations, here's an updated patch that excludes entity types without an EntityListBuilder supported.
Comment #5
mandclu commentedOy, another patch. Maybe fourth time's a charm?
Comment #7
mandclu commented