The website encountered an unexpected error. Please try again later.

Created on 10 October 2018, about 6 years ago
Updated 16 April 2024, 8 months ago

I was using Drupal 8 on Acquia Dev Destop 2 on windows 10. After installed the Zen 8.x-7.0-alpha14 and set it as default theme. My webpage cannot be loaded and it showed "The website encountered an unexpected error. Please try again later." error. Checking the system log (admin/reports/dblog) showed me the following error message

"Twig_Error_Loader: Template "@STARTERKIT/containers/article/article.twig" is not defined in "themes/zen/STARTERKIT/templates/content/node.html.twig" at line 1. in Twig_Loader_Chain->getCacheKey() (line 129 of C:\Users\My User Name\Sites\devdesktop\drupal-8.6.1\vendor\twig\twig\lib\Twig\Loader\Chain.php)."

I have checked my file system and the article.twig file was under STARTERKIT/components/containers/article/ folder. I have then revised my "themes/zen/STARTERKIT/templates/content/node.html.twig" file to point to the right place and cleared the Cache but the same error message still show up but this time with the correct folder path:

Twig_Error_Loader: Template "@STARTERKIT/components/containers/article/article.twig" is not defined in "themes/zen/STARTERKIT/templates/content/node.html.twig" at line 1. in Twig_Loader_Chain->getCacheKey() (line 129 of C:\Users\My User Name\Sites\devdesktop\drupal-8.6.1\vendor\twig\twig\lib\Twig\Loader\Chain.php).

I am new to Drupal and PHP, any helps would be really appreciated! Thanks!

🐛 Bug report
Status

Needs review

Version

7.0

Component

PHP code

Created by

🇺🇸United States xionghan

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024