PHP fatal error with Drupal 9.5.11 version

Created on 6 January 2025, 21 days ago

Fatal error: Declaration of Drupal\content_sync\Normalizer\ContentEntityNormalizer::supportsNormalization($data, ?string $format = null, array $context = []): bool must be compatible with Drupal\serialization\Normalizer\NormalizerBase::supportsNormalization($data, $format = null) in /app/source/web/modules/contrib/content_sync/src/Normalizer/ContentEntityNormalizer.php on line 105

  • Install drupal 9.5.11
  • Run composer command to install this module
  • Try to enable this module either by admin or drush

We can fix the supported version for Drupal 10 since it relies on the core serialization module, making some methods incompatible with the Drupal 9.5 core serialization module, or we need to adjust the code for Drupal 9.
Method 'Drupal\content_sync\Normalizer\ContentEntityNormalizer::supportsNormalization()' is not compatible with method 'Drupal\serialization\Normalizer\ContentEntityNormalizer::supportsNormalization()'.

Let me know if any quick fix for D9.

Feature request
Status

Active

Version

4.0

Component

Code

Created by

🇮🇳India deep_0607

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