Installing "sshop" theme crashes site with Twig LoaderError for missing "block--bare.html.twig"

Created on 28 May 2025, 7 days ago

Problem/Motivation

After installing the sshop theme on my Drupal site, the site crashes and logs the following error in the Recent log messages (dblog):
Twig\Error\LoaderError: Template "block--bare.html.twig" is not defined in "themes/custom/sshop-3526682/templates/block/block--system-branding-block.html.twig" at line 1. in Twig\Loader\ChainLoader->getCacheKey() (line 111 of /app/vendor/twig/twig/src/Loader/ChainLoader.php).

Steps to reproduce

Download and install the sshop theme.

Set the theme as default from the Appearance page.

Observe the error logged in dblog and white screen of death (WSOD) on the site.

Proposed resolution

One of the following may resolve the issue:

Provide the missing block--bare.html.twig file in the appropriate templates/block/ directory.

Modify block--system-branding-block.html.twig to not depend on an undefined template.

Add a fallback or conditional to avoid the error if the template is missing.

Expected behavior

The theme should load properly without throwing a fatal Twig error. If a block--bare.html.twig file is required, it should be provided by the theme or handled gracefully.

Actual behavior

The theme references a non-existent template: block--bare.html.twig, causing Twig to throw a LoaderError, which breaks the site.

Additional information

I am attaching a screen recording demonstrating the issue as it occurs in real-time.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India lavanyatalwar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024