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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nginex created an issue. See original summary.

nginex’s picture

Status: Active » Needs review

  • nginex committed 37e19ad6 on 2.x
    Issue #3394503: Use guessMimeType() and force drupal core 9.1
    
curriedn’s picture

Status: Needs review » Fixed

Thanks nginex!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.