Drupal Module 3.8.4: Ingestion Fatal Error With Config Entity References Fixed

· Drupal Module · Bug Fix · All updates

Data ingestion in the Opensolr Search Drupal module could stop dead on sites where a content type references a config entity. Version 3.8.4 fixes it.

01 What was going wrong

If a content type had an entity_reference field pointing to a config entity — for example Domain from the Domain module — the ingestion job aborted with "Call to undefined method ::hasTranslation()".

The cause is that config entities do not implement the translation interface, so the translation-resolution helper called a method that simply does not exist on them.

Before

Ingestion hit the config entity reference and threw a fatal Call to undefined method ::hasTranslation(), aborting the job.

After

The translation-resolution helper short-circuits for config entities, and ingestion runs end-to-end.

02 Credit

Thanks to rickydev90 on drupal.org for the clean report and patch in #3593311.

View the full changelog