OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



cannot send reset password confirmation email

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Re: cannot send reset password confirmation email

Postby asmecher » Mon Apr 19, 2010 10:21 am

Hi Cuneyt,

Depending on your software version, it may be in lib/pkp/classes/mail/Mail.inc.php.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8307
Joined: Wed Aug 10, 2005 12:56 pm

Re: cannot send reset password confirmation email

Postby birkok » Mon Apr 19, 2010 10:30 am

I tried the file you wrote but get "testing" word again, unfortunately.
birkok
 
Posts: 80
Joined: Sat Sep 22, 2007 5:12 am

Re: cannot send reset password confirmation email

Postby asmecher » Mon Apr 19, 2010 1:59 pm

Hi Cuneyt,

And in the mail(...) function in lib/pkp/classes/core/String.inc.php?

What are the settings of show_stacktrace and display_errors in your config.inc.php file?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8307
Joined: Wed Aug 10, 2005 12:56 pm

Re: cannot send reset password confirmation email

Postby birkok » Thu Apr 22, 2010 10:54 am

For the String.inc.php "testing" is seen

show_stacktrace and display_errors was off. I changed on, but no errors shown.
birkok
 
Posts: 80
Joined: Sat Sep 22, 2007 5:12 am

Re: cannot send reset password confirmation email

Postby asmecher » Thu Apr 22, 2010 10:58 pm

Hi Cuneyt,

Does the "mail" function called from String::mail ever return, or does the script die at that point?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8307
Joined: Wed Aug 10, 2005 12:56 pm

Re: cannot send reset password confirmation email

Postby birkok » Sat Apr 24, 2010 10:13 am

I am not sure that I am correctly understand you, because there is not such a code: "String::mail" in String.inc.php file.

I would appreciated if you send me coded testing file that I can replace and test.
birkok
 
Posts: 80
Joined: Sat Sep 22, 2007 5:12 am

Re: cannot send reset password confirmation email

Postby asmecher » Sat Apr 24, 2010 4:49 pm

Hi Cuneyt,

"String::mail" is short-hand for "the mail function in the String class".

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8307
Joined: Wed Aug 10, 2005 12:56 pm

Re: cannot send reset password confirmation email

Postby birkok » Sat May 01, 2010 9:51 am

I have finally get the error codes as follows.
When I send a TURKISH acknowledge mail to a reviewer, next page gives following message. "Article Review Acknowledgement" subjected mail in English is sent normally. Only when site language changed to Turkish, problem appears.

____________________________
ojs2 has produced an error Message: WARNING: mail(): Bad parameters to mail() function, mail not sent. In file: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/core/String.inc.php At line: 221 Stacktrace: File: (unknown) line (unknown) Function: PKPApplication->errorHandler(2, "mail(): Bad parameters to mail() function, mail not sent.", "/hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classe...", 221, Array(5)) File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/core/String.inc.php line 221 Function: mail(""Nülüfer Erbil" <nilufererbil@mynet.com>", "=?UTF-8?B?W1XEsEJEXSDDh2FsxLHFn21hecSxIGRlxJ9lcmxlbmRpcmRpxJ9pbm...", "Sayın Nülüfer Erbil: Uluslararası İnsan Bilimleri Dergisi ...", "Content-Type: text/plain; charset="utf-8" X-Mailer: Public Knowl...", "-f editor@insanbilimleri.com") File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/mail/Mail.inc.php line 436 Function: String->mail(""Nülüfer Erbil" <nilufererbil@mynet.com>", "=?UTF-8?B?W1XEsEJEXSDDh2FsxLHFn21hecSxIGRlxJ9lcmxlbmRpcmRpxJ9pbm...", "Sayın Nülüfer Erbil: Uluslararası İnsan Bilimleri Dergisi ...", "Content-Type: text/plain; charset="utf-8" X-Mailer: Public Knowl...", "-f editor@insanbilimleri.com") File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/mail/PKPMailTemplate.inc.php line 238 Function: Mail->send() File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/classes/mail/MailTemplate.inc.php line 164 Function: PKPMailTemplate->send(False) File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/classes/mail/ArticleMailTemplate.inc.php line 73 Function: MailTemplate->send(False) File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/classes/submission/sectionEditor/SectionEditorAction.inc.php line 461 Function: ArticleMailTemplate->send() File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/pages/sectionEditor/SubmissionEditHandler.inc.php line 655 Function: SectionEditorAction->thankReviewer(Object(SectionEditorSubmission), "870", True) File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/core/PKPPageRouter.inc.php line 171 Function: SubmissionEditHandler->thankReviewer(Array(1), Object(Request)) File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/core/Dispatcher.inc.php line 130 Function: PKPPageRouter->route(Object(Request)) File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/core/PKPApplication.inc.php line 155 Function: Dispatcher->dispatch(Object(Request)) File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/index.php line 66 Function: PKPApplication->execute() Server info: OS: Linux PHP Version: 5.2.12 Apache Version: N/A DB Driver: mysql DB server version: 5.0.67-log
There was an error sending this email. Please check your mail log (/var/log/maillog).
Stack Trace:
File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/mail/PKPMailTemplate.inc.php line 238
Function: Mail->send()

File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/classes/mail/MailTemplate.inc.php line 164
Function: PKPMailTemplate->send(False)

