Whenever there is an error in PHPMailer, it does a:
throw new phpmailerException
However, the namespace is declared as:
use Drupal\smtp\Plugin\Exception\PHPMailerException;
With different casing which causes a RuntimeException instead:
RuntimeException: Case mismatch between loaded and declared class names: Drupal\smtp\Plugin\Exception\PHPMailerException vs Drupal\smtp\Plugin\Exception\phpmailerException in Symfony\Component\Debug\DebugClassLoader->loadClass() (line 198 of /app/vendor/symfony/debug/DebugClassLoader.php).
This was observed in PHP 7.1, Drupal Core 8.3.5
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2898506-4.patch | 9.49 KB | rpayanm |
| #2 | smtp-phpmailerexception-case-mismatch-2898506.patch | 9.92 KB | mstills |
Comments
Comment #2
mstills commentedHere is a patch that fixed it for me.
Comment #3
dnotes commentedthere is a patch, so marking needs review
Comment #4
rpayanmUpdating the patch.
Comment #5
rpayanmMay we commit this?
Comment #6
wundo commentedThanks for the follow up, sure, that didn't show up in my radar before!
Comment #8
wundo commentedComment #9
wundo commented