Skip to content

Trellis Event Importer does not function on multilingual quickstart sites #5585

@tadean

Description

@tadean

Problem/Motivation

PHP errors occur when visiting Trellis event importer on a site that has multiple languages.

Describe the bug

The subclasses of BulkForm we use for trellis event imports do not function correctly on multilingual sites. BulkForm implements EntityTranslationRenderTrait, which checks the entity type to figure out how to render translations. Since these remote data fields have no entity type, this fails.

To Reproduce

  • enable az_multilingual
  • add a second language at /admin/config/regional/language
    • This step is important. Enabling multilingual support is not enough, there must be a second language.
  • enable az_event_trellis
  • visit /admin/trellis-event-importer
  • The website encountered an unexpected error. Try again later.
  • View watchdog log
  • Look for error: Exception: No entity type for field Id on view az_event_trellis_import in Drupal\views\Plugin\views\HandlerBase->getEntityType() (line 839 of /app/web/core/modules/views/src/Plugin/views/HandlerBase.php).

Proposed resolution

Inform the bulkform implementation that the data for these rows aren't translatable entities.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghigh priorityMust get done for this milestoneintegrationsThis relates to an integration into a central service.patch releaseIssues to be included in the next patch release

Type

Projects

Status

In progress

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions