Announcement

#1 2022-06-19 18:30:43

hackindave
Member
2021-07-11
36

User Password

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

 

#2 2022-06-20 13:27:13

erAck
Only trying to help
2015-09-06
1395

Re: User Password

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

Code:

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.


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

Offline

 

#3 2022-06-20 22:51:37

hackindave
Member
2021-07-11
36

Re: User Password

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

 

#4 2022-06-21 13:08:37

erAck
Only trying to help
2015-09-06
1395

Re: User Password

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

Code:

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

before line 609 reading

Code:

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

which is what the patch does.


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

Offline

 

#5 2022-06-22 17:53:11

hackindave
Member
2021-07-11
36

Re: User Password

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

 

#6 2022-06-22 18:24:23

hackindave
Member
2021-07-11
36

Re: User Password

And I did try that code, but it seems to make no difference

Offline

 

#7 2022-06-23 08:11:47

I_am_cats
Member
2022-04-14
27

Re: User Password

Is your problem that you cannot change passwords, or that you cannot send mail through piwigo?

Offline

 

#8 2022-06-24 16:16:26

hackindave
Member
2021-07-11
36

Re: User Password

I am not getting the notification emails I used to get when someone uploaded and I also can not change a users password

Offline

 

#9 2022-06-25 13:18:57

hackindave
Member
2021-07-11
36

Re: User Password

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

 

Board footer

Powered by FluxBB

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