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.
| Comment | File | Size | Author |
|---|---|---|---|
| perm-by-term-access-check.txt | 1.62 KB | snowmountain |
Comments
Comment #2
bakopHi, have you cleared the site cache?
Comment #3
ady1503 commentedSolution is clear all caches.
Comment #4
marcoliverHi 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.