Problem/Motivation

Drupal core is 9.5.10.
After updating from version 3.1.26 to 3.1.27 for permissions_by_term, a WSOD with this error appeared:

The website encountered an unexpected error. Please try again later.
ArgumentCountError: Too few arguments to function Drupal\permissions_by_entity\Service\AccessChecker::__construct(), 4 passed in /var/www/clients/client3/web41/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 5 expected in Drupal\permissions_by_entity\Service\AccessChecker->__construct() (line 52 of modules/contrib/permissions_by_term/modules/permissions_by_entity/src/Service/AccessChecker.php).

More error info is here: https://www.drupal.org/files/issues/2023-09-14/perm-by-term-access-check...

Steps to reproduce

Update permissions_by_term to version 3.1.27.

CommentFileSizeAuthor
perm-by-term-access-check.txt1.62 KBsnowmountain

Comments

snowmountain created an issue. See original summary.

bakop’s picture

Hi, have you cleared the site cache?

ady1503’s picture

Solution is clear all caches.

marcoliver’s picture

Status: Active » Fixed

Hi snowmountain,

as mentioned by backup and ady1503, clearing the cache should do the trick. I was able to reproduce the problem. Clearing the cache, so the changed method signature becomes known, should be the solution.

I'll mark this as fixed. Feel free to reopen if the problem persists.

Status: Fixed » Closed (fixed)

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