%app.root/modules/contrib/gutenberg is not a directory.

Created on 20 December 2022, over 2 years ago
Updated 20 October 2023, over 1 year ago

Problem/Motivation

One of our Gutenberg pages was broken and we received the following error:
'Got error 'PHP message: Uncaught PHP Exception Drupal\\Core\\File\\Exception\\NotRegularDirectoryException: "%app.root/modules/contrib/gutenberg is not a directory." at /var/www/html/web/core/lib/Drupal/Core/File/FileSystem.php line 665',

Proposed resolution

In the gutenberg.services.yml git history I see:
In the second to last commit https://git.drupalcode.org/project/gutenberg/-/commit/fc8414354de5100a5a...
%app.root% was switched to @app.root
In the latest commit https://git.drupalcode.org/project/gutenberg/-/commit/266dea8dc20b8e8b92... from 6 days ago @app.root was switched to %app.root

I changed %app.root to %app.root% and our broken page was fixed.

This page https://www.drupal.org/node/3080612 β†’ reinforces my belief that a % sign is missing from the code.

Remaining tasks

Add another '%' to the end of '%app.root' in gutenberg.services.yml

πŸ› Bug report
Status

Fixed

Version

2.6

Component

Code

Created by

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