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

  • Add MR with change to Composer.json
  • Confirm all tests pass with Drupal 10

User interface changes

None

API changes

None

Data model changes

None

Issue fork patternkit-3346507

Command icon 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

slucero created an issue. See original summary.

slucero’s picture

Status: Active » Needs review

Tests are all finally passing and this is ready for review and testing.

mariohernandez’s picture

I reviewed and successfully tested the fixes in this MR on a new clean Drupal 10 site.

slucero’s picture

Status: Needs review » Reviewed & tested by the community

  • slucero committed 351d75e8 on 9.1.x
    Issue #3346507 by slucero, mariohernandez: WSOD Error in Drupal 10:...
slucero’s picture

Status: Reviewed & tested by the community » Fixed
Related issues: +#3347967: PHPCS Times Out In DrupalCI Since Drupal 9.5

Merging 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.

slucero’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.