Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Doesn't work on Drupal 10. #52

Closed
rosiel opened this issue Jul 11, 2023 · 1 comment
Closed

[BUG] Doesn't work on Drupal 10. #52

rosiel opened this issue Jul 11, 2023 · 1 comment
Labels

Comments

@rosiel
Copy link
Member

rosiel commented Jul 11, 2023

When trying to use OpenSeadragon on Drupal 10 I get the following error:

TypeError: Drupal\openseadragon\File\FileInformation::__construct(): Argument #1 ($mimeTypeGuesser) must be of type Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface, Drupal\Core\ProxyClass\File\MimeType\MimeTypeGuesser given, called in /var/www/html/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\openseadragon\File\FileInformation->__construct() (line 29 of /var/www/html/drupal/web/modules/contrib/openseadragon/src/File/FileInformation.php).

I notice that we are asking for a Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface but the mimeTypeGuesser is of a class that implements Symfony\Component\Mime\MimeTypeGuesserInterface.

Can we update it to work on both 9 and 10 or will this require a new branch?

Which version of Islandora are you using?
Islandora on Drupal 10

Any related open or closed issues to this bug report?

Screenshots:

@rosiel rosiel added the bug label Jul 11, 2023
@rosiel
Copy link
Member Author

rosiel commented Jul 12, 2023

see #50

@rosiel rosiel closed this as completed Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant