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

Crashes core's Save and Send Test Email function #51

Open
artfulrobot opened this issue Oct 25, 2024 · 1 comment
Open

Crashes core's Save and Send Test Email function #51

artfulrobot opened this issue Oct 25, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@artfulrobot
Copy link

artfulrobot commented Oct 25, 2024

Save & Send causes a really good crash on a white screen:

Call to undefined method class@anonymous::getDriver() in CRM_Utils_Mail::sendTest()
   (line 253 of /var/www/example.com/web/vendor/civicrm/civicrm-core/CRM/Utils/Mail.php).

There's also deprecated messages too re assigning to $this->mailer.

This is because Core assumes it can use $mailer->getDriver() but because $mailer is replaced by this extension, it doesn't have it.

Core could be fixed to be more hardy against extensions that replace $mailer with something else, but I think the fix should be in here because we're breaking a fairly sensible contract requirement of core.

Nb. affects 5.78.3 not sure what else. It's possible that pr 5151 broke the extensino code.

@bjendres
Copy link
Member

possible related to #47?

@bjendres bjendres added bug Something isn't working help wanted Extra attention is needed labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants