CSS/JS aggregation broken on clean installation

Created on 7 August 2023, 11 months ago

Problem/Motivation

A clean installation of Drupal 10.1 does not create CSS/JS cache files, but does reference them. This leads to a broken site when caching is enabled. This does not happen on a clean installation of Drupal 10.0.0.

Steps to reproduce

Installation:

composer create-project drupal/recommended-project drupal
cd drupal
composer require drush/drush

Open web interface and do a standard installation. Everything works correctly during installation.

Issue: At the end of the installation, the site loads with a broken interface.

Why: The cache is enabled by default but does not work. Aggregate CSS and JS files are referenced that doe not exist. The sites/default/files/css and sites/default/files/js folders do not exist. Any referenced CSS or JSS file are never created.

Testing: Clearing the caches either through the web interface or with Drush does not resolve the issue. The cache folders and files are never created. Manually creating the cache folders does not resolve the issue either. Files are still never created.

Workaround: Disable the CSS and JS aggregation under Config -> Development -> Performance

Note, doing the exact same installation, but using version 10.0.0 works perfectly. It's only 10.1.0 that seems broken.

Server info:
OS: FreeBSD 13.2
PHP: 8.2.8
Web: Nginx
App server: uWSGI

Proposed resolution

Create proper cache directories and aggregate CSS/JS cache files.

πŸ’¬ Support request
Status

Closed: works as designed

Version

10.1 ✨

Component
CacheΒ  β†’

Last updated about 10 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States reufhaadfe

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

Comments & Activities

Production build 0.69.0 2024