Since the last update (I think it was from 2.8.0 or 2.8.1 to 2.8.4) i get an error message, when I try to send email notifications for new albums.
The error message is as following:
Fatal error: Class 'SMTP' not found in /data/web/e32037/html/apps/piwigo-7536/include/phpmailer/class.phpmailer.php on line 1478
Piwigo version: 2.8.4
PHP version: 5.6
MySQL version: 5.0.11
Any idea, what could be wrong? I have checked this forum for any similar post, but could not find one....
I have read the following, but its not my case....
Same problem here. I updated Piwigo from 2.8.2 to 2.8.4 and now notifications and "forgotten your password" functions give me this error:
Fatal error: Class 'SMTP' not found in /var/www/html/photos/include/phpmailer/class.phpmailer.php on line 1478
Status update: I one-clicked updated to 2.8.5 and now when I try the "forgotten your password" function, I get the same error but with a different line number:
Fatal error: Class 'SMTP' not found in /var/www/html/photos/include/phpmailer/class.phpmailer.php on line 1520
I'm all set now. When I first got going with Piwigo, I had used LocalFiles Editor to include non-blank values for the following in my local/config/config.inc.php file:
After remarking these out, email worked again. I'm guessing it's because I installed Postfix on my server a few weeks ago. I didn't notice this earlier because until recently I was the only one uploading photos and didn't need email for notifications or password changes. Recently, though, I installed the community plugin with the hopes of making it so family members can add photos to my website.
I'm having the same problem on PHP 5.6 with a site hosted by Dreamhost. Ran into problem after upgrading to Piwigo 2.8.5. Any ideas?
Looking further I am also using the $conf['smtp_host'] settings so I don't send blank values. Pulled config options from here when I originally setup Piwigo:
[Github] Piwigo file include/config_default.inc.php
Last edited by impulse0022 (2017-01-03 03:04:39)
This is caused by the recent PHPMailer update in Piwigo. The previous version was _really_ old.
Could you please verify a possible fix?
In your Piwigo installation folder, edit file include/functions_mail.php. In line 610 replace "class.phpmailer.php" with "PHPMailerAutoload.php" so it looks like:
Last edited by teekay (2017-01-03 08:20:42)
that seems to be an issue that some have reproduced on the French forum too
ps: thx teekay :)
Issue reproduced and fix verified on my own server. Pull request is out: https://github.com/Piwigo/Piwigo/pull/599
Sorry for not testing this properly beforehand. Sendmail transport was fine, the issue only occurs when at least $conf['smtp_host'] is set in local/config/config.inc.php
So now comes the question : 2.8.6 or not? so many releases within such a short time is not good (and very time consuming) Or we can simply tell how to fix this issue for the few users using $conf['smtp_host']
how many 2.8.6 downloads?
~1500 downloads for version 2.8.5. In my opinion, it's too late to modify version 2.8.5. I really don't like to do that, it's not clean at all :-/
I have confirmed that modifying include/functions_mail.inc.php as noted by teekay does indeed fix the issue in Piwigo 2.8.5.
In my opinion this probably needs to be included in a 2.8.6 release so others don't run into the same issue.