Closed (fixed)
Project:
Images Optimizer
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Oct 2023 at 07:32 UTC
Updated:
8 Nov 2023 at 16:09 UTC
Jump to comment: Most recent
The module does work on Drupal 10 when uploading an image due to php error.
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).
Follow steps from https://www.drupal.org/node/3126004
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
Comment #3
nginex commentedComment #5
curriedn commentedThanks nginex!