[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2184: Array to string conversion
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4511: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4512: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4513: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
Support Incident Tracker Forum • View topic - Scheduler Time Problem

Scheduler Time Problem

Discuss and get help installing, using and configuring SiT!

Scheduler Time Problem

Postby LPost » Wed Apr 29, 2009 2:33 pm

System time is set just fine and the sit configuration time is set ok even as the user time, but if I look at the scheduler it just gives wrong times in the table.

I have putted debugging on and did get this:
Timezone: Etc/GMT+2
User UTC offset: 120
Date: Wed, 29 Apr 2009 12:26:01 -0200
Date now: Wed, 29 Apr 2009 12:26:01 -0200
LDate: Wed, 29 Apr 2009 16:26:01 +0000
LDate now (system): Wed, 29 Apr 2009 18:26:01 +0000
LDate now (utc): Wed, 29 Apr 2009 16:26:01 +0000

Where does that -0200 come from?

And I have an idea for you great developpers to build in a summertime option so I dont have to change it manually.
(Because my real time is GMT+1 and now I have set it to GMT+2 to get the right time.)

Thanks already.

Yours sincerely,
Louw Post
LPost
Newbie
Newbie
 
Posts: 6
Joined: Wed Apr 29, 2009 2:27 pm
Location: The Netherlands

Re: Scheduler Time Problem

Postby ivanlucas » Wed Apr 29, 2009 2:45 pm

Hi Louw,

Timezone support in SiT is still a bit funky I'm afraid, it's probably not had the testing and feedback it deserves for us to iron out all the wrinkles. I think that in your case your server timezone is UTC/GMT-2 and that's where the -0200 is coming from. SiT should be using the LDate (or localised date) for the schedule times but I don't think this is happening. Bug 577 appears to be reporting the same problem, unfortunately this is one that we've not got around to looking at yet so I can't be sure.

Are you having problems getting the schedules to run or is it just the that it's showing the wrong times?

LPost wrote:And I have an idea for you great developpers to build in a summertime option so I dont have to change it manually.
(Because my real time is GMT+1 and now I have set it to GMT+2 to get the right time.)


Yeah I agree, we'll do that.

Ivan
Ivan Lucas, Project Lead, Support Incident Tracker (SiT!) GPL. ......... Chat live on irc, #sit on freenode.
Help free software: Make a donation to the SiT! project or Join the Free Software Foundation as an Associate Member.
User avatar
ivanlucas
SiT! Developer
SiT! Developer
 
Posts: 998
Joined: Sun Feb 01, 2009 9:49 pm
Location: Derbyshire, UK

Re: Scheduler Time Problem

Postby LPost » Wed Apr 29, 2009 2:57 pm

Hi Ivan,

Thanks for the fast respond.

Yes I have some problems with the inbound email, we did managed to get 2 mails that where send yesterday, but after that we didn't get any other mail send this day. Now we tried as much as we can, like running the auto.php in Linux and setting imap to pop and vice versa, but nothing worked to get sended mail.

The inbox we are using supports POP, IMAP and optional SSL and we tried all of those (for SSL that /ssl setting).

Regards,
Louw Post
LPost
Newbie
Newbie
 
Posts: 6
Joined: Wed Apr 29, 2009 2:27 pm
Location: The Netherlands

Re: Scheduler Time Problem

Postby ivanlucas » Wed Apr 29, 2009 3:01 pm

Hi Louw,

Can you see from the debug log whether it is attempting to collect email? I presume not, but it would be good if you can confirm that. Is it trying to collect and failing or not trying at all?

Cheers,

Ivan
Ivan Lucas, Project Lead, Support Incident Tracker (SiT!) GPL. ......... Chat live on irc, #sit on freenode.
Help free software: Make a donation to the SiT! project or Join the Free Software Foundation as an Associate Member.
User avatar
ivanlucas
SiT! Developer
SiT! Developer
 
Posts: 998
Joined: Sun Feb 01, 2009 9:49 pm
Location: Derbyshire, UK

Re: Scheduler Time Problem

Postby LPost » Fri May 01, 2009 9:13 am

Hi Ivan,

I looked at the error log but it's clean :? . We did manage to get sended e-mail again this morning, weird enough it didn't work after that. I did get the mail after running auto.php in my browser after that I tried again it didn't worked and I didn't change anything.

About that server time, server time is set to the good time we have here (GMT+1).

Now I tried to change GMT+2 to GMT+1 (in SIT) and the following happenend:
Timezone: Etc/GMT+2
User UTC offset: 120
Date: Wed, 29 Apr 2009 12:26:01 -0200
Date now: Wed, 29 Apr 2009 12:26:01 -0200
LDate: Wed, 29 Apr 2009 16:26:01 +0000
LDate now (system): Wed, 29 Apr 2009 18:26:01 +0000
LDate now (utc): Wed, 29 Apr 2009 16:26:01 +0000

The above changed to this:
Timezone: Etc/GMT+1
User UTC offset: 120
Date: Wed, 29 Apr 2009 12:26:01 -0100
Date now: Wed, 29 Apr 2009 12:26:01 -0100
LDate: Wed, 29 Apr 2009 16:26:01 +0000
LDate now (system): Wed, 29 Apr 2009 18:26:01 +0000
LDate now (utc): Wed, 29 Apr 2009 16:26:01 +0000

And if I change the local time too Europe/Amsterdam it get a whole other time then GMT+1, it needs to be the same as far as i know.

Regards,
Louw
LPost
Newbie
Newbie
 
Posts: 6
Joined: Wed Apr 29, 2009 2:27 pm
Location: The Netherlands

Re: Scheduler Time Problem

Postby xerosis » Fri May 01, 2009 9:20 am

LPost wrote:Hi Ivan,

I looked at the error log but it's clean :? . We did manage to get sended e-mail again this morning, weird enough it didn't work after that. I did get the mail after running auto.php in my browser after that I tried again it didn't worked and I didn't change anything.


Can you enable debug mode (in the control panel) and run auto.php from the command-line (php auto.php)? I'm sure that there's a mail error which is preventing it working. There should definitely be something in the debug log after that, if there isn't your logging is setup properly.
User avatar
xerosis
SiT! Developer
SiT! Developer
 
Posts: 198
Joined: Sat Jan 24, 2009 10:36 pm

Re: Scheduler Time Problem

Postby LPost » Fri May 01, 2009 9:53 am

Hi xerosis,

Debug mode is enabled and is logging into a file. Earlier in the morning when the inbound mail did it once, it was writing something into the log, but I deleted it because there was no error or something in it only that he did get the mail, so sorry.

But I'll try to run it in the command line in Linux and post the log here when there is one.

Regards,
Louw
LPost
Newbie
Newbie
 
Posts: 6
Joined: Wed Apr 29, 2009 2:27 pm
Location: The Netherlands

Re: Scheduler Time Problem

Postby LPost » Fri May 01, 2009 9:56 am

Weird enough I tried to run it in the browser again and it did get the mail that was in the inbox of the email address. It did write the next in the error log:
Code: Select all
2009-05-01T08:41:12-02:00 /sit/auto.php Found 0 Incidents to close
2009-05-01T08:41:12-02:00 /sit/auto.php Calculating SLA times
2009-05-01T08:41:13-02:00 /sit/auto.php Found 1 email(s) to fetch, Archive folder set to: ''
2009-05-01T08:41:13-02:00 /sit/auto.php Retreiving message 1 from server
2009-05-01T08:41:13-02:00 /sit/auto.php Message 0 Email Type: 'html', Encoding: 'iso-8859-1'
2009-05-01T08:41:13-02:00 /sit/auto.php Array
(
    [Type] => html
    [Description] => HTML message
    [Encoding] => iso-8859-1
    [Data] => eafg

Met vriendelijke groet,

Louw Post

__________________________

Van Meijel Automatisering bv
Duit 8 - 8305 BB
Postbus 187 - 8300 AD
Emmeloord
Telefoon (0527) 61 47 67
Fax (0527) 61 32 71

mailto:lpost@vanmeijel.nl
http://www.vanmeijel.nl
__________________________
Indien u niet de beoogde ontvanger bent van deze e-mail, wilt u dan contact
opnemen met de verzender. Wij verzoeken u in dit geval tevens deze e-mail
inclusief meegezonden files van uw computer(systeem) te verwijderen en
niet prijs te geven of te kopiëren. Aan deze e-mail kunnen geen rechten
worden ontleend, tenzij de inhoud van het bericht door een daartoe bevoegd
persoon per reguliere post of telefax wordt bevestigd.


    [Alternative] => Array
        (
            [0] => Array
                (
                    [Type] => text
                    [Description] => Text message
                    [Encoding] => iso-8859-1
                    [Data] => eafg

Met vriendelijke groet,

Louw Post

__________________________

Van Meijel Automatisering bv
Duit 8 - 8305 BB
Postbus 187 - 8300 AD
Emmeloord
Telefoon (0527) 61 47 67
Fax (0527) 61 32 71

mailto:lpost@vanmeijel.nl
http://www.vanmeijel.nl
__________________________
Indien u niet de beoogde ontvanger bent van deze e-mail, wilt u dan
contact opnemen met de verzender. Wij verzoeken u in dit geval tevens deze
e-mail inclusief meegezonden files van uw computer(systeem) te verwijderen
en niet prijs te geven of te kopiëren. Aan deze e-mail kunnen geen rechten
worden ontleend, tenzij de inhoud van het bericht door een daartoe bevoegd
persoon per reguliere post of telefax wordt bevestigd.


                )

        )

    [Subject] => testmail12341
    [Date] => Fri, 1 May 2009 08:52:45 +0200
    [From] => Array
        (
            [0] => Array
                (
                    [address] => lpost@vanmeijel.nl
                    [name] => Louw Post
                )

        )

    [To] => Array
        (
            [0] => Array
                (
                    [address] => support@pc-algemeen.nl
                )

        )

    [Return-path] => Array
        (
            [0] => Array
                (
                    [address] => lpost@vanmeijel.nl
                )

        )

)


Edit: tried it again but it doesn't work anymore, is there some code that lets it run once an hour or something like that?

Regards,
Louw
LPost
Newbie
Newbie
 
Posts: 6
Joined: Wed Apr 29, 2009 2:27 pm
Location: The Netherlands

Re: Scheduler Time Problem

Postby xerosis » Fri May 01, 2009 10:06 am

It's supposed to run every minute. It could be that your scheduler time problems are causing it to set the next run time incorrectly however. When you are fetching mails though, if there's more than one waiting it should collect them all in one go, regardless of the scheduler so this is the bit that's confusing me. When you collected this email, was there more than one email waiting? If not then it looks like it's working okay mail-wise and it's just the scheduler time problems.
User avatar
xerosis
SiT! Developer
SiT! Developer
 
Posts: 198
Joined: Sat Jan 24, 2009 10:36 pm

Re: Scheduler Time Problem

Postby LPost » Fri May 01, 2009 10:12 am

Hi xerosis,

Yes it was one mail in the inbox, so it comes all to the Scheduler Time problem, that's why I openned this topic. Is this a problem in SIT or is it something we did wrong? Because all times (locale and profile time) are on GMT+2 and the Scheduler table shows a whole different time.

Thank you guys already for making progress in this problem.

Regards,
Louw
LPost
Newbie
Newbie
 
Posts: 6
Joined: Wed Apr 29, 2009 2:27 pm
Location: The Netherlands

Next

Return to Installing, Configuring and Using SiT!

Who is online

Users browsing this forum: No registered users and 2 guests

cron