Hi. I I've installed Drupal-8.0.0-beta14 and using Linux on my AWS EC2. and RDS.

I can access the Admin Menu, and use Appearance and Modules features just fine, but when I try to add content or approve a test user in the admin/people, I get:

Fatal error: Call to a member function isForbidden() on boolean in /var/www/html/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php on line 82

What can I do to resolve it?

Comments

Verigive created an issue. See original summary.

dawehner’s picture

Do you might posting a backtrace which shows more context than that? It could be easily the problem that some contrib is doing the wrong thing, maybe admin_menu

Anonymous’s picture

I have the same problem on the final release

stacktrace:
1 0.0004 241952 {main}( ) ../index.php:0
2 0.0201 596960 Drupal\Core\DrupalKernel->handle( ) ../index.php:19
3 0.0549 1716128 Stack\StackedHttpKernel->handle( ) ../DrupalKernel.php:637
4 0.0549 1716240 Drupal\Core\StackMiddleware\NegotiationMiddleware->handle( ) ../StackedHttpKernel.php:23
5 0.0549 1716864 Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle( ) ../NegotiationMiddleware.php:55
6 0.0549 1717304 Drupal\ban\BanMiddleware->handle( ) ../ReverseProxyMiddleware.php:51
7 0.0551 1718256 Drupal\page_cache\StackMiddleware\PageCache->handle( ) ../BanMiddleware.php:55
8 0.0554 1728504 Drupal\page_cache\StackMiddleware\PageCache->pass( ) ../PageCache.php:82
9 0.0554 1728584 Drupal\Core\StackMiddleware\KernelPreHandle->handle( ) ../PageCache.php:103
10 0.1793 2086752 Drupal\Core\StackMiddleware\Session->handle( ) ../KernelPreHandle.php:53
11 0.1877 2243872 Symfony\Component\HttpKernel\HttpKernel->handle( ) ../Session.php:62
12 0.1877 2244824 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ../HttpKernel.php:62
13 0.3490 5963072 call_user_func_array ( ) ../HttpKernel.php:139
14 0.3490 5963272 Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}( ) ../HttpKernel.php:139
15 0.3490 5963528 Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext( ) ../EarlyRenderingControllerWrapperSubscriber.php:102
16 0.3492 5975832 Drupal\Core\Render\Renderer->executeInRenderContext( ) ../EarlyRenderingControllerWrapperSubscriber.php:129
17 0.3492 5976240 Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}( ) ../Renderer.php:577
18 0.3492 5976288 call_user_func_array ( ) ../EarlyRenderingControllerWrapperSubscriber.php:128
19 0.3492 5976736 Drupal\node\Controller\NodeController->add( ) ../EarlyRenderingControllerWrapperSubscriber.php:128
20 0.4425 10002232 Drupal\Core\Entity\EntityFormBuilder->getForm( ) ../NodeController.php:118
21 0.4505 10221216 Drupal\Core\Form\FormBuilder->buildForm( ) ../EntityFormBuilder.php:53
22 0.5917 14830120 Drupal\Core\Form\FormBuilder->processForm( ) ../FormBuilder.php:319
23 0.5917 14835976 Drupal\Core\Form\FormBuilder->doBuildForm( ) ../FormBuilder.php:560
24 0.6121 15389472 Drupal\Core\Form\FormBuilder->doBuildForm( ) ../FormBuilder.php:1047
25 0.6122 15394552 Drupal\Core\Form\FormBuilder->doBuildForm( ) ../FormBuilder.php:1047
26 0.6122 15398448 Drupal\Core\Form\FormBuilder->doBuildForm( ) ../FormBuilder.php:1047
27 0.6123 15407408 Drupal\Core\Form\FormBuilder->doBuildForm( ) ../FormBuilder.php:1047
28 0.6124 15409216 Drupal\Core\Form\FormBuilder->handleInputElement( ) ../FormBuilder.php:977
29 0.6124 15410096 call_user_func_array ( ) ../FormBuilder.php:1260
30 0.6124 15410184 Drupal\Core\Entity\Element\EntityAutocomplete::valueCallback( ) ../FormBuilder.php:1260
31 0.6124 15410488 Drupal\Core\Entity\Element\EntityAutocomplete::getEntityLabels( ) ../EntityAutocomplete.php:76
32 0.6124 15411136 Drupal\Core\Entity\ContentEntityBase->access( ) ../EntityAutocomplete.php:299
33 0.6132 15423008 Drupal\Core\Entity\EntityAccessControlHandler->access( ) ../ContentEntityBase.php:596

Anonymous’s picture

Version: 8.0.0-beta14 » 8.0.0
tczaude’s picture

Subscribe this same problem

joshuautley’s picture

I'm running 8.0.2 with the same problem. I can not view or edit my profile or view the people page.

tusharbodke’s picture

Assigned: Unassigned » tusharbodke
borisson_’s picture

Component: phpunit » user system

I'm not sure that this belongs in the phpunit component, but it should be in the user module. I also don't think this still applies.

Version: 8.0.0 » 8.0.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.0.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
DanielVeza’s picture

Status: Active » Closed (outdated)

No updates since 8.0 and no reproductions in the last 6 years. Lets close.

DanielVeza’s picture

Issue tags: -EntityAccessController.php +Bug Smash Initiative