RuntimeException: Cannot add the config entity dependency with ID 'node.teaser' of type 'entity_view_mode' to core.entity_view_display.node.nodetype.teaser as it does not exist.

Created on 26 September 2019, over 4 years ago
Updated 20 June 2023, 12 months ago

This is the follow up to my other issue, see: https://www.drupal.org/project/drupal/issues/3052117 β†’ . This time i aplied the proposed patch πŸ“Œ calculateDependencies doesn't check $mode_entity if it is NULL Needs work to get a human readable error.

The problem:
After migrating from drupal 7 to drupal 8, using the migrate manifest methode*, everthing works as expected, except on part. When i go to 'admin/structure/display-modes/view' and i click edit/delete on 'full' or 'teaser' in the content section, i get a 404 page not found.

*Happens with any migrate methode.

The database logs it as page not found.

When i go to 'admin/structure/types/manage/article/display' and i click save on the default display, it gives the following error: The website encountered an unexpected error. Please try again later..

The database log gives the following detailed error log:

RuntimeException: Cannot add the config entity dependency with ID 'node.teaser' of type 'entity_view_mode' to core.entity_view_display.node.bands.teaser as it does not exist in Drupal\Core\Config\Entity\ConfigEntityBase->addConfigEntityDependency() (line 643 of H:\xampp\htdocs\test\core\lib\Drupal\Core\Config\Entity\ConfigEntityBase.php).

Yet the view mode can be found inside the 'config' database table, thus it exist?

This error also occurse with the viewmode 'full' and any other content type. I disabled and uninstalled all the D7 modules that could change those settings. Does not occur on clean D7 --> D8.

Also, is this a bug than can be fixed post-migrate?

πŸ› Bug report
Status

Closed: outdated

Version

9.5

Component
MigrationΒ  β†’

Last updated about 5 hours ago

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024