[wp-trac] [WordPress Trac] #50716: PHP Fatal error: Cannot declare class PHPMailer\PHPMailer\PHPMailer

WordPress Trac noreply at wordpress.org
Tue Jul 21 12:56:55 UTC 2020


#50716: PHP Fatal error:  Cannot declare class PHPMailer\PHPMailer\PHPMailer
--------------------------+-----------------------------
 Reporter:  david.binda   |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.5
Component:  Mail          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48530" 48530]:
 {{{
 #!CommitTicketReference repository="" revision="48530"
 Mail: Make sure the `PHPMailer` class is only required once if a plugin
 requires `wp-includes/class-phpmailer.php` directly.

 Follow-up to [48033].

 Props david.binda.
 Fixes #50716. See #41750.
 }}}

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


More information about the wp-trac mailing list