Compatibility with Template Selector Field (Cohesion)

Created on 6 May 2025, 9 days ago

Problem/Motivation

There is an issue with using Entity Share.
There are two identical sites with same Drupal version and I manually synced DBs to make sure everything is same.

If the Chanel between server and remote is set to Basic page, the synchronization is OK.
But if Article channel is set and chosen, there is a AJAX HTTP error.

An error has occurred.
Please continue to the error page

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=4995&op=do_nojs&op=do
StatusText: 500 Service unavailable (with message)
ResponseText:
The website encountered an unexpected error. Try again later.Error: Call to a member function getClass() on null in Drupal\jsonapi\Normalizer\FieldItemNormalizer->denormalize() (line 120 of core/modules/jsonapi/src/Normalizer/FieldItemNormalizer.php). Drupal\jsonapi_extras\Normalizer\JsonApiNormalizerDecoratorBase->denormalize() (Line: 249)

I debugged the code and found its failing while processing this field Template Selector which comes when you use Acquia Cohesion.
That field is present in both the client and server and this needs to be synced as well.
Any suggestion or workaround will be helpful.

Steps to reproduce

1) Create two identical drupal sites
2) Create a content type which has a field of type "Template Selector" in both the sites.
3) Install necessary entity_share modules and make one site as server and other one as client. And setup connection.
4) Create a new content in server (make sure to have some content in template selector)
5) Pull entities on client site.

Thanks

πŸ› Bug report
Status

Active

Version

3.0

Component

Entity Share Client

Created by

πŸ‡ΊπŸ‡ΈUnited States dinaish20 San Francisco

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

Comments & Activities

Production build 0.71.5 2024