Problem/Motivation
The following error is thrown when sending the emails with mailchimp transactional
Error: Call to undefined method Drupal\Core\ProxyClass\File\MimeType\MimeTypeGuesser::guess() in Drupal\mailchimp_transactional\Plugin\Mail\Mail->getAttachmentStruct() (line 280 of modules/contrib/mailchimp_transactional/src/Plugin/Mail/Mail.php) #0 modules/contrib/mailchimp_transactional/src/Plugin/Mail/Mail.php(162): Drupal\mailchimp_transactional\Plugin\Mail\Mail->getAttachmentStruct()
Steps to reproduce
Proposed resolution
Patch to replace guess() with guessMimeType().
Reference: https://www.drupal.org/node/3126004
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3398045-mailchimp-deprecation-10.patch | 1.14 KB | ramprassad |
| #5 | 3398045_mailchimp_deprecation.patch | 620 bytes | ramprassad |
Issue fork mailchimp_transactional-3398045
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
Comment #2
ramprassad commentedComment #3
ramprassad commentedComment #4
shreya_th commentedComment #5
ramprassad commentedComment #6
dieterholvoet commentedThe minimum supported core version is 9.0.0 and the guessMimeType method was added in 9.1.0, so we'll need to add a conditional:
Comment #8
shreya_th commentedComment #9
dieterholvoet commentedMy comment hasn't been addressed yet, so setting back to Needs work.
Comment #10
ramprassad commentedAdding the updated patch based on the recent DieterHolvoet's comment above and opened merge request. This can go the version 1.1.x as well.
Regards,
Ramprassad
Comment #13
ramprassad commentedMerge request #21 is the valid one.
Merge request #22 was mistakenly raised with the intent to merge to 1.1.x but the branch was not available.
Comment #16
dieterholvoet commented