I have my gallery setup so that only registered users can view albums. So hitting http://mysite/gallery3/ takes you to the login page. The problem is the forgot password link only appears in the DHTML dialog and not the default form. ie: Users have to click the word 'Login', top right, to get the additional login dialog in order to see the forgot password link.
When I click reset password nothing seems to happen and I can still login with the old one. Is this because email is not setup or working? How do I set it up and test?
Thanks
Scott
Posts: 27300
Filed a ticket:
http://sourceforge.net/apps/trac/gallery/ticket/620
You should get a green confirmation similar to:
[img]http://gallery.menalto.com/files/loginotoGallery.png[/img]
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 27300
login as admin,
Admin -> Users/Groups
you should be able to edit your profile.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 6
Thanks for creating the ticket.
RE: Email
I am not refering to individual users email but rater the server is not sending emails. How do I setup the server and test that the server can send mails. Looking through the logs I get the following errors:
--- error: Uncaught Exception: @todo SEND_MAIL_FAILED in file modules/gallery/libraries/Sendmail.php on line 89
This explains why I don't get the reset email but I don't get the green "Password reset email sent" notification either it just seems to paralyse the dialogue box. FYI: When I enable notifications any Album Edit, add photo's etc creates ton's of errors in the log, expected since email is not working, but also seems to paralyse various dialogue boxes too. Seems to not be passing over the email error but rather gets stuck on it.
Keep up the good work. (I sort of understand what goes into a project like this and it is much appreciated!)
Scott
Posts: 722
Is mail configured properly in PHP?
http://www.w3schools.com/PHP/php_ref_mail.asp
Is the "From" address configured properly in Gallery?
http://codex.gallery2.org/Gallery3:Modules:notification#Installation_.2F_Configuration
Posts: 6
I love simple solutions!
sudo apt-get install sendmail
Notifications work, password resets work ...
Perhaps the installer should check for an MTA. Would any MTA work? (Sendmail, postfix, qmail...)
Perhaps also useful to look at the email 'function' and have a graceful error if email is not working. eg below:
Email was not working, no MTA installed, gallery behaved in the following way:
Reset password would not send email but would also hang the form.
With notifications turned on I could create an album and upload photo's. Everything worked except the photo's would not display. Checking the logs I saw the email errors. Checking the file system I saw that the album folder had not been created and neither had any photo's actually uploaded. (Browser interface had no indication of this.)
Editing and album did strange things...
I don't know the code but it appears as if the database was updated then the notification script tried to run but errored and so the file system was never touched. No error was presented to the user either.
With email still not working I turned off notification and I could create albums and upload photos. Verified on the file system too.
After installing an MTA all of the above resolved.
Probably not something most users will come across very often but had me confused for a while.
Scott
Posts: 27300
the installer or module should have a test... please file a feature request.
But most servers are configured properly to have mail work.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 6
Ticket created:
https://sourceforge.net/apps/trac/gallery/ticket/624
Scott