• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

PHP_errors.log filled with - headers already sent

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
7 Posts 3 Posters 2.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Slam
    last edited by Jan 5, 2013, 4:56 PM

    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

    1 Reply Last reply Reply Quote 0
    • P
      phil.davis
      last edited by Jan 6, 2013, 5:39 AM

      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.

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      • S
        Slam
        last edited by Jan 7, 2013, 5:03 AM Jan 7, 2013, 3:30 AM

        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...."

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Jan 7, 2013, 1:25 PM

          The session errors should be fixed in the most recent versions (current 2.1 and 2.0.3 snapshots)

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • S
            Slam
            last edited by Jan 9, 2013, 3:32 AM

            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

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Jan 9, 2013, 11:06 PM

              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.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • S
                Slam
                last edited by Jan 9, 2013, 11:16 PM Jan 9, 2013, 11:14 PM

                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.

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received