AssertionError: Cannot load the "migration" entity with NULL ID

Created on 8 October 2024, about 2 months ago

Problem/Motivation

I encountered an AssertionError while trying to generate static content using the Tome module. The error occurs when executing the command:

drush tome:static --uri=local.example.com
AssertionError: Cannot load the "migration" entity with NULL ID. in /var/www/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php on line 261
#0 /var/www/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php(261): assert(false, 'Cannot load the...')
#1 /var/www/docroot/modules/contrib/migrate_tools/src/Routing/RouteProcessor.php(32): Drupal\Core\Entity\EntityStorageBase->load(NULL)
#2 /var/www/docroot/core/lib/Drupal/Core/RouteProcessor/RouteProcessorManager.php(52): Drupal\migrate_tools\Routing\RouteProcessor->processOutbound('entity.migratio...', Object(Symfony\Component\Routing\Route), Array, Object(Drupal\Core\GeneratedUrl))

Steps to reproduce

  1. Install and enable the Tome module along with migrate_tools.
  2. Run the command: drush tome:static --uri=local.example.com.
  3. Observe the error message.

Proposed resolution

Investigate the handling of migration entities within the Tome module to ensure that a valid ID is being passed during static content generation.

Remaining tasks

  • Debug the issue in the Tome module.
  • Test the proposed fix and verify it resolves the error.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

1.12

Component

Tome Static

Created by

🇮🇳India mdeahmad Mumbai

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

Comments & Activities

Production build 0.71.5 2024