Project

General

Profile

Bug #11063

PHP error if SMTP notification fails

Added by Niccolò Marchi 7 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Very Low
Assignee:
Category:
Notifications
Target version:
Start date:
11/12/2020
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
All
Affected Architecture:

Description

amd64
12.2-STABLE
FreeBSD 12.2-STABLE 573bcbb6506(devel-12) pfSense

Crash report details:

PHP Errors:
[12-Nov-2020 17:54:43 Europe/Rome] PHP Warning: stream_socket_client(): unable to connect to smtp.gmail.com:587 (No route to host) in /usr/local/share/pear/Net/Socket.php on line 159

No FreeBSD crash data found.

Associated revisions

Revision 87d9798f (diff)
Added by Jim Pingle 6 months ago

Improve handling of SMTP send errors. Fixes #11063

History

#1 Updated by Jim Pingle 7 months ago

  • Subject changed from php error to PHP error if SMTP notification fails
  • Category changed from PPP Interfaces to Notifications
  • Priority changed from Normal to Very Low
  • Target version deleted (2.5.0)

This happens if an SMTP notification can't be sent (e.g. WAN down, no default route, etc). Not specific to any interface type.

It's harmless, just log spam essentially.

#2 Updated by Jim Pingle 6 months ago

  • Assignee set to Jim Pingle
  • Target version set to 2.5.0
  • Affected Version set to All

Hit this locally and found a good way to test. It's a simple fix.

#3 Updated by Jim Pingle 6 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#4 Updated by Danilo Zrenjanin 5 months ago

  • Status changed from Feedback to Resolved

I couldn't replicate the issue on the latest release. Ticket resolved.

Also available in: Atom PDF