"Error: Class 'Symfony\Component\Lock\Exception\LockAcquiringException' not found"

Created on 10 February 2025, 13 days ago

Problem/Motivation

When running the site, the following error occurs:

Error: Class 'Symfony\Component\Lock\Exception\LockAcquiringException' not found in Drupal\file_resup\Controller\UploadController->build()
This issue occurs after updating to Drupal 10.3 and happens when calling lockAcquire() in module.

Steps to reproduce

Install module file_resup, s3fs .

Try to upload the file with file_resup.

Observe the error.

Proposed resolution

Use -
use Drupal\Core\Lock\LockAcquiringException;
instead
use Symfony\Component\Lock\Exception\LockAcquiringException;
OR

  • Check whether the Symfony lock component is correctly required in composer.json.
  • Investigate whether core/composer.json includes "symfony/lock": "^5.4" (or relevant version).
  • Ensure dependencies are properly installed via composer install.
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India kkalaskar Pune

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024