One of my users contacted me because he couldn't remember his password. I went in and changed it his password. It told me it was updated. I tried to login, no go. So I went back and put another password in. Again it said it was updated, but I couldn't login. So I went to where a user requests a new password and was going to send it to him. Below is what I got.
It should be noted that I did not change any settings and one day Piwigo decided to quit sending me a e-mail when someone uploaded. Don't know if that is all related or not, but here is the error message I got.
Fatal error: Uncaught Error: Class 'PHPMailer\PHPMailer\Exception' not found in /home/u542484636/domains/ournakedwives.com/public_html/include/phpmailer/PHPMailer.php:1917 Stack trace: #0 /home/u542484636/domains/ournakedwives.com/public_html/include/phpmailer/PHPMailer.php(1650): PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Sun, 19 J...', 'Welcome to Our ...') #1 /home/u542484636/domains/ournakedwives.com/public_html/include/phpmailer/PHPMailer.php(1486): PHPMailer\PHPMailer\PHPMailer->postSend() #2 /home/u542484636/domains/ournakedwives.com/public_html/include/functions_mail.inc.php(900): PHPMailer\PHPMailer\PHPMailer->send() #3 /home/u542484636/domains/ournakedwives.com/public_html/password.php(118): pwg_mail('Ortolicus@hotma...', Array) #4 /home/u542484636/domains/ournakedwives.com/public_html/password.php(259): process_password_request() #5 {main} thrown in /home/u542484636/domains/ournakedwives.com/public_html/include/phpmailer/PHPMailer.php on line 1917
Offline
To get rid of the fatal error when PHPMailer attempts to throw an exception apply this patch
https://github.com/Piwigo/Piwigo/pull/1 … c7cf6f9faa
for example with
cd YourPiwigoDirectory curl https://github.com/Piwigo/Piwigo/commit/def870793fd15796340293856745e4c7cf6f9faa.patch | patch -p1
However, this will only allow the exception to be thrown, the underlying cause why PHPMailer is not able to send the mail you'll have to figure out.
Offline
The link you posted shows some code. I am very unfamiliar with PHP and don't mess with anything. Am I to add this code to include/functions_mail.inc.php?
Offline
If in your Piwigo directory you executed the command given (curl ... | patch -p1) it would modify the source for you. But you can also manually edit include/functions_mail.inc.php and add the line
include_once(PHPWG_ROOT_PATH.'include/phpmailer/Exception.php');
before line 609 reading
include_once(PHPWG_ROOT_PATH.'include/phpmailer/SMTP.php');
which is what the patch does.
Offline
I have went to my servers website and downloaded all files and also downloaded a backup of my SQL files.
Can I delete everything, do a fresh install of Piwigo, then go back to me server and upload my files and SQL and have my site running on a fresh install?
Offline
And I did try that code, but it seems to make no difference
Offline
Is your problem that you cannot change passwords, or that you cannot send mail through piwigo?
Offline
I am not getting the notification emails I used to get when someone uploaded and I also can not change a users password
Offline
I went to register using another e-mail address. When I was when I clicked the button to register after I entered the information, this is the screen I got...
Fatal error: Uncaught Error: Class 'PHPMailer\PHPMailer\Exception' not found in /home/u542484636/domains/ournakedwives.com/public_html/include/phpmailer/PHPMailer.php:1917 Stack trace: #0 /home/u542484636/domains/ournakedwives.com/public_html/include/phpmailer/PHPMailer.php(1650): PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Sat, 25 J...', 'This is a multi...') #1 /home/u542484636/domains/ournakedwives.com/public_html/include/phpmailer/PHPMailer.php(1486): PHPMailer\PHPMailer\PHPMailer->postSend() #2 /home/u542484636/domains/ournakedwives.com/public_html/include/functions_mail.inc.php(901): PHPMailer\PHPMailer\PHPMailer->send() #3 /home/u542484636/domains/ournakedwives.com/public_html/include/functions_mail.inc.php(459): pwg_mail(Array, Array, Array) #4 /home/u542484636/domains/ournakedwives.com/public_html/include/functions_mail.inc.php(399): pwg_mail_admins(Array, Array) #5 /home/u542484636/domains/ournakedwives.com/public_html/include/functions_user.inc.php(228): pwg_mail_notification_admins('Registration of...', 'Us in /home/u542484636/domains/ournakedwives.com/public_html/include/phpmailer/PHPMailer.php on line 1917
However the user name/password combo did work to login
What happened? I have not changed a thing??
Offline