Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2016-12-29 09:47:01

mijan
Member
Registered: 2016-12-29
Posts: 1

Email notification problems

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

 

#2 2016-12-31 18:45:26

decaba
Member
Registered: 2016-06-19
Posts: 4

Re: Email notification problems

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

 

#3 2017-01-02 17:23:41

decaba
Member
Registered: 2016-06-19
Posts: 4

Re: Email notification problems

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:

Code:

Fatal error: Class 'SMTP' not found in /var/www/html/photos/include/phpmailer/class.phpmailer.php on line 1520

Offline

 

#4 2017-01-02 23:48:39

decaba
Member
Registered: 2016-06-19
Posts: 4

Re: Email notification problems

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

 

#5 2017-01-03 02:52:54

impulse0022
Member
Registered: 2017-01-03
Posts: 2

Re: Email notification problems

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

 

#6 2017-01-03 08:20:07

teekay
Member
Registered: 2013-06-12
Posts: 223

Re: Email notification problems

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:

Code:

include_once(PHPWG_ROOT_PATH.'include/phpmailer/PHPMailerAutoload.php');

Last edited by teekay (2017-01-03 08:20:42)

Offline

 

#7 2017-01-03 08:26:57

flop25
Piwigo Team
Registered: 2006-07-06
Posts: 6430
Website

Re: Email notification problems

hi
that seems to be an issue that some have reproduced on the French forum too

ps: thx teekay :)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2017-01-03 08:42:06

teekay
Member
Registered: 2013-06-12
Posts: 223

Re: Email notification problems

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

 

#9 2017-01-03 10:10:21

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 12969
Website

Re: Email notification problems

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']


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#10 2017-01-03 10:16:48

flop25
Piwigo Team
Registered: 2006-07-06
Posts: 6430
Website

Re: Email notification problems

how many 2.8.6 downloads?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#11 2017-01-03 10:21:01

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 12969
Website

Re: Email notification problems

~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 :-/


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#12 2017-01-03 15:49:28

impulse0022
Member
Registered: 2017-01-03
Posts: 2

Re: Email notification problems

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

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact