I am getting this error any time the website tries to mail anything; Fatal error: Cannot make non static method PHPMailer::RFCDate() static in class DrupalPHPMailer in /var/www/modules/phpmailer/includes/phpmailer.class.inc on line 15

This is my status report; Access to update.php Protected
Configuration file Protected
Cron maintenance tasks Last run 22 sec ago
You can run cron manually.
Database updates Up to date
Drupal core update status Up to date
File system Writable (private download method)
GD Image Filtering Low Quality / Poor Performance
The installed version of PHP GD does not support image filtering(desaturate, blur, negate, etc). It was probably compiled using the official GD libraries from http://www.libgd.org instead of the GD library bundled with PHP. You should recompile PHP --with-gd using the bundled GD library. See http://www.php.net/manual/en/image.setup.php. An implementation of imagefilter in PHP will be used in the interim.
GD Image Rotation Low Quality / Poor Performance
The installed version of PHP GD does not support image rotations. It was probably compiled using the official GD libraries from http://www.libgd.org instead of the GD library bundled with PHP. You should recompile PHP --with-gd using the bundled GD library. See: http://www.php.net/manual/en/image.setup.php. An implementation of imagerotate in PHP will used in the interim.
GD library 2.0 or higher
GD library 2.0 or higher
Image gallery Galleries defined
Image import Import directory /var/www/tmp/image exists.
Image module directories Exists (sites/tolstores.com/files/images).
Image toolkit The gd toolkit is installed.
ImageMagick advanced options ImageMagic image toolkit is not selected.
The ImageMagic image toolkit is not selected. The advanced options only apply to the ImageMagick toolkit. Select the image toolkit here.
Module and theme update status Out of date
There are updates available for one or more of your modules or themes. To ensure the proper functioning of your site, you should update as soon as possible. See the available updates page for more information.
MySQL database 5.0.51a
PHP 5.2.4-2ubuntu5.5
PHP memory limit 192M
PHP register globals Disabled
SOAP Client PHP5 SOAP or nuSOAP
Unicode library PHP Mbstring Extension
Update notifications Enabled
Upload progress Not enabled
Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (prefered) or to install APC.
Web server Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.5 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g
cURL Enabled
getID3() 1.7.7

It could be that I found the problem, I had Webform Reports enabled and it seems to have been interfering with some other modules. I will do some more testing to find out.

Comments

smk-ka’s picture

Title: 6.x-2.0 » Fatal error: Cannot make non static method PHPMailer::RFCDate() static
Priority: Normal » Critical
Status: Active » Postponed (maintainer needs more info)

Which version of PHPMailer did you download from Sourceforge, 2.3 (or older) or the newer 5.0.0 release? Note that this module has only been successfully tested with the older 2.x versions.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Sorry, without further information this issue can only be marked as won't fix.

Feel free to re-open this issue if you want to provide further information. Thanks.

quikone’s picture

I am using v2.3 not 5.0

Thanks,

Ron

nandoz’s picture

Hi, I had same problem..
in /modules/phpmailer/includes/phpmailer.class.inc you must change the function declaration:

before: public static function RFCDate() {

after: public function RFCDate() {

bye!

Nando

LiveWire’s picture

Was this resolved? Please share. I am having the same troubles

quchidru’s picture

truedat101’s picture

This is a docbug for this module, no? If the answer is to grab v2.3 of PHPMailer from the sourceforge, then the README should be explicit about this. Otherwise, readme docs only state:

* PHPMailer for PHP5/6
http://phpmailer.codeworxtech.com

Thomas_Zahreddin’s picture

Version: 6.x-2.0 » 6.x-2.2

same error with 6.x-2.2 - i suppose the link in the Readme is old.