Problem/Motivation

While managing the display of the default image_badge bundle, got an error below:

LogicException: Missing bundle entity, entity type badge_type, entity id . in Drupal\Core\Entity\EntityType->getBundleConfigDependency() (line 917 of /var/www/html/web/core/lib/Drupal/Core/Entity/EntityType.php).

And two field_ui_base_route keys in Badge entity's annotation.

 *   field_ui_base_route = "entity.badge_type.edit_form",
 *   entity_keys = {
 *     "id" = "id",
 *     "bundle" = "type",
 *     "label" = "name",
 *     "uuid" = "uuid",
 *   },
 *   links = {
 *     "canonical" = "/admin/badge/{badge}",
 *     "edit-form" = "/admin/badge/{badge}/edit",
 *     "delete-form" = "/admin/badge/{badge}/delete"
 *   },
 *   field_ui_base_route = "badge.settings"
 * )
 */
class Badge extends ContentEntityBase implements BadgeInterface {

Proposed resolution

remove field_ui_base_route = "badge.settings" from Badge entity's annotation.

Remaining tasks

Needs review

CommentFileSizeAuthor
#2 3116502-2.patch877 bytesjungle

Comments

jungle created an issue. See original summary.

jungle’s picture

Assigned: jungle » Unassigned
Status: Active » Needs review
StatusFileSize
new877 bytes

The patch is created against commit 3c2386b of branch 8.x-1.x

  • mohit_aghera committed b6fcde3 on 8.x-1.x authored by jungle
    Issue #3116502 by jungle: Wrong field_ui_base_route or duplicate...
mohit_aghera’s picture

Status: Needs review » Fixed

Thanks for the patch @jungle
It is solving the issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.