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

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

vipin.mittal18 created an issue. See original summary.

vipin.mittal18’s picture

Issue summary: View changes