- Issue created by @karuonu
Tested. Unable to add role limits.
The website encountered an unexpected error. Try again later. Error: Call to a member function getStorage() on null in Drupal\entity_limit\Plugin\EntityLimit\RoleLimit->buildConfigurationForm() (line 77 of modules/contrib/entity_limit/src/Plugin/EntityLimit/RoleLimit.php).
Details
Drupal\entity_limit\Form\EntityLimitAddLimitForm->form() (Line: 107) Drupal\Core\Entity\EntityForm->buildForm() call_user_func_array() (Line: 528) Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 279) Drupal\Core\Form\FormBuilder->buildForm() (Line: 73) Drupal\Core\Controller\FormController->getContentResult() call_user_func_array() (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 593) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183) 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: 116) Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90) Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 57) Drupal\advban\AdvbanMiddleware->handle() (Line: 50) Drupal\ban\BanMiddleware->handle() (Line: 263) Drupal\shield\ShieldMiddleware->bypass() (Line: 219) Drupal\shield\ShieldMiddleware->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
- 🇺🇸United States jdvc
Here is a new patch with updates and dependency injection updates. Resolved error for me.
- Merge request !5Resolve #3510678 "D11 updates dependency injection" → (Open) created by Unnamed author
- 🇹🇷Turkey orkut murat yılmaz Istanbul
@pearls, can you review the @jdvc's MR too?
- 🇹🇷Turkey orkut murat yılmaz Istanbul
Sorry, I forgot saying that, I've applied the MR as a patch and scanned entity limit with upgrade status module:
No problems found
#8 patch is ok. But now the other patches can not be applied with this patch(#8).
3432063-Drupal calls should be avoided in classes, use dependency injection instead 📌 \Drupal calls should be avoided in classes, use dependency injection instead Active
3347700-checkAccess() throws an exception Invalid specifier 'type' with non node entities 🐛 checkAccess() throws an exception "Invalid specifier 'type'" with non node entities Needs review
Maybe, there must be a holistic solution.
- 🇹🇷Turkey orkut murat yılmaz Istanbul
@pearls, I do agree with you. Should I contact one of the maintainers?
- 🇺🇸United States jdvc
Yeah I tried messaging one of them, haven't heard anything, can't we just close the other two issues to merge this one in?
- Status changed to Needs work
2 months ago 6:33pm 3 July 2025 The problems mentioned above(#12) are important and the patches created for them work without any problems. But unfortunately they were not merged. Maybe a new version should be created for d11.
I think entity_limit is an important module for Drupal environment, but unfortunately it did not get the value it deserved. If mainteinars has stopped supporting this module, maybe it would be good to replace it with those who do.- 🇺🇸United States marvs5
What do we need to do to get changes for D11 across the finish line? This module is the only thing preventing me from being able to move 2 D10 sites to D11.
- 🇹🇷Turkey orkut murat yılmaz Istanbul
thanks to @gaurav.goyal, I can create new releases and merge the requests too.
now, this issue 🐛 checkAccess() throws an exception "Invalid specifier 'type'" with non node entities Needs review is fixed in new 3.0.x-dev release.
if this one 📌 \Drupal calls should be avoided in classes, use dependency injection instead Active is refactored for the same release, we can go back to d11 compatibility issue as well.
@jdvc, @pearls, @marvs5 can you check the latest release?