bugphpGroupWare - Bugs: bug #787, error when network connection is...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #787: error when network connection is down (probably caused by datetime connection)

Submitted by:  Michael Totschnig <totschnig>
Submitted on:  Mon 01 Jul 2002 07:17:39 PM UTC  
 
Item Group: 0.9.14 releaseCategory: API - phpGroupware API
Severity: 3 - NormalPriority: 5 - Normal
Status: FixedPrivacy: Public
Assigned to: Mark A Peters <skeeter>Open/Closed: Closed
Component Version: NoneOperating System: GNU/Linux - RedHat/Fedora
Reproducibility: OncePlanned Release: None
Fixed Release: 

Thu 04 Jul 2002 11:54:34 PM UTC, comment #1:

I've been playing with a couple of methods of doing this.

If you have turned on phpgw caching in the setup/config then all that is needed is a single pipe to the network to grab a true GMT time. phpGW will do some calculations with the servers time to identify the servers tz offset and store that offset into the cached data. That way we really only need to go through the network once, and the value I'm looking for will be cached. The only problem with this method is that any time the admin touches the setup application, that cache will be destroyed and rebuilt upon the next user access. Right now this is one of the safest I have found.

I may roll this process into the setup/config as some time in the future for .15 and above.

For a temporary solution enable CACHING in the setup/configuration. You will see a fairly significant speed enahancement when using that option.

Thanks,
Mark A Peters (Skeeter)

Mark A Peters <skeeter>
Project AdministratorIn charge of this item.
Mon 01 Jul 2002 07:17:39 PM UTC, original submission:

when the machine phpgroupware is running on loses temporarily
connection to the outside, the following error occurs

Warning: Supplied argument is not a valid File-Handle resource in
/var/www/phpgroupware/phpgwapi/inc/class.network.inc.php on line 81
Warning: Cannot add header information - headers already sent by (output started at
/var/www/phpgroupware/phpgwapi/inc/class.network.inc.php:81) in /var/www/phpgroupware/logout.php on line 58

I suppose that this is caused by the call
if($GLOBALS['phpgw']->network->open_port('129.6.15.28',13,15))
in class.datetime.inc.php.

Maybe this situation could be handled more gracefully? And couldn't the server phpgw asks for datetime be customized or are there alternative methods to get time information?

Michael Totschnig <totschnig>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 21 Aug 2002 11:58:28 PM UTCskeeterStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
  Closed on-=>-
Thu 04 Jul 2002 11:54:34 PM UTCskeeterAssigned toNone=>NA

Back to the top


Powered by Savane 3.1-cleanup1