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

Comments

mstills created an issue. See original summary.

mstills’s picture

Here is a patch that fixed it for me.

dnotes’s picture

Status: Active » Needs review

there is a patch, so marking needs review

rpayanm’s picture

Version: 8.x-1.0-beta3 » 8.x-1.x-dev
StatusFileSize
new9.49 KB

Updating the patch.

rpayanm’s picture

May we commit this?

wundo’s picture

Thanks for the follow up, sure, that didn't show up in my radar before!

  • wundo committed a9275d5 on 8.x-1.x authored by rpayanm
    Issue #2898506 by mstills, rpayanm, dnotes: Case mismatch in...
wundo’s picture

Status: Needs review » Fixed
wundo’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.