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

WordPress Trac noreply at wordpress.org
Thu May 19 15:29:53 UTC 2016


#25253: Fatal error: Cannot redeclare class phpmailerException
--------------------------+-----------------------
 Reporter:  hovida        |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Mail          |     Version:  3.6
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------
Changes (by pixelbath):

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


Comment:

 Was able to reproduce this problem using a global error handler that
 included its own phpMailer script. Pluggable.php does check if the
 $phpmailer global is defined, but not whether the base class exists (which
 would mean it's been included, but not initialized). Submitting a patch.

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


More information about the wp-trac mailing list