Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I've just upgraded to the current version (of April 11, 2013). After that the site stopped working with blank white screen. In the log there is an error:
PHP Fatal error: Call to undefined method PHPMailer::__destruct() in /path_to_site/sites/all/modules/phpmailer/includes/phpmailer.class.inc on line 162
Comment | File | Size | Author |
---|---|---|---|
#3 | Screen Shot 2013-05-23 at 11.21.50 PM.png | 28.9 KB | justdave |
#3 | Screen Shot 2013-05-23 at 11.26.13 PM.png | 8.05 KB | justdave |
#3 | phpmailer.issue1967364.patch | 1.38 KB | justdave |
Comments
Comment #1
igormagic CreditAttribution: igormagic commentedDidn't notice the requirement to upgrade the library, sorry
Comment #2
sunGlad you figured it out.
Please make sure to report positive/negative test confirmations in #1291750: PHPMailer 5.2.5 (new project home + download page + releases) — I'm considering to finally get a stable 3.0 out. ;)
Comment #3
justdave CreditAttribution: justdave commentedThis is still a bug (not a works as designed). Because:
The PHPMailer module adds a function to the "Status Report" page in Drupal which erroneously reports that everything is still okay when you have an outdated library.
Fixing this bug means making that status report function return an error if the installed version is too old.
Patch attached.
Comment #4
justdave CreditAttribution: justdave commentedComment #5
brunorios1 CreditAttribution: brunorios1 commentedusing phpmailer library 5.2.7
Comment #5.0
brunorios1 CreditAttribution: brunorios1 commentedcorrected spelling
Comment #6
Anjaro CreditAttribution: Anjaro commentedHi, i get this error to "Call to undefined method PHPMailer::__destruct()"
I installed the 5.1 lib and phpmailer fresh install, no upgrade.
When i read this thread, i dont understand what the solution is, because my english is not that good.
Can someone explain what the solution was, thanks.
Thanks
Anjaro
Comment #7
alexweber CreditAttribution: alexweber commented@Anjaro
Comment #8
justdave CreditAttribution: justdave commentedComment #9
turbogeek CreditAttribution: turbogeek commentedI was getting the same error as #5 with PHPMailer lib 5.27. Using 5.25 fixed the issue/error.
Comment #10
sunComment #12
sunHrm, looks like this wasn't really tested… #2268607: PHPMailer library version is wrongly reported to be incompatible
Comment #13
justdave CreditAttribution: justdave commentedhuh... I'm still running that patch and it says mine is up-to-date. weird.
Comment #15
leymannxI wonder where you get these versions cited in this thread here from. But maybe things got renamed. Looking at https://github.com/PHPMailer/PHPMailer/releases 5.2.26 currently seems to be the latest (and currently last) release in the 5.2 series: https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.26.