[wp-trac] [WordPress Trac] #25253: Fatal error: Cannot redeclare class phpmailerException

WordPress Trac noreply at wordpress.org
Wed Sep 16 20:02:53 UTC 2020


#25253: Fatal error: Cannot redeclare class phpmailerException
-------------------------------------+----------------------
 Reporter:  hovida                   |       Owner:  (none)
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  Mail                     |     Version:  3.6
 Severity:  normal                   |  Resolution:  wontfix
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+----------------------
Changes (by desrosj):

 * status:  reopened => closed
 * resolution:   => wontfix


Comment:

 As of WordPress 5.6, PHPMailer has been brought up to date with the
 upstream library (see #41750). Because this is the only report I can find
 for this error, I'm going to close this out as a `wontfix`.

 Adding the extra safety check probably wouldn't hurt, but an external
 script loading its own version of PHPMailer could have other undesirable
 side effects. For example, if an older version of the library is loaded
 outside of WordPress and Core utilizes a newer feature within the library,
 that would potentially cause issues. Leaving this error could potentially
 help debug the issue so that improvements can be made.

 If there are any factors being missed that should be considered, feel free
 to reopen this and add additional details.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/25253#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list