Drupal 11.3.1. Php 8.4:
When calling "admin/config/development/backup_migrate/settings/source" I get this error:

Error: Call to a member function isAllowed() on false in Drupal\Core\Entity\EntityListBuilder->getDefaultOperations() (line 172 of core/lib/Drupal/Core/Entity/EntityListBuilder.php).

Drupal\Core\Config\Entity\ConfigEntityListBuilder->getDefaultOperations(Object, Object) (Line: 135)
Drupal\Core\Entity\EntityListBuilder->getOperations(Object, Object) (Line: 278)
Drupal\Core\Entity\EntityListBuilder->buildOperations(Object) (Line: 259)
Drupal\Core\Entity\EntityListBuilder->buildRow(Object) (Line: 34)
Drupal\backup_migrate\Controller\SourceListBuilder->buildRow(Object) (Line: 308)
Drupal\Core\Entity\EntityListBuilder->render() (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing('backup_migrate_source')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::wrapControllerExecutionInRenderContext():121}() (Line: 634)
Drupal\Core\Render\Renderer::{closure:Drupal\Core\Render\Renderer::executeInRenderContext():634}()
Fiber->start() (Line: 635)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::onController():96}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 118)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 92)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 54)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 745)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

isAllowed can be used in other places.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

uv516 created an issue. See original summary.

ivnish made their first commit to this issue’s fork.

ivnish’s picture

Version: 5.1.0 » 5.1.x-dev
Status: Active » Needs review

@uv516, could you test the patch from MR ?

  • ivnish committed 50a3e223 on 5.1.x
    fix: #3564001 Call to a member function isAllowed() on false
    
    By: uv516...
ivnish’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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

leducdubleuet’s picture

We still get the same error with Drupal 11.3.2, PHP 8.3 and B&M 5.1.1, was this fix included in the latest release?

ivnish’s picture