The following, done on a brand new install of today's 8.0.x Drupal, causes a crash with the error:

Fatal error: Call to a member function cacheUntilEntityChanges() on boolean in /var/www/drupal/core/modules/block/src/BlockAccessControlHandler.php on line 139

  1. I do a fresh install of Drupal 8 using a Vagrant virtual (http://www.drupalvm.com/)
  2. I log into the virtual, cd /var/www/drupal, and install masquerade with "drush dl masquerade; drush en masquerade", which installs the version packaged on 2015-08-18
  3. I go to admin/structure/block, and add the Masquerade block to the "Sidebar First" region.
  4. I go to the front page, and I get a white screen with the error above.

I can supply a full stack-trace by enabling xdebug, but I suspect that you'll find this pretty easy to reproduce.

CommentFileSizeAuthor
#2 issue-2575707.patch998 bytesTorenware
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Torenware created an issue. See original summary.

Torenware’s picture

Assigned: Unassigned » Torenware
Status: Active » Needs review
FileSize
998 bytes

Turned out to be fairly easy to fix. Access routines now return an object, and not a boolean.

andypost’s picture

Patch makes sense as hotfix!
In long run we need to provide cachability of that access check

  • andypost committed 90bf510 on 8.x-2.x
    Issue #2575707 by Torenware, andypost: Masquerade Block on Front Page...
andypost’s picture

andypost’s picture

Status: Fixed » Closed (fixed)

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