Fatal error during CSS and JS removal

Created on 8 August 2022, over 2 years ago
Updated 22 May 2023, over 1 year ago

Hello,

I have a problem with the deleteAll function of CssCollectionOptimizer.php and JsCollectionOptimizer.php.

In my case, my website works in several instances, so CSS and JS are in my s3 storage.

drush cr performs removal of old files, for some unknown reason I have an error because $file_system->delete($uri); launches an exception that is never caught. I don’t understand why, I think the files are already deleted, and maybe Drupal is trying to delete these multiple times?

I have a fatal error, and the deployment process crashes.

I attach a possible patch with try/catch in these two files.

Sincerely,

πŸ› Bug report
Status

Fixed

Version

2.0

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