AJAX error when selecting a channel whose entity type doesn't exist locally

Created on 20 August 2025, about 2 months ago

Problem/Motivation

I get this in the console:

"\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /admin/content/entity_share/pull?remote=waltham_local&channel=test_joachim&import_config=local_wf&search=&ajax_form=1\nStatusText: error\nResponseText: The website encountered an unexpected error. Try again later.Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: The "media" entity type does not exist. in Drupal\\Core\\Entity\\EntityTypeManager->getDefinition() (line 142 of core/lib/Drupal/Core/Entity/EntityTypeManager.php). Drupal\\Core\\Entity\\EntityTypeManager->getHandler() (Line: 195)\nDrupal\\Core\\Entity\\EntityTypeManager->getStorage() (Line: 551)\nDrupal\\entity_share_client\\Form\\PullForm->buildEntitiesSelectTable() (Line: 502)\nDrupal\\entity_share_client\\Form\\PullForm->buildChannelSelect() (Line: 249)\nDrupal\\entity_share_client\\Form\\PullForm->buildForm()\ncall_user_func_array() (Line: 536) ...

Steps to reproduce

Proposed resolution

Fail more gracefully.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

User interface

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024