[wp-trac] [WordPress Trac] #25253: Fatal error: Cannot redeclare class phpmailerException
WordPress Trac
noreply at wordpress.org
Sun Sep 8 18:22:35 UTC 2013
#25253: Fatal error: Cannot redeclare class phpmailerException
-------------------------------+------------------------------
Reporter: hovida | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 3.6
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: needs-patch => reporter-feedback
Comment:
Could not reproduce the issue neither with the password reset form nor
with your plugin from the forum topic, it works fine for me.
The only place in core where `class-phpmailer.php` in included is
`wp_mail()`, but it first checks if `$phpmailer` global is defined, and it
uses `require_once` rather than just `require`: [source:tags/3.6/wp-
includes/pluggable.php#L223].
I can only reproduce this fatal error if I manually include `class-
phpmailer.php` twice outside of `wp_mail()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25253#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list