Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 301262

navigation module causing twig error due to use of colon in filename

$
0
0

Problem/Motivation

Facing an issue with your Drupal 11 installation on a Windows system, where Twig template caching fails due to the following:

1. **Invalid Characters in File Paths:** Some filenames generated by Twig contain invalid characters, such as colons (`:`), which are not allowed in Windows file systems.

2. **Permission Issues:** Drupal cannot create directories or rename files in the `sites/default/files/php/twig` directory due to insufficient write permissions.

3. **Path Length Limitation:** The file paths may exceed Windows' default maximum path length of 260 characters, causing failures during file operations.

These issues result in errors like `rename(): The system cannot find the path specified` and `mkdir(): Permission Denied`, preventing Twig from saving cached files.

Steps to reproduce

Proposed resolution

i tried adding :

$settings['twig_settings'] = [
'hash_filename' => TRUE,
];

and clearing cache, to no avail.
when i disable the navigation module, error is gone.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 301262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>