Call to undefined method MimeTypeGuesser::guess()

Created on 17 October 2023, 9 months ago
Updated 25 October 2023, 8 months ago

Problem/Motivation

The module does work on Drupal 10 when uploading an image due to php error.

Steps to reproduce

1. On your Drupal 10 site go to /media/add/image and upload a new image
2. The image does not display and the above error appears in the logs

Error: Call to undefined method Drupal\Core\ProxyClass\File\MimeType\MimeTypeGuesser::guess() in Drupal\images_optimizer\Entity\ImagesOptimizerImageStyle->createDerivative() (line 29 of /var/core/www/modules/contrib/images_optimizer/src/Entity/ImagesOptimizerImageStyle.php).

Proposed resolution

Follow steps from https://www.drupal.org/node/3126004 β†’

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine nginex

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

Comments & Activities

Production build 0.69.0 2024