Problem/Motivation
After Drupal 10 upgrade site is showing temporary unavailable and while checking error log find below error:
TealiumiqNormalizer::supportsDenormalization($data, $type, $format = null) must be compatible with Drupal\serialization\Normalizer\NormalizerBase::supportsDenormalization($data, string $type, ?string $format = null, array $context = []): bool
Steps to reproduce
1. Drush version - 11.6.0
2. Drupal Core - 10.0.9
3. TealiumIQ version - Latest Stable version
Site is not working and in drush command showing below error:
PHP Fatal error: Declaration of Drupal\tealiumiq\Normalizer\TealiumiqNormalizer::supportsDenormalization($data, $type, $format = null) must be compatible with Drupal\serialization\Normalizer\NormalizerBase::supportsDenormalization($data, string $type, ?string $format = null, array $context = []): bool in /app/docroot/modules/contrib/tealiumiq/src/Normalizer/TealiumiqNormalizer.php on line 42
Proposed resolution
Change the format of TealiumiqNormalizer::supportsDenormalization as same as NormalizerBase::supportsDenormalization
Remaining tasks
NA
User interface changes
NA
API changes
NA
Data model changes
NA
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | tealiumiq_normalizer_compatibility_3374553-5.patch | 519 bytes | mashir |
| #3 | tealiumiq_normalizer-compatibility_3374553-2.patch | 519 bytes | mashir |
Issue fork tealiumiq-3374553
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mashir commentedComment #3
mashir commentedI have created the patch to resolve the issue and that is resolved my issue.
Comment #4
mashir commentedComment #5
mashir commentedRenaming the patch as per the standard.
Comment #6
pvbergen commentedI can confirm the issue on Drupal 10 and the proper resolution with the patch in #5.
Comment #9
schiavone commentedThanks everyone for working on this. The patch has been applied and included in the 8.x-1.3 release.
Comment #10
schiavone commented