Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We're seeing a a PHP 8.1 deprecation message when translating content with an empty metatag field.
#2 web/modules/contrib/tmgmt/sources/content/src/MetatagsFieldProcessor.php(19): unserialize(NULL)\n
#3 web/modules/contrib/tmgmt/sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php(275): Drupal\tmgmt_content\MetatagsFieldProcessor->extractTranslatableData(Object(Drupal\metatag\Plugin\Field\FieldType\MetatagFieldItemList))\n
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#3 | tmgmt-php81-metatag-3277425-3-interdiff.txt | 853 bytes | Berdir |
#3 | tmgmt-php81-metatag-3277425-3.patch | 2.48 KB | Berdir |
#2 | tmgmt-php81-metatag-3277425-2.patch | 1.65 KB | Berdir |
#2 | tmgmt-php81-metatag-3277425-2-test-only.patch | 1.06 KB | Berdir |
Comments
Comment #2
BerdirComment #3
BerdirThought the test doesn't work, but it results in a suppressed deprecation message, not an error:
Including a test fix for Drupal 9.4
Comment #5
BerdirCommitted.