Fatal error: "civicrm_event_fr_CA" entity type does not exist on French (or other languages) pages

Created on 12 August 2024, 8 months ago

Problem/Motivation

A fatal error on a bilingual site when navigating to the French pages:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "civicrm_event_fr_CA" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 142 of /var/www/vhosts/ssc.ca/d8/releases/current/httpdocs/core/lib/Drupal/Core/Entity/EntityTypeManager.php).

Steps to reproduce

Create a bilingual site with English and French (use default of accessing the French pages with /fr).
Set in civicrm.settings.php (reference):

define('CIVICRM_LANGUAGE_MAPPING_FR', 'fr_CA');

Visit example.org/fr.

Proposed resolution

No idea. I'm not sure why it's only affecting events, nor how it attaches the language mapping to the entity type name.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada nubeli

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

Comments & Activities

Production build 0.71.5 2024