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.
Issue fork backup_migrate-3564001
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
Comment #4
ivnish@uv516, could you test the patch from MR ?
Comment #6
ivnishComment #9
leducdubleuet commentedWe 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?
Comment #10
ivnishI created a 5.1.2 release https://www.drupal.org/project/backup_migrate/releases/5.1.2