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
- Set up a vanilla Drupal 9.2.x install.
- Download and enable this module.
- 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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3200627-9_2_x-compatibility.patch | 2.02 KB | pyrello |
Comments
Comment #2
pyrello commentedThis patch just updates the
__construct()and staticcreate()methods to make them compatible with the base class.Comment #3
pyrello commentedComment #4
johnzzonPatch tested and reviewed. Looks good!
Comment #6
jludwig commentedCommitted. Thanks!