WSOD Error in Drupal 10: Class "Symfony\Component\PropertyAccess\PropertyAccess" not found

Created on 7 March 2023, over 1 year ago
Updated 16 March 2023, over 1 year ago

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

  1. Install a fresh Drupal 10 site
  2. Require the Patternkit module via Composer
  3. Enable the Patternkit module
  4. Load the front page of the site
  5. Observe a WSOD page stating an error has occurred
  6. 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

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

9.1

Component

Module Core

Created by

πŸ‡ΊπŸ‡ΈUnited States slucero Arkansas

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024