Twig\Error\LoaderError: Template "@organisms/list/list.twig" is not defined

Created on 19 January 2024, 10 months ago
Updated 30 May 2024, 6 months ago

Problem/Motivation

The website encountered an unexpected error. Try again later.

Twig\Error\LoaderError: Template "@organisms/list/list.twig" is not defined in "themes/contrib/civictheme/templates/views/views-view.html.twig" at line 7. in Twig\Loader\ChainLoader->getCacheKey() (line 99 of /app/vendor/twig/twig/src/Loader/ChainLoader.php).

Steps to reproduce

  • Install theme with composer in Drupal 10.2.0
  • Enable theme and set default
  • Now navigate to home page.
🐛 Bug report
Status

Closed: works as designed

Version

1.6

Component

Code

Created by

🇮🇳India ravi kant Jaipur

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

Comments & Activities

  • Issue created by @ravi kant
  • 🇦🇺Australia alex.skrypnyk Melbourne

    @ravi-kant
    Could you please provide more information on how you installed the CivicTheme: using Composer or manually?

    This error usually appears when `components` directory, which is a symlink, cannot be followed by the OS or if the codebase was copied from the archive without preserving links.

  • 🇮🇳India dineshkumarbollu

    Hi @alex.skrypnyk

    I tried to reproduce the issue, manually i tried i am getting same error along with 1 more error.

    Drupal\Component\Plugin\Exception\PluginNotFoundException: The "civictheme_one_column" plugin does not exist. Valid plugin IDs for Drupal\Core\Layout\LayoutPluginManager are: layout_twocol_section, layout_threecol_section, layout_fourcol_section, layout_onecol, layout_twocol, layout_twocol_bricks, layout_threecol_25_50_25, layout_threecol_33_34_33, layout_builder_blank in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/diet/vb1020/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

  • Status changed to Postponed: needs info 10 months ago
  • 🇦🇺Australia alex.skrypnyk Melbourne

    @dineshkumarbollu
    could you please provide more steps to reproduce

  • 🇮🇳India ravi kant Jaipur

    @alex.skrypnyk

    • Installed components module components^3.0@beta with composer
    • Installed the civictheme with composer in Drupal 10.2.0.
    • Enabled all required modules
    • Now enabled and set default to civictheme
    • Navigate to home page
  • I installed the theme manually, installed the missing modules on a clean drupal 10.2.3, turned them on and got a similar error.

  • For what it's worth, I was doing the same thing and got a similar error (but for @atoms/image/image.twig). Came here to post about it but then noticed that I hadn't done a drush cr since installing the theme and dependencies. That fixed it for me.

  • 🇦🇺Australia RichardGaunt Melbourne
  • 🇦🇺Australia RichardGaunt Melbourne

    I also get this error:

    • when I install the site with another theme other than CT
    • created a child CT theme
    • enabled this child theme
    • set as default
    • navigate to front page
  • 🇦🇺Australia thisisalistairsaccount

    Confirming that the issue is resolved as described in #10 and #12 that clearing the cache, such as drush cr after enabling the theme resolves the issue.

    This issue occurs and clearing the cache works in both the base and any child theme resolves the issue.

  • Status changed to Closed: works as designed 6 months ago
  • Closing as community confirmed this is resolved.

Production build 0.71.5 2024