Fix Twig Error Loader Error when attempting to add new content

Created on 29 May 2024, 6 months ago
Updated 11 June 2024, 5 months ago

Problem/Motivation

Encountering the error message "Twig\Error\LoaderError: Template "/project_name/docroot/modules/contrib/type_tray/assets/icons/file-text.svg" is not defined." when attempting to add new content

Steps to reproduce

1- Set up the project on a LAMP stack within a subdirectory.
2- Enable the module.
3- Navigate to the node/add page and observe the error.

Proposed resolution

Update the preprocess function in the gin_type_tray.module file to correctly handle SVG icons and ensure proper URL referencing for icons and thumbnails.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024