phpgroupware-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-tracker] [Bug #787] error when network connection is down


From: nobody
Subject: [Phpgroupware-tracker] [Bug #787] error when network connection is down (probably caused by datetime connection)
Date: Wed, 21 Aug 2002 19:58:28 -0400

=================== BUG #787: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=787&group_id=509

Changes by: Mark A Peters <address@hidden>
Date: 2002-Aug-21 18:58 (CST6CDT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed




=================== BUG #787: FULL BUG SNAPSHOT ===================


Submitted by: totschnig                 Project: phpGroupWare                   
Submitted on: 2002-Jul-01 14:17
Category:  API - phpGWapi               Bug Group:  0.9.14 release              
Severity:  5 - Major                    Priority:  None                         
Resolution:  Fixed                      Assigned to:  skeeter                   
Status:  Closed                         Platform Version:  Linux - RedHat       
Reproducibility:  Once                  

Summary:  error when network connection is down (probably caused by datetime 
connection)

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?

Follow-up Comments
*******************

-------------------------------------------------------
Date: 2002-Jul-05 13:10             By: sascha
I have this error too, but on every page even if I enable caching.
Sascha

-------------------------------------------------------
Date: 2002-Jul-04 18:54             By: skeeter
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)




No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=787&group_id=509




reply via email to

[Prev in Thread] Current Thread [Next in Thread]