Problem/Motivation
When installed and enabled on a typical Drupal 10 site, the Patternkit module is causing a white screen of death (WSOD) error on page load. When checking the logs, the following error message is recorded:
'Error: Class "Symfony\Component\PropertyAccess\PropertyAccess" not found in Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer->denormalize() (line 328 of /var/www/html/vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php).'
Steps to reproduce
- Install a fresh Drupal 10 site
- Require the Patternkit module via Composer
- Enable the Patternkit module
- Load the front page of the site
- Observe a WSOD page stating an error has occurred
- Access the logs and observe the described error message
Proposed resolution
Add a Composer dependency on the symfony/property-access package since this is no longer included by default and is required by symfony/serializer package to use the ObjectSerializer:
To use the ObjectNormalizer, the PropertyAccess component must also be installed.
Remaining tasks
Add MR with change to Composer.jsonConfirm all tests pass with Drupal 10
User interface changes
None
API changes
None
Data model changes
None
Issue fork patternkit-3346507
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 #3
sluceroTests are all finally passing and this is ready for review and testing.
Comment #4
mariohernandez commentedI reviewed and successfully tested the fixes in this MR on a new clean Drupal 10 site.
Comment #5
sluceroComment #7
sluceroMerging for inclusion in the Beta 7 release.
I did, however, have to disable PHPCS scanning until #3347967: PHPCS Times Out In DrupalCI Since Drupal 9.5 is resolved.
Comment #8
slucero