After horde 3.3.6_1 upgrade - php error cannot modify header
information - headers already sent
Micheas Herman
m at micheas.net
Fri Apr 16 06:32:38 UTC 2010
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() [<a
> href='datetime.--construct'>datetime.--construct</a>]: 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"
More information about the freebsd-ports
mailing list