Problem/Motivation

Getting this error using version 2.2.2 Drupal 11.3.11

Uncaught PHP Exception Error: "Class "Drupal\file_upload_secure_validator\Service\FileUploadSecureValidator" not found" at /var/www/html/website/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php line 259

Steps to reproduce

Install module latest, try to upload an image using a Webform image field.
The event is fired, but the class is not found.
Breaks image upload on all files.

  • I tried reinstalling, uninstalling, no help.
  • I tried downgrading to v 2.2.1 it does not work, was able to upload an .exe renamed to .jpg

Proposed resolution

Fix issue in version 2.2.2

Comments

jimconte created an issue. See original summary.

stefanos.petrakis’s picture

Hi, sorry about your troubles.

Can you try to reproduce this on a vanilla install of 11.3.11 with Webform?
Or, is that what you tried already?

stefanos.petrakis’s picture

Status: Active » Postponed (maintainer needs more info)
egontinno’s picture

I got the exact same error after the update, although it wasn't related to Webform and only occurred in one environment.
Restarting the server fixed the problem.