Problem/Motivation

When attempting to enable this module with Drupal 9.2.x, I get the following error:

ArgumentCountError: Too few arguments to function Drupal\Core\Config\Entity\ConfigEntityStorage::__construct(), 4 passed in VocabStorage.php on line 41 and exactly 5 expected in Drupal\Core\Config\Entity\ConfigEntityStorage->__construct() (line 111 of core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php).

Steps to reproduce

  1. Set up a vanilla Drupal 9.2.x install.
  2. Download and enable this module.
  3. Error message will either appear on screen or be available in the logs.

Proposed resolution

The VocabStorage class needs to be updated to be compatible with the updated ConfigEntityStorage class.

Remaining tasks

  • Write patch
  • Test
CommentFileSizeAuthor
#2 3200627-9_2_x-compatibility.patch2.02 KBpyrello

Comments

pyrello created an issue. See original summary.

pyrello’s picture

StatusFileSize
new2.02 KB

This patch just updates the __construct() and static create() methods to make them compatible with the base class.

pyrello’s picture

Issue summary: View changes
johnzzon’s picture

Status: Active » Reviewed & tested by the community

Patch tested and reviewed. Looks good!

  • jludwig committed c479055 on 8.x-1.x authored by pyrello
    Issue #3200627 by pyrello, johnzzon: Incompatibility with 9.2.x
    
jludwig’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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