Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

sendBrokenLinksEmail() of the link check task only catches MailDisabledException and the PHPMailer exception. MailTemplate::send() is documented to throw \Exception as well, and does so e.g. with an UnexpectedValueException for an invalid sender address. Such an exception aborts the task run with an error instead of being logged, and the remaining Super Users do not get the mail.

\Exception is now caught and logged as well.

Testing Instructions

  • Set an invalid From email in the Global Configuration (e.g. invalid) on a test site.
  • Run a "Weblinks - Check links" task that finds a broken link.

Expected result

The mail error is logged in the task log, the task finishes.

Actual result

The task run fails with an uncaught exception.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment