line: 33 php_define = /home/usbf/public_html/includes/defines.php
line: 34 php_framework = /home/usbf/public_html/includes/framework.php

JPATH_BASE =/home/usbf/public_html
FOUND defines.php
FOUND framework.php
line: 59 before set container
line: 62 after set container
line: 74 before set app
Warning: session_name(): Session name cannot be changed after headers have already been sent in /home/usbf/public_html/libraries/vendor/joomla/session/src/Storage/NativeStorage.php on line 405

line: 78 before set app
line: 81 before crlf
line: 89 after crlf
line: 91 try to set user Failed to start the session because headers have already been sent by "/home/usbf/public_html/apps/includes/session.php" at line 33. (500 Whoops, looks like something went wrong.)

RuntimeException

HTTP 500 Whoops, looks like something went wrong.

Failed to start the session because headers have already been sent by "/home/usbf/public_html/apps/includes/session.php" at line 33.

Exception

RuntimeException

  1.             throw new \RuntimeException('Failed to start the session: already started by PHP.');
  2.         }
  3.         if (ini_get('session.use_cookies') && headers_sent($file$line))
  4.         {
  5.             throw new \RuntimeException(
  6.                 sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.'$file$line)
  7.             );
  8.         }
  9.         if (!session_start())
  1.                 $this->setId($session_clean);
  2.                 $cookie->set($session_name''time() - 3600);
  3.             }
  4.         }
  5.         parent::start();
  6.         // Try loading data from the session
  7.         if (isset($_SESSION['joomla']) && !empty($_SESSION['joomla'])) {
  8.             $this->data unserialize(base64_decode($_SESSION['joomla']));
  9.         }
  1.         if ($this->isStarted())
  2.         {
  3.             return;
  4.         }
  5.         $this->store->start();
  6.         $this->setState(SessionState::ACTIVE);
  7.         // Initialise the session
  8.         $this->setCounter();
  1.      */
  2.     public function has($name)
  3.     {
  4.         if (!$this->isActive())
  5.         {
  6.             $this->start();
  7.         }
  8.         return $this->store->has($name);
  9.     }
  1.                 $name $args[2] . '.' $name;
  2.             }
  3.         }
  4.         if (parent::has($name)) {
  5.             // Parent is used because of b/c, can be changed in Joomla 5
  6.             return parent::get($name$default);
  7.         }
  8.         /*
Session->get('user') in /home/usbf/public_html/apps/includes/session.php (line 92)
  1.     $crlf '<br>';
  2. }
  3.     echo "<br> line: " __LINE__ "  after crlf" 
  4. echo "<br>line: " __LINE__ "  try to set user";
  5. $user    $app->getSession()->get('user');
  6. echo "<br>line: " __LINE__ "  after set user";
  7. if ($user->guest) {
  8.     echo 'this is a guest user' $crlf;
  9. } else {
  10.     echo 'user id = ' $user->id ', name = ' $user->name $crlf;
include('/home/usbf/public_html/apps/includes/session.php') in /home/usbf/public_html/apps/entries.php (line 46)
  1.     $debugent2  0;
  2.     $debugent3  0;
  3. // is_test
  4. /// must be before header
  5. include "includes/session.php";    // access joomla login
  6. /*
  7. // test if logged in //
  8. if (isset($my) && $my->username<>"")
  9. {

Stack Trace

RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/home/usbf/public_html/apps/includes/session.php" at line 33.

  at /home/usbf/public_html/libraries/vendor/joomla/session/src/Storage/NativeStorage.php:473
  at Joomla\Session\Storage\NativeStorage->start()
     (/home/usbf/public_html/libraries/src/Session/Storage/JoomlaStorage.php:295)
  at Joomla\CMS\Session\Storage\JoomlaStorage->start()
     (/home/usbf/public_html/libraries/vendor/joomla/session/src/Session.php:406)
  at Joomla\Session\Session->start()
     (/home/usbf/public_html/libraries/vendor/joomla/session/src/Session.php:333)
  at Joomla\Session\Session->has('user')
     (/home/usbf/public_html/libraries/src/Session/Session.php:194)
  at Joomla\CMS\Session\Session->get('user')
     (/home/usbf/public_html/apps/includes/session.php:92)
  at include('/home/usbf/public_html/apps/includes/session.php')
     (/home/usbf/public_html/apps/entries.php:46)