Problem/Motivation
Installing Acquia CMS with Site Studio 7.2.1, the front page displays the message,
The website encountered an unexpected error. Please try again later.
Steps to reproduce
Install Drupal with Acquia CMS with Site Studio module version 7.2.1
Proposed Solution
Replace code
$access = $entity->access('view', $this->currentUser, TRUE);
if ($entity instanceof EntityInterface && $access) {
with
if ($entity instanceof EntityInterface && $entity->access('view', $this->currentUser)) {
$access = $entity->access('view', $this->currentUser, TRUE);
at docroot/modules/contrib/cohesion/modules/cohesion_templates/src/TwigExtension/TwigExtension.php
Comments
Comment #2
vipin.mittal18