Author Topic: OG refuses to send notification to one user  (Read 2660 times)

mogliii

  • Newbie
  • *
  • Posts: 7
    • View Profile
OG refuses to send notification to one user
« on: May 06, 2010, 09:17:37 am »
Hi,

Im using Opengoo for almost half a year for private purpose. I have two active accounts + admin account.

My account never gets any notification emails. Except a notification is sent at the same cron-event to a different account, too. The other account gets emails.

I now narrowed it down. I created a new account, and it is getting all notifications it should. The cron.php says in that case
Code: [Select]
2010-05-06 11:30:01 - Sending notifications...
2010-05-06 11:30:03 - 2 notifications sent.

however when I am alone to receive a notification, the cron.php returns
Code: [Select]
2010-05-06 12:05:01 - Sending notifications...
2010-05-06 12:05:01 -  notifications sent.
Notice that it does not say
Code: [Select]
2010-05-06 12:05:01 -  0 notifications sent.
The smtp settings are correct and I can send test mails to the address set for my account.

How can I debug the user account? Is there something I can do in the database? I dont want to delete the account, since the settings and associations might get lost.

Forgot to mention. Currently running 1.6.2, but it was the same in 1.6 and 1.6.1

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: OG refuses to send notification to one user
« Reply #1 on: May 06, 2010, 02:45:24 pm »
How do you send notifications?
Have you turned DEBUG on?
Does the log have anything that might help solve the issue?

mogliii

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: OG refuses to send notification to one user
« Reply #2 on: May 07, 2010, 07:41:44 am »
hmmm. strangely my user gets email now too. But I found a different problem (that might be related to this):

Time/date setting of Server.

I made an event and set notification 30 min before. The notification email reads
Code: [Select]
From - Fri May  7 10:40:39 2010
...
Received: (qmail invoked by alias); 07 May 2010 09:05:04 -0000
Received: from unknown (EHLO localhost) [xxx.xxx.xxx.xxx]
  by mail.gmx.net (mp013) with SMTP; 07 May 2010 11:05:04 +0200
...
Subject: Event reminder
Date: Fri, 07 May 2010 09:05:01 +0000
....
------------------------------------------------------------
THIS IS A SYSTEM NOTIFICATION. DO NOT REPLY TO THIS EMAIL!
------------------------------------------------------------

Event "notificationtest" starts on "2010/05/07 09:30:00".
....
So I received the notificiation "after" the event.

The server is in Germany (GMT+2), I am in UK (GMT+1)
In ..environment/environment.php the following is set
Code: [Select]
ini_set('date.timezone', 'GMT');
if(function_exists('date_default_timezone_set')) {
        date_default_timezone_set('GMT');
} else {
        putenv('TZ=GMT');
} // if

I tried to change the GMT to Europe/Berlin, but then feng completely screwed the current time and date. A `date` on my server yields
Code: [Select]
Fr 7. Mai 12:28:51 CEST 2010but the cron.php throws
Code: [Select]
2010-05-07 10:30:01 - Sending notifications...
2010-05-07 10:30:01 -  notifications sent.
(same moment)

My questions:
1) What is the correct setting in the environment.php for my server location

2) Is it possible in feng to always show the timezone belonging to a date/time? Both in the notification email but also when setting up the event? Or at least put a label visible all the time in which timezone you are at the moment. Otherwise its very difficult to debug such problems.

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: OG refuses to send notification to one user
« Reply #3 on: May 07, 2010, 10:29:14 am »

My questions:
1) What is the correct setting in the environment.php for my server location

You should not modify environment.php. Just set the timezone for your users and/or for your company through the web interface.
If your server has the correct time,  notification should be sent correctly.


2) Is it possible in feng to always show the timezone belonging to a date/time? Both in the notification email but also when setting up the event? Or at least put a label visible all the time in which timezone you are at the moment. Otherwise its very difficult to debug such problems.


The "debugging feature" you mention is not implemented. However, the date is always related to the timezone you set in the user preferences (which is initially set from the company timezone).

When the cron is run, it does not use user preferences, so it logs the time in GMT-0000.