From owner-freebsd-ports@FreeBSD.ORG Fri Apr 16 06:32:38 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27A34106564A for ; Fri, 16 Apr 2010 06:32:38 +0000 (UTC) (envelope-from m@micheas.net) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id DFA7A8FC08 for ; Fri, 16 Apr 2010 06:32:37 +0000 (UTC) Received: by gyh20 with SMTP id 20so1193288gyh.13 for ; Thu, 15 Apr 2010 23:32:37 -0700 (PDT) Received: by 10.150.237.5 with SMTP id k5mr1386517ybh.228.1271399557001; Thu, 15 Apr 2010 23:32:37 -0700 (PDT) Received: from [10.0.1.6] (c-24-5-79-127.hsd1.ca.comcast.net [24.5.79.127]) by mx.google.com with ESMTPS id 20sm687408ywh.48.2010.04.15.23.32.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 15 Apr 2010 23:32:36 -0700 (PDT) From: Micheas Herman To: troy@twisted.net In-Reply-To: <4BC7FE58.6050008@twisted.net> References: <201004071800.o37I01Du092056@repoman.freebsd.org> <20100407190533.C545C5A905F@jester1b.ixsystems.com> <4BC5542C.4080500@twisted.net> <4BC55B66.8020409@FreeBSD.org> <1271226426.28425.57098.camel@vcampaign> <4BC7FE58.6050008@twisted.net> Content-Type: text/plain; charset="UTF-8" Date: Thu, 15 Apr 2010 23:32:33 -0700 Message-ID: <1271399553.15458.2927.camel@vcampaign> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: After horde 3.3.6_1 upgrade - php error cannot modify header information - headers already sent X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: m@micheas.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2010 06:32:38 -0000 On Fri, 2010-04-16 at 01:06 -0500, Troy wrote: > Michaes, > Thanks for the reply. I changed the output_buffering setting, but I > already was running 1.11.6 of Pear.log and I'm still getting that > warning. > > This is also showing up and appears to be the root of why horde is not > working. Do you know how to fix this? in php 5.3 date.timezone must be set to a valid time zone. http://us.php.net/manual/en/timezones.php gives you a list of valid time zones. That should work. > > Fatal error: Uncaught exception 'Exception' with message > 'DateTime::__construct() [ href='datetime.--construct'>datetime.--construct]: It is not safe > to rely on the system's timezone settings. You are *required* to use > the date.timezone setting or the date_default_timezone_set() function. > In case you used any of those methods and you are still getting this > warning, you most likely misspelled the timezone identifier. We > selected 'America/Chicago' for 'CDT/-5.0/DST' instead' > in /usr/local/www/horde/lib/Horde/Date.php:537 Stack trace: > #0 /usr/local/www/horde/lib/Horde/Date.php(537): > DateTime->__construct() > #1 /usr/local/www/horde/lib/Horde/Date.php(588): > Horde_Date->format('Y-m-d H:i:s') > #2 /usr/local/www/horde/lib/Horde/Alarm/sql.php(143): > Horde_Date->sqlDateTime() > #3 /usr/local/www/horde/lib/Horde/Alarm.php(275): > Horde_Alarm_sql->_list(false, Object(Horde_Date)) > #4 /usr/local/www/horde/lib/Horde/Alarm.php(301): > Horde_Alarm->listAlarms(false, NULL, true, true) > #5 /usr/local/www/horde/lib/Horde/Notification.php(209): H > in /usr/local/www/horde/lib/Horde/Date.php on line 537 > > > > > pear-Log-1.11.6 PEAR logging utilities > > > > On 04/14/2010 1:27 AM, Micheas Herman wrote: > > The fix for the second error is to enable output buffering in php.ini > > > > output_buffering = 4096 > > > > Should be a safe setting. > > > > The fix for the warning in > > /usr/local/share/pear/Log.php > > > > should be made by upgrading to pear-log package to 1.11.6 The bug is in > > pear/log 1.11.5 and earlier. > > > > Micheas > > > > > > > > On Wed, 2010-04-14 at 08:06 +0200, Alex Dupre wrote: > > > > > Troy ha scritto: > > > > > > > When I go to login to the horde framework I'm getting the following > > > > errors in the web browsers: > > > > > > > > Deprecated: Assigning the return value of new by reference is deprecated > > > > in /usr/local/share/pear/Log.php on line 169 > > > > > > > Disable the error logging to the web browser... > > > > > > > > > > Warning: Cannot modify header information - headers already sent by > > > > (output started at /usr/local/share/pear/Log.php:169) in > > > > /usr/local/www/horde/index.php on line 92 > > > > > > > ...and this will disappear. > > > > > > -- I do desire we may be better strangers. -- William Shakespeare, "As You Like It"