File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/classes/mail/ArticleMailTemplate.inc.php line 73
Function: MailTemplate->send(False)

File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/classes/submission/sectionEditor/SectionEditorAction.inc.php line 461
Function: ArticleMailTemplate->send()

File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/pages/sectionEditor/SubmissionEditHandler.inc.php line 655
Function: SectionEditorAction->thankReviewer(Object(SectionEditorSubmission), "870", True)

File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/core/PKPPageRouter.inc.php line 171
Function: SubmissionEditHandler->thankReviewer(Array(1), Object(Request))

File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/core/Dispatcher.inc.php line 130
Function: PKPPageRouter->route(Object(Request))

File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/lib/pkp/classes/core/PKPApplication.inc.php line 155
Function: Dispatcher->dispatch(Object(Request))

File: /hsphere/local/home/birkok/insanbilimleri.com/ojs/index.php line 66
Function: PKPApplication->execute()
birkok
 
Posts: 80
Joined: Sat Sep 22, 2007 5:12 am

Re: cannot send reset password confirmation email

Postby asmecher » Sat May 01, 2010 4:08 pm

Hi Cuneyt,

This appears to be a PHP 4.x bug. If possible, try upgrading to PHP 5.x; otherwise, try configuring your mail to be delivered via SMTP (see config.inc.php).

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8307
Joined: Wed Aug 10, 2005 12:56 pm

Re: cannot send reset password confirmation email

Postby birkok » Sun May 02, 2010 3:49 am

It is PHP 5
Here are info from OJS's System Information page:
OS platform Linux
PHP version 5.2.12
Apache version Not available
Database driver mysql
Database server version 5.0.67-log

Unfortunately, we use google app., smtp cannot be configured for google. I tried configuration instruction in this forum, but it just didn't work.


I have also noticed that there is a word "ojs2" in error code I have send above (like: "ojs2 has produced an error Message: WARNING: mail():...... ...)

Is "ojs2" word normal or shouldn't it only "ojs"?
I had a temporally installation directory when installing. Could it be remain by mistaken?
birkok
 
Posts: 80
Joined: Sat Sep 22, 2007 5:12 am

Re: cannot send reset password confirmation email

Postby asmecher » Sun May 02, 2010 4:33 pm

Hi Cuneyt,

"ojs2" appearing in the error messages is normal.

Does your web host offer SMTP services? This will be by far the easiest way of working around the problem.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8307
Joined: Wed Aug 10, 2005 12:56 pm

Re: cannot send reset password confirmation email

Postby birkok » Mon May 03, 2010 10:21 am

I tried web host's smtp, but no mail send.
Thunderbird is able to send via host's smtp configurations. But OJS cannot send with same configurations (user, server, port, etc). I tried all of options (plain, login, etc.)
birkok
 
Posts: 80
Joined: Sat Sep 22, 2007 5:12 am

Re: cannot send reset password confirmation email

Postby asmecher » Mon May 03, 2010 11:31 am

Hi birkok,

I would suggest debugging that configuration further. There are a few threads on the forum about TLS and SMTP; perhaps that is what you need to try, depending on your host's SMTP configuration.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8307
Joined: Wed Aug 10, 2005 12:56 pm

Re: cannot send reset password confirmation email

Postby vijeshr » Tue Mar 29, 2011 2:30 am

asmecher wrote:Hi Cuneyt,

The next best way to debug a blank page is to figure out where PHP is dying. Find the requestResetPassword function in pages/login/LoginHandler.inc.php and add the following line at the top of the function (just below the opening brace):
Code: Select all
die('Testing');
This will break the password reset function, but will tell us whether or not you're getting to that point before PHP dies. Let me know if you see the "Testing' error message when you try the reset. If you do, then move it down to just above the $mail->send() function call and try again.

If you see it there, then proceed into the send() function of classes/mail/Mail.inc.php and see if you can figure out likewise where in that function PHP is dying, or if it's getting through to the String::mail(...) call near the bottom.

Unfortunately this is one of the more painful aspects of debugging PHP.

Regards,
Alec Smecher
Public Knowledge Project Team


Dear Alec,
We also face the same problem of "cannot send reset password confirmation email" however system is telling "A confirmation has been sent to your email address. Please follow the instructions in the email to reset your password." but no email arrived.

We tried to debug by trying the above, but still PHP is not dying. Plz help.

Regds,
VIJESH.R
vijesh.r1@gmail.com
vijeshr
 
Posts: 25
Joined: Sat Mar 26, 2011 5:34 am

Re: cannot send reset password confirmation email

Postby solty » Thu Nov 07, 2013 8:39 am

Hello Alec,
During the last three days, every day I was received "password reset mail" without my request and confirmation link.
Mail contain my user name and new generated password.
After the received this mail, I can login only generated password!

I was not remembered new system setting in the last days, I was not made anything during this period.

And also I see this "Dear {$authorName}," in the mail, without my username...
why I receive directly password without confirmation mail?

This is password reset mail template...

Dear {$authorName},
Your password has been successfully reset for use with the {$siteTitle} web site. Please retain this username and password, as it is necessary for all work with the journal.

Your username: {$username}
Your new password: {$password}

Thank for your support...
solty
 
Posts: 139
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Previous

Return to OJS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest