PHP_errors.log filled with - headers already sent
-
I have upgraded from from 2.0.1-X64 to 2.0.2-X64 though this problem might have existed before, I never really checked until recently.
I have captive portal on with local authentication enabled and most of my users authenticate with a username/password and their account are set to expire on certain dates, for the past month I have gradually migrated these users to the voucher system.
I was checking around my logs to try and solve another problem and I came across the following in /tmp/PHP_errors.log
Although it doesnt seem to cause any problems and I havent had any reports from the captive portal clients of any issues, I thought I'd mention it.
[04-Jan-2013 13:46:16] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - Shared object "libsasl2.so.2" not found, required by "libldap-2.4.so.8" in Unknown on line 0
[04-Jan-2013 14:02:42] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 14:02:42] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 14:46:34] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 14:46:34] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 15:46:34] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 15:46:34] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 16:46:34] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 16:46:34] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 18:35:13] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 18:35:13] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 19:40:27] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - Shared object "libsasl2.so.2" not found, required by "libldap-2.4.so.8" in Unknown on line 0
[04-Jan-2013 20:04:22] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 20:04:22] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 20:05:11] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - Shared object "libsasl2.so.2" not found, required by "libldap-2.4.so.8" in Unknown on line 0
[04-Jan-2013 20:05:39] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - Shared object "libsasl2.so.2" not found, required by "libldap-2.4.so.8" in Unknown on line 0
[04-Jan-2013 20:44:25] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - Shared object "libsasl2.so.2" not found, required by "libldap-2.4.so.8" in Unknown on line 0
[04-Jan-2013 21:19:50] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 21:19:50] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 21:32:19] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[04-Jan-2013 21:32:19] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 00:46:35] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 00:46:35] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 00:50:45] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 00:50:45] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 00:50:57] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 00:50:57] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 01:46:35] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 01:46:35] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 02:05:48] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 02:05:48] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 02:46:36] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 02:46:36] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 03:46:36] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 03:46:36] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 04:46:36] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 04:46:36] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 05:46:36] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 05:46:36] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 06:46:36] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 06:46:36] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 07:46:37] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 07:46:37] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 08:46:37] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 08:46:37] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 08:48:52] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 08:48:52] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 09:46:37] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 09:46:37] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 09:56:59] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 09:56:59] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 10:38:02] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 10:38:02] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 10:41:33] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 10:41:33] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 10:46:37] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 10:46:37] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 11:21:00] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 11:21:00] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 11:22:40] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 11:22:40] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 11:46:37] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 11:46:37] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 12:46:38] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 12:46:38] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 13:46:38] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 13:46:38] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 14:46:38] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 14:46:38] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 15:02:17] PHP Warning: session_start(): Cannot send session cookie - headers already sent in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 15:02:17] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/config.lib.inc:498) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 15:46:38] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 15:46:38] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 16:46:38] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498
[05-Jan-2013 16:46:38] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.expireaccounts:46) in /etc/inc/config.lib.inc on line 498 -
I am noticing this in 2.1-BETA1 in recent (last few days to a week). For example, here is some console output of a system just booting and reinstalling packages during an update to the snap built on Sat Jan 5 17:06:02 EST 2013:
One moment please, reinstalling packages... >>> Trying to fetch package info... Done. Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /etc/rc.bootup:84) in /etc/inc/config.lib.inc on line 502 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/rc.bootup:84) in /etc/inc/config.lib.inc on line 502 Backing up libraries...
This is serial console output at boot time, so in this scenario there isn't a browser on the other end of any PHP/HTML.
-
Im getting a similar error on console whenever I reboot - option (5) reboot.
However mine report "…headers already sent (output started at /etc/rc.reboot...."
-
The session errors should be fixed in the most recent versions (current 2.1 and 2.0.3 snapshots)
-
Thanks this is resolved for me using an snapshot upgrade from the 7 Jan.
I have noticed some other warning, should I just ignore these? They dont seem to be causing any problems
[09-Jan-2013 03:33:00] PHP Warning: Module 'SPL' already loaded in Unknown on l
ine 0
[09-Jan-2013 03:33:00] PHP Warning: Module 'PDO' already loaded in Unknown on l
ine 0
[09-Jan-2013 03:33:00] PHP Warning: Module 'SQLite' already loaded in Unknown o
n line 0
[09-Jan-2013 03:33:00] PHP Warning: Module 'SimpleXML' already loaded in Unknow
n on line 0
[09-Jan-2013 03:33:00] PHP Warning: Module 'SPL' already loaded in Unknown on l
ine 0
[09-Jan-2013 03:33:00] PHP Warning: Module 'PDO' already loaded in Unknown on l
ine 0
[09-Jan-2013 03:33:00] PHP Warning: Module 'SQLite' already loaded in Unknown o
n line 0
[09-Jan-2013 03:33:16] PHP Warning: Module 'SimpleXML' already loaded in Unknow
n on line 0
[09-Jan-2013 03:33:16] PHP Warning: Module 'SPL' already loaded in Unknown on l
ine 0
[09-Jan-2013 03:33:16] PHP Warning: Module 'PDO' already loaded in Unknown on l
ine 0
[09-Jan-2013 03:33:16] PHP Warning: Module 'SQLite' already loaded in Unknown o
n line 0 -
That would suggest that somehow there are duplicate lines getting into the php extension list. Not sure how that might be happening.
SQLite isn't enabled by default, I don't think, so it may be from a package.
-
That could be from NTOP I installed a few days ago, it looks like its the type of libraries it would install now that you mention it, the only other package I have on this firewall is open-vm-tools.