FileExists not found

Created on 6 January 2025, 3 months ago

Problem/Motivation

Error: Class "Drupal\Core\File\FileExists" not found in Drupal\image_style_on_upload\Utility\ImageStyleApplier->apply() (line 109 of /app/cms/web/modules/contrib/image_style_on_upload/src/Utility/ImageStyleApplier.php).

Steps to reproduce

On drupal version 10.2.12

Proposed resolution

Change if ($this->fileSystem->move($derived_uri, $file->getFileUri(), FileExists::Replace) === FALSE) {
To if ($this->fileSystem->move($derived_uri, $file->getFileUri(), $this->fileSystem::EXISTS_REPLACE) === FALSE) {

🐛 Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

🇧🇪Belgium britt.vanderlinden

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

Comments & Activities

Production build 0.71.5 2024