serendipity_event_forgotpassword

Found a bug? Tell us!!
Post Reply
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

serendipity_event_forgotpassword

Post by JWalker »

serendipity_event_forgotpassword:
Something that I think are buggs or improvement needs.

1) In the form that appears after 'Forgot pasword' is clicked: When the visitor enters username, that is not registered at all (nonexistent in DB) PLUGIN_EVENT_FORGOTPASSWORD_EMAIL_DB_ERROR message appears ('Cannot connect to Database'). In fact there is connection to the database but no such user is available. May be these two situations should be separated and two messages to appear : 'No such user' and 'Cannot connect to Database' ?

2) In the situation of no net/no internet, here are the messages that appear (and come from PHP).
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity_event_forgotpassword

Post by garvinhicking »

I've fixed that MB_send_mail error within the core s9y version, since the charset doesn'T seem to be encoded within double-quotes.

However, without a connection to the net, no mail can be sent. I think we can expect that serendipity is able to send a mail, but a "pretty error" would mabe be nice.

I'll leave that up to the plugin author, hope he's reading this. :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Re: serendipity_event_forgotpassword

Post by JWalker »

garvinhicking wrote:I've fixed that MB_send_mail error within the core s9y version, since the charset doesn'T seem to be encoded within double-quotes.
My test installation was too old, may be a month or more. Today downloaded the last nighly.
garvinhicking wrote:However, without a connection to the net, no mail can be sent. I think we can expect that serendipity is able to send a mail, but a "pretty error" would mabe be nice.
Yes it sends mails, but tried to see what happens when there is no way to send - these "OS" messages are not pretty. May be the author reads this, indeed. :)

Regards
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

1) In the form that appears after 'Forgot pasword' is clicked: When the visitor enters username, that is not registered at all (nonexistent in DB) PLUGIN_EVENT_FORGOTPASSWORD_EMAIL_DB_ERROR message appears ('Cannot connect to Database'). In fact there is connection to the database but no such user is available. May be these two situations should be separated and two messages to appear : 'No such user' and 'Cannot connect to Database'?
Thanks JWalker.
i will fix that asap :)
May be the author reads this, indeed.
:wink:
My Blog, powered by s9y is http://oxygenws.com/blog/
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

updated, could you test it please?

(i update it now, wait for CVS updates)
My Blog, powered by s9y is http://oxygenws.com/blog/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

tested: OK

Post by JWalker »

tested:

It recognizes invalid userame and the new string PLUGIN_EVENT_FORGOTPASSWORD_USER_NOT_EXIST appears. Not tested with 'db connection is missing' but it appears it will work.

My configuration is on a single box: Apache+PHP+MySQL+database+Firefox browser. Mail SMTP is on another box in our intranet. Regarding this, when I tested with valid username and unplugged ethernet cable it does not find SMTP -- that is right. Here is the message that appears:

Code: Select all

Warning: mb_send_mail() [function.mb-send-mail]: Failed to connect to mailserver at "192.168.24.201" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\biz\apps\s9y\include\functions.inc.php on line 403
This message is a result of PHP mail() call. (php.ini is OK). I don't know if this can be replaced with more user friednly message and if it can, where it should be done: in the plugin or in include/functions.inc.php.

Uploaded updated BG files just now.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: tested: OK

Post by garvinhicking »

I think that error message is a good warning string that tells the user what is wrong, and it shouldn't ever happen on live blogs so I do think we could leave it that way...

$0.02 :-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

It recognizes invalid userame and the new string PLUGIN_EVENT_FORGOTPASSWORD_USER_NOT_EXIST appears.
:D those are Garvin changes (mine was wrong) :)
thanks Garv.
My Blog, powered by s9y is http://oxygenws.com/blog/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Re: tested: OK

Post by JWalker »

garvinhicking wrote:I think that error message is a good warning string that tells the user what is wrong, and it shouldn't ever happen on live blogs so I do think we could leave it that way...

$0.02 :-)

Regards,
Garvin
Yes ... this is beyond s9y; the end user should not see this -- it is up to site administrator to get the blog working. 10x :)
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
Post Reply