Announcement

#1 2022-06-04 21:03:17

Audiomonk
Member
2022-06-04
3

Mailer error

Hi

Been using Piwigo for some time, moved over to a new host recently. Migration went ok, except now am getting mail errors when I try to use notification. I've set it to the correct settings via the localfiles plugin, and the settings were given by the webhost. Same error each time, webhost said it was a problem with the PHPmailer files. So I replaced those with fresh copies, and still get the same error.

Thinking it may have been a webhost mail problem, I tried the settings for a 3rd party mail service, and just get this same message repeatedly.

It's an uncaught exception error. (I've replaced path with "piwigo root" here)

Fatal error: Uncaught Error: Class 'PHPMailer\PHPMailer\Exception' not found in /piwigo root/include/phpmailer/PHPMailer.php:2146 Stack trace: #0 /piwigo root/include/phpmailer/PHPMailer.php(1970): PHPMailer\PHPMailer\PHPMailer->smtpConnect(Array) #1 /piwigo root/include/phpmailer/PHPMailer.php(1648): PHPMailer\PHPMailer\PHPMailer->smtpSend('Date: Sat, 4 Ju...', 'JWildfire Galle...') #2 /piwigo root/include/phpmailer/PHPMailer.php(1486): PHPMailer\PHPMailer\PHPMailer->postSend() #3 /piwigo root/include/functions_mail.inc.php(901): PHPMailer\PHPMailer\PHPMailer->send() #4 /piwigo root/admin/notification_by_mail.php(390): pwg_mail(Array, Array) #5 /piwigo root/admin/notification_by_mail.php(555): do_action_send_mail_notification('send', Array, '<p>\r\n\tChecking ...') #6 /home/sites/ in /piwigo root/include/phpmailer/PHPMailer.php on line 2146


Pulling my hair out trying to solve this, as it breaks all the lost password/registration functions also. I've looked here in the forums, stacktrace, and lots of google searching. As I say webhost said to download phpmailer and replace files on server with those. It did exactly the same, and I've since replaced them back with the ones included with piwigo.


(Copy here your environment details, found on your Piwigo page [Administration > Tools > Maintenance])

Piwigo 12.2.0
Operating system: Linux
PHP: 7.2.34 (Show info) [2022-06-04 19:55:35]
MySQL: 5.5.5-10.4.25-MariaDB-log [2022-06-04 19:55:35]
Graphics Library: ImageMagick 6.9.10-68

Piwigo URL: https://jwildfire.art

Offline

 

#2 2022-06-04 21:18:16

erAck
Only trying to help
2015-09-06
1998

Re: Mailer error

Searching the forum for PHPMailer Exception might had lead you to [Forum, post 183247 by erAck in topic 31942] Not able to send email.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2022-06-05 12:53:09

Audiomonk
Member
2022-06-04
3

Re: Mailer error

Thanks, sorry yes I had seen that discussion and tried the suggestion, I went to the github and saw to add a line before the namespace to include exception. It stops the php error, but still not sending the mail.

Offline

 

#4 2022-06-08 10:43:39

Audiomonk
Member
2022-06-04
3

Re: Mailer error

My webhost has been trying to solve this problem also, and so far they've suggested replacing the phpmailer with the one from source. I did that, but it made no difference. Altering the line above namespace, stops the php errors as I mentioned, but piwigo still not sending mail. Where can I find an error log for the mail send? Maybe that will give some clue as to what the problem is.

Offline

 

#5 2022-06-08 11:02:23

erAck
Only trying to help
2015-09-06
1998

Re: Mailer error

You can log all PHP errors and warnings to file like in [Forum, post 180778 by erAck in topic 31258] Error Message.
Which may not help if the SMTP handshake itself fails unless PHPMailer logs that.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact