defines=/home/ldhub/public_html/includes/defines.php
framework=/home/ldhub/public_html/includes/framework.php
PHP version: 8.0.30
throw new \RuntimeException('Failed to start the session: already started by PHP.'); } if (ini_get('session.use_cookies') && headers_sent($file, $line)) { throw new \RuntimeException( sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line) ); } if (!session_start()) $this->setId($session_clean); $cookie->set($session_name, '', time() - 3600); } } parent::start(); // Try loading data from the session if (isset($_SESSION['joomla']) && !empty($_SESSION['joomla'])) { $this->data = unserialize(base64_decode($_SESSION['joomla'])); } if ($this->isStarted()) { return; } $this->store->start(); $this->setState(SessionState::ACTIVE); // Initialise the session $this->setCounter(); */ public function has($name) { if (!$this->isActive()) { $this->start(); } return $this->store->has($name); } $name = $args[2] . '.' . $name; } } if (parent::has($name)) { // Parent is used because of b/c, can be changed in Joomla 5 return parent::get($name, $default); } /*//echo '<hr>Session:'.var_dump(get_class_methods($app->getSession()));echo 'Session:<hr>';var_dump(get_class_methods($app->getSession()));echo '<hr>User:<hr>';$user = $app->getSession()->get('user');var_dump($user);echo '<hr>user id='.$user->id;echo '<hr><h2>_GET='.print_r($_GET, TRUE);|
RuntimeException
|
|---|
RuntimeException:
Failed to start the session because headers have already been sent by "/home/ldhub/public_html/test.php" at line 11.
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/test.php:49)
|