"Template "@bi-bcl/list/linklist-item.html.twig" is not defined

Created on 8 February 2025, 4 months ago

Problem/Motivation

When the theme is applied to site, on the browser i see:
"The website encountered an unexpected error. Try again later."

then on the apache error.log i found

[Sat Feb 08 18:02:51.348708 2025] [php:notice] [pid 8037] [client 127.0.0.1:41248] Uncaught PHP Exception Twig\\Error\\LoaderError: "Template "@bi-bcl/list/linklist-item.html.twig" is not defined in "themes/contrib/bootstrap_italia/components/components-2/list/links.html.twig" at line 71." at /home/user/Progetti/Drupal/prova/vendor/twig/twig/src/Loader/ChainLoader.php line 111, referer: http://comtem.local/admin/appearance

I've tried with Drupal 11.1.1 and obtained the error
then installed version 11.0.10 and get the error

Steps to reproduce

- install drupal 11.0 or 11.1
- install module components 3.1
- install theme Bootstrap Italia and set the default
- go to site

then in apache error.log

[Sat Feb 08 18:02:51.348708 2025] [php:notice] [pid 8037] [client 127.0.0.1:41248] Uncaught PHP Exception Twig\\Error\\LoaderError: "Template "@bi-bcl/list/linklist-item.html.twig" is not defined in "themes/contrib/bootstrap_italia/components/components-2/list/links.html.twig" at line 71." at /home/user/Progetti/Drupal/prova/vendor/twig/twig/src/Loader/ChainLoader.php line 111, referer: http://comtem.local/admin/appearance

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

I'm on the begin of use of Drupal for a project where the need is to start with a little customization of this theme

🐛 Bug report
Status

Active

Version

2.12

Component

Code

Created by

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

Comments & Activities

  • Issue created by @gbonline
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇷🇺Russia pafes Podolsk

    pafes changed the visibility of the branch 3505337-template-bi-bcllistlinklist-item.html.twig-is to hidden.

  • Hi,
    I take the same error when I apply the child theme Bootstrap Italia Gov 2.12.0 to my site.
    It seems like components module is not be installed - on admin appearance interface is shown the message "Requires: Components" for themes Bootstrap Italia 2.12.0 and Bootstrap Italia Gov - Child Theme 2.12.0 -

    but I've installed it using composer and following these statements bootstrap italia :

    $ composer require drupal/components
    $ drush pm:enable components

    receiving successful message.

    Checking admin extend section, I can see components module installed too:
    Machine name: components
    Version: 3.1.0

    I've installed Drupal 11.1.7 ad PHP 8.4.6 using drush, and I'm using Apache 2.4.63 Postgres 16.8

    I can't understand why components module isn't referenced by theme.
    Thanks for your help in advance

Production build 0.71.5 2024