Drupal 10 - Call to undefined method MimeTypeGuesser::guess() in MimeMailFormatHelper::mimeMailFile()

Created on 30 October 2023, over 1 year ago
Updated 8 November 2023, over 1 year ago

Problem/Motivation

After upgrading to Drupal 10, sending mail with attachments fails due to an error:

Error: Call to undefined method Drupal\Core\ProxyClass\File\MimeType\MimeTypeGuesser::guess() in Drupal\mimemail\Utility\MimeMailFormatHelper::mimeMailFile() (line 454 of /app/docroot/modules/contrib/mimemail/src/Utility/MimeMailFormatHelper.php).

Proposed resolution

Use the method \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface::guessMimeType() instead of guess()

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia sonnykt Melbourne, Australia

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

Comments & Activities

Production build 0.71.5 2024