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()) // Extract the internal dependencies before calling the parent constructor since it calls $this->load() $this->app = isset($options['app']) && $options['app'] instanceof CMSApplication ? $options['app'] : Factory::getApplication(); $this->db = isset($options['db']) && $options['db'] instanceof DatabaseDriver ? $options['db'] : Factory::getDbo(); $this->language = isset($options['language']) && $options['language'] instanceof Language ? $options['language'] : Factory::getLanguage(); parent::__construct($options); } /** * Loads the entire menu table into memory. * // Reset the document object in the factory, this gives us a clean slate and lets everything render properly Factory::$document = $renderer->getDocument(); Factory::getApplication()->loadDocument(Factory::$document); $data = $renderer->render($error); // If nothing was rendered, just use the message from the Exception if (empty($data)) { $data = $error->getMessage(); 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())
[2/2] RuntimeException |
|---|
RuntimeException:
Failed to start the session because headers have already been sent by "/home/bluelin1/public_html/test/werewolf/libraries/src/Application/WebApplication.php" at line 404.
at /home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Storage/NativeStorage.php:473
at Joomla\Session\Storage\NativeStorage->start()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Session/Storage/JoomlaStorage.php:305)
at Joomla\CMS\Session\Storage\JoomlaStorage->start()
(/home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Session.php:405)
at Joomla\Session\Session->start()
(/home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Session.php:332)
at Joomla\Session\Session->has()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Session/Session.php:201)
at Joomla\CMS\Session\Session->get()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Factory.php:339)
at Joomla\CMS\Factory::getUser()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Menu/AbstractMenu.php:82)
at Joomla\CMS\Menu\AbstractMenu->__construct()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Menu/SiteMenu.php:69)
at Joomla\CMS\Menu\SiteMenu->__construct()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Menu/MenuFactory.php:43)
at Joomla\CMS\Menu\MenuFactory->createMenu()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Menu/AbstractMenu.php:106)
at Joomla\CMS\Menu\AbstractMenu::getInstance()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Application/CMSApplication.php:490)
at Joomla\CMS\Application\CMSApplication->getMenu()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Application/SiteApplication.php:426)
at Joomla\CMS\Application\SiteApplication->getTemplate()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Error/Renderer/HtmlRenderer.php:47)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Exception/ExceptionHandler.php:128)
at Joomla\CMS\Exception\ExceptionHandler::render()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Exception/ExceptionHandler.php:71)
at Joomla\CMS\Exception\ExceptionHandler::handleException()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Application/CMSApplication.php:299)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/bluelin1/public_html/test/werewolf/includes/app.php:63)
at require_once('/home/bluelin1/public_html/test/werewolf/includes/app.php')
(/home/bluelin1/public_html/test/werewolf/index.php:32)
|
[1/2] RuntimeException |
|---|
RuntimeException:
Failed to start the session because headers have already been sent by "/home/bluelin1/public_html/test/werewolf/libraries/src/Application/WebApplication.php" at line 404.
at /home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Storage/NativeStorage.php:473
at Joomla\Session\Storage\NativeStorage->start()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Session/Storage/JoomlaStorage.php:305)
at Joomla\CMS\Session\Storage\JoomlaStorage->start()
(/home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Session.php:405)
at Joomla\Session\Session->start()
(/home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Session.php:332)
at Joomla\Session\Session->has()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Session/Session.php:201)
at Joomla\CMS\Session\Session->get()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Factory.php:339)
at Joomla\CMS\Factory::getUser()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Application/SiteApplication.php:621)
at Joomla\CMS\Application\SiteApplication->initialiseApp()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Application/SiteApplication.php:224)
at Joomla\CMS\Application\SiteApplication->doExecute()
(/home/bluelin1/public_html/test/werewolf/libraries/src/Application/CMSApplication.php:266)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/bluelin1/public_html/test/werewolf/includes/app.php:63)
at require_once('/home/bluelin1/public_html/test/werewolf/includes/app.php')
(/home/bluelin1/public_html/test/werewolf/index.php:32)
|