Warning: session_name(): Session name cannot be changed after headers have already been sent in /home/ldhub/public_html/libraries/vendor/joomla/session/src/Storage/NativeStorage.php on line 405
Failed to start the session because headers have already been sent by "/home/ldhub/public_html/leasedeposit/files/utility.php" at line 59. (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/ldhub/public_html/leasedeposit/files/utility.php" at line 59.

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.         /*
  1.     ->alias(\Joomla\CMS\Session\Session::class, 'session.web.site')
  2.     ->alias(\Joomla\Session\Session::class, 'session.web.site')
  3.     ->alias(\Joomla\Session\SessionInterface::class, 'session.web.site');
  4. $app $container->get(\Joomla\CMS\Application\SiteApplication::class);
  5. $user $app->getSession()->get('user');
  6. writelog ('999_DEBUG.txt' '<utilty.php> ' 'user=' print_r($userTRUE), 2) ;
  7. //writelog ('999_DEBUG.txt' , '<utilty.php> ' . 'user id=' . $user->id . ' email=' . $user->email . ' username=' . $user->username, 1) ;
  8. function db_query($caller$query$type){
require_once('/home/ldhub/public_html/leasedeposit/files/utility.php') in /home/ldhub/public_html/leasedeposit/files/getleaselist.php (line 2)
  1. <?php
  2. require_once 'utility.php';
  3. require_once '../controller.php';
  4. // BEGIN MAIN
  5. writelog ('999_DEBUG.txt' '<getleaselist.php> ENTERING'1) ;

Stack Trace

RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/home/ldhub/public_html/leasedeposit/files/utility.php" at line 59.

  at /home/ldhub/public_html/libraries/vendor/joomla/session/src/Storage/NativeStorage.php:473
  at Joomla\Session\Storage\NativeStorage->start()
     (/home/ldhub/public_html/libraries/src/Session/Storage/JoomlaStorage.php:295)
  at Joomla\CMS\Session\Storage\JoomlaStorage->start()
     (/home/ldhub/public_html/libraries/vendor/joomla/session/src/Session.php:406)
  at Joomla\Session\Session->start()
     (/home/ldhub/public_html/libraries/vendor/joomla/session/src/Session.php:333)
  at Joomla\Session\Session->has('user')
     (/home/ldhub/public_html/libraries/src/Session/Session.php:194)
  at Joomla\CMS\Session\Session->get('user')
     (/home/ldhub/public_html/leasedeposit/files/utility.php:80)
  at require_once('/home/ldhub/public_html/leasedeposit/files/utility.php')
     (/home/ldhub/public_html/leasedeposit/files/getleaselist.php:2)