- Issue created by @erutan
- 🇮🇳India Rajan Kumar@2026
Hi,
I have fixed the issue with Drupal 11 support and created a patch. I have attached a screenshot for reference. Thank you !
- First commit to issue fork.
- 🇺🇸United States bradallenfisher
The website encountered an unexpected error. Try again later.
TypeError: Drupal\permissions_by_term\Service\AccessCheck::__construct(): Argument #2 ($eventDispatcher) must be of type Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher given, called in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\permissions_by_term\Service\AccessCheck->__construct() (line 81 of modules/contrib/permissions_by_term/src/Service/AccessCheck.php).
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 430)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 237)
Drupal\Component\DependencyInjection\Container->createService() (Line: 177)
Drupal\Component\DependencyInjection\Container->get() (Line: 454)
Drupal\Component\DependencyInjection\Container->Drupal\Component\DependencyInjection\{closure}() (Line: 243)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 159)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 709)
Drupal\Core\DrupalKernel->handle() (Line: 19)after applying patch and clearing cache
- 🇬🇧United Kingdom somersoft
@bradallenfisher.
Please can you check how the patch is applied as looking at the issue fork diff the second parameter is changed to have the correct class.That change is not in the patch uploaded in #2.
Alternative installation of the code if this issue fork repository can be used directly, by adding the following to the project's composer.json
"repositories": [
{
"type": "vcs",
"url": "https://git.drupalcode.org/issue/permissions_by_term-3476575.git"
}
],and
"require": {
"drupal/permissions_by_term": "dev-3.1.x-dev",
}then composer can create a compatible set of packages.
- Status changed to Needs work
about 1 month ago 9:18am 6 December 2024 - 🇩🇪Germany Peter Majmesku 🇩🇪Düsseldorf
peter majmesku → made their first commit to this issue’s fork.
- 🇩🇪Germany Peter Majmesku 🇩🇪Düsseldorf
@somersoft, mark_fullmer, erutan, bradallenfisher:
I’ve made several changes, and the module is now installable on Drupal 11. I conducted a few tests, and everything worked as expected. However, I’m not finished yet. Could you please do some testing and provide feedback in the meantime?
-
peter majmesku →
committed 9beaf406 on 3.1.x-dev
Drupal issue #3476575 Drupal 11 support?
-
peter majmesku →
committed 9beaf406 on 3.1.x-dev
-
peter majmesku →
committed 73d1e715 on 3.1.x-dev
#3476575: Fixed type error
-
peter majmesku →
committed 73d1e715 on 3.1.x-dev
-
peter majmesku →
committed 55675179 on 3.1.x-dev
#3476575: Resolved PHPStan errors
-
peter majmesku →
committed 55675179 on 3.1.x-dev
-
peter majmesku →
committed 9409973f on 3.1.x-dev
#3476575: Use the correct interface in AccessCheck service, for not...
-
peter majmesku →
committed 9409973f on 3.1.x-dev
-
peter majmesku →
committed 568cf19e on 3.1.x-dev
#3476575: Fixed phpunit tests
-
peter majmesku →
committed 568cf19e on 3.1.x-dev
-
peter majmesku →
committed 6a4aec08 on 3.1.x-dev
#3476575: Removed not used variable. Sinced PHPSTAN level in GitLab CI...
-
peter majmesku →
committed 6a4aec08 on 3.1.x-dev
-
peter majmesku →
committed 95e90659 on 3.1.x-dev
#3476575: Fixed phpcs errors
-
peter majmesku →
committed 95e90659 on 3.1.x-dev
-
peter majmesku →
committed 7d776b2d on 3.1.x-dev
#3476575: Working on phpcs validation
-
peter majmesku →
committed 7d776b2d on 3.1.x-dev
- 380deb4f committed on 3.1.x-dev
Drupal issue #3476575 Drupal 11 support? Drupal\Component\...
- 380deb4f committed on 3.1.x-dev
- 103ec0d4 committed on 3.1.x-dev
Drupal issue #3476575 Drupal 11 support? Drupal\Component\...
- 103ec0d4 committed on 3.1.x-dev
- ec3c560b committed on 3.1.x-dev
Drupal issue #3476575 Drupal 11 support? Drupal\Component\...
- ec3c560b committed on 3.1.x-dev
- 427a964b committed on 3.1.x-dev
Drupal issue #3476575 Drupal 11 support? Correct the name.
- 427a964b committed on 3.1.x-dev
- 4d896f3c committed on 3.1.x-dev
Drupal issue #3476575 Drupal 11 support? https://www.drupal.org/project/...
- 4d896f3c committed on 3.1.x-dev
- 🇩🇪Germany Peter Majmesku 🇩🇪Düsseldorf
Created release 3.1.35 → which is now supporting Drupal 11.
- 🇩🇪Germany Peter Majmesku 🇩🇪Düsseldorf
Please do me a favor and test the latest patch release. Feel free to re-open this issue, if you stumble upon any Drupal 11 related issues.
Automatically closed - issue fixed for 2 weeks with no activity.
- 🇩🇪Germany marcoliver Neuss, NRW, Germany
Just chiming in real quick to let you know that I just spent about an hour with the new release and it looks good!
I did not encounter anything unexpected on either D10 or D11! Thanks!