Problem/Motivation

When trying to add a field from a taxonomy to the Content Model Documentation, I got a WSOD upon form submission.

Steps to reproduce

  1. Go to /admin/structure/cm_document/add
  2. Choose a taxonomy field to add
  3. Save
  4. Confirm that you get a WSOD
  5. Got to /admin/reports/dblog
  6. Confirm that the error is "Call to undefined method Drupal\Core\Entity\EntityTypeManager::getFieldDefinitions() in Drupal\content_model_documentation\Form\CMDocumentForm->buildDocumentedName()"

Comments

skyriter created an issue. See original summary.

skyriter’s picture

Issue summary: View changes
skyriter’s picture

Issue summary: View changes
skyriter’s picture

Issue summary: View changes
swirt’s picture

This is not specific to taxonomy. This is actually happening because
Call to undefined method Drupal\Core\Entity\EntityTypeManager::getFieldDefinitions()
is deprecated has been moved to the entity_field.manager and is not longer in the EntityTypeManager.
I am not sure why this just started failing now on a D9 site.

swirt’s picture

Assigned: Unassigned » swirt
swirt’s picture

Title: WSOD when adding taxonomy field » WSOD when adding CM Document for a field
Component: Code » Content model document

  • swirt committed f5aa6540 on 1.0.x
    Issue #3386794: WSOD when adding CM Document for a field
    
swirt’s picture

Status: Active » Fixed

Fixed. This will go out with 1.0.13 in a few minutes.

swirt’s picture

The breaking change was introduced in #3353163: Fix the issues reported by phpcs

Status: Fixed » Closed (fixed)

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