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....
http://piwigo.org/forum/viewtopic.php?id=26069
Offline
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
PHP: 5.5.9-1ubuntu4.20
MySQL: 5.5.53-0ubuntu0.14.04.1
Offline
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
Offline
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:
$conf['smtp_host']
$conf['smtp_user']
$conf['smtp_password']
$conf['smtp_secure']
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.
Offline
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)
Offline
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:
include_once(PHPWG_ROOT_PATH.'include/phpmailer/PHPMailerAutoload.php');
Last edited by teekay (2017-01-03 08:20:42)
Offline
hi
that seems to be an issue that some have reproduced on the French forum too
ps: thx teekay :)
Offline
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
Offline
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']
Offline
how many 2.8.6 downloads?
Offline
~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 :-/
Offline
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.
Offline