Notification module - don't get any actual notifications...

markspiller

Joined: 2006-09-20
Posts: 22
Posted: Fri, 2014-02-28 22:46

Hi,

The java upload module stopped working in my gallery2 setup, so I took the plunge and migrated to another server and then did the upgrade to gallery3 - that process worked great, and the new gallery setup looks really nice!

However, I'm having problems getting notifications to work - I have the notification module activated, and enabled notifications on the top-level album (and confirmed that all sub-albums are subsequently enabled as a result) - but I don't actually receive any notifications when new photos are added. Is there somewhere else that I need to go to do additional configuration? I haven't been able to find anything, and the documentation
doesn't mention anything else...

Things I've checked:

- there are email_from and email_reply_to fields in the advanced settings
- that all of the users are associated with valid email addresses
- that notification emails aren't getting caught by a spam filter
- nothing related seems to be showing up in gallery3/var/logs

Thanks for any tips,
Mark

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2014-03-01 05:56

Most likely a mail issue on the server.
To check see if you can log out and use the ' Forgot your password? ' link to see if you get a email.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
markspiller

Joined: 2006-09-20
Posts: 22
Posted: Mon, 2014-03-03 22:38

Thanks for the tip - it indeed seems to be a general mail issue, the "forgot your password?" doesn't result in mail being received either. I've looked through the forums, which led me to the modules/gallery/libraries/Sendmail.php file, but I don't see anything obviously wrong there. I also get some errors in the logs, but they seem completely unrelated (and slightly baffling - not sure what is going on, could the issue with "system.execute()" be related to a mail process not being able to execute? Seems like *something* is failing every time a new picture is being added, so that might make sense?)

This is on dreamhost, which I'm given to understand is a pretty common hosting environment. Could it be that I need to specify an email address and a password for SMTP requests? I didn't see anywhere to specify such...

Thanks for any further tips!
Mark

2014-03-03 10:29:17 -08:00 --- error: Missing messages entry kohana/core.errors.403 for message kohana/core
2014-03-03 10:32:10 -08:00 --- error: Kohana_Exception [ 403 ]: @todo FORBIDDEN
/home/mspiller/chuah-spiller/gallery3/modules/gallery/helpers/access.php [ 202 ]
#0 /home/mspiller/chuah-spiller/gallery3/modules/gallery/helpers/access.php(425): access_Core::forbidden()
#1 /home/mspiller/chuah-spiller/gallery3/modules/gallery/controllers/uploader.php(41): access_Core::verify_csrf()
#2 [internal function]: Uploader_Controller->add_photo('8008')
#3 /home/mspiller/chuah-spiller/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Uploader_Contro
ller), Array)
#4 [internal function]: Kohana_Core::instance(NULL)
#5 /home/mspiller/chuah-spiller/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#6 /home/mspiller/chuah-spiller/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#7 /home/mspiller/chuah-spiller/gallery3/index.php(116): require('/home/mspiller/...')
#8 {main}
2014-03-03 10:32:10 -08:00 --- error: Missing messages entry kohana/core.errors.403 for message kohana/core
2014-03-03 10:38:33 -08:00 --- error: Kohana_Exception [ 403 ]: @todo FORBIDDEN
/home/mspiller/chuah-spiller/gallery3/modules/gallery/helpers/access.php [ 202 ]
#0 /home/mspiller/chuah-spiller/gallery3/modules/gallery/helpers/access.php(425): access_Core::forbidden()
#1 /home/mspiller/chuah-spiller/gallery3/modules/gallery/controllers/uploader.php(41): access_Core::verify_csrf()
#2 [internal function]: Uploader_Controller->add_photo('8136')
#3 /home/mspiller/chuah-spiller/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Uploader_Contro
ller), Array)
#4 [internal function]: Kohana_Core::instance(NULL)
#5 /home/mspiller/chuah-spiller/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#6 /home/mspiller/chuah-spiller/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#7 /home/mspiller/chuah-spiller/gallery3/index.php(116): require('/home/mspiller/...')
#8 {main}
2014-03-03 10:38:33 -08:00 --- error: Missing messages entry kohana/core.errors.403 for message kohana/core
2014-03-03 13:11:54 -08:00 --- error: File not found: snowcamping%2F2014-Trips-and-Events%2FGroup-4%2FP1020604
2014-03-03 13:50:59 -08:00 --- error: File not found: snowcamping%2F2014-Trips-and-Events%2FGroup-4%2FP1020547
2014-03-03 13:51:00 -08:00 --- error: File not found: snowcamping%2F2014-Trips-and-Events%2FGroup-1%2FMeiss-Lake%2F5-copy

 
markspiller

Joined: 2006-09-20
Posts: 22
Posted: Mon, 2014-03-03 22:49

Floridave,

Figured it out - based on your tip, I changed the email_from and reply-to fields in the gallery3 advanced settings (to an explicit dreamhost email address), and the notification and password reset emails started coming through! So that was indeed the issue, thanks for your help!

I'll assume that the above logged errors were related to that, unless they obviously look like something else to you. Thanks again for the tip!

Mark

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-03-04 01:13

glad you got it sorted. My to and from email or not on the same host so don't know why it started to work. Anyway glad it worked out for you.
For what it's worth, one of my hosts is Dream-host as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team