Warning: session_start(): Failed to initialize storage module: user (path: /var/cpanel/php/sessions/ea-php74) in /home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Storage/NativeStorage.php on line 478
Failed to start the session because headers have already been sent by "/home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Storage/NativeStorage.php" at line 478. (500 Whoops, looks like something went wrong.)

ConnectionFailureException RuntimeException

HTTP 500 Whoops, looks like something went wrong.

Failed to start the session because headers have already been sent by "/home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Storage/NativeStorage.php" at line 478.

Exceptions 2

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.         {
  9.             $this->data unserialize(base64_decode($_SESSION['joomla']));
  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.         {
  6.             // Parent is used because of b/c, can be changed in Joomla 5
  7.             return parent::get($name$default);
  8.         }
  1.                 __CLASS__
  2.             ),
  3.             E_USER_DEPRECATED
  4.         );
  5.         $instance self::getApplication()->getSession()->get('user');
  6.         if (\is_null($id))
  7.         {
  8.             if (!($instance instanceof User))
  9.             {
  1.      *
  2.      * @since   1.5
  3.      */
  4.     public function __construct($options = array())
  5.     {
  6.         $this->user = isset($options['user']) && $options['user'] instanceof User $options['user'] : Factory::getUser();
  7.     }
  8.     /**
  9.      * Returns a Menu object
  10.      *
AbstractMenu->__construct(array('app' => object(SiteApplication))) in /home/bluelin1/public_html/test/werewolf/libraries/src/Menu/SiteMenu.php (line 69)
  1.         // Extract the internal dependencies before calling the parent constructor since it calls $this->load()
  2.         $this->app      = isset($options['app']) && $options['app'] instanceof CMSApplication $options['app'] : Factory::getApplication();
  3.         $this->db       = isset($options['db']) && $options['db'] instanceof DatabaseDriver $options['db'] : Factory::getDbo();
  4.         $this->language = isset($options['language']) && $options['language'] instanceof Language $options['language'] : Factory::getLanguage();
  5.         parent::__construct($options);
  6.     }
  7.     /**
  8.      * Loads the entire menu table into memory.
  9.      *
SiteMenu->__construct(array('app' => object(SiteApplication))) in /home/bluelin1/public_html/test/werewolf/libraries/src/Menu/MenuFactory.php (line 43)
  1.         if (!class_exists($classname))
  2.         {
  3.             throw new \InvalidArgumentException(Text::sprintf('JLIB_APPLICATION_ERROR_MENU_LOAD'$client), 500);
  4.         }
  5.         return new $classname($options);
  6.     }
  7. }
MenuFactory->createMenu('site', array('app' => object(SiteApplication))) in /home/bluelin1/public_html/test/werewolf/libraries/src/Menu/AbstractMenu.php (line 106)
  1.             throw new \Exception(Text::sprintf('JLIB_APPLICATION_ERROR_MENU_LOAD'$client), 500);
  2.         }
  3.         if (empty(self::$instances[$client]))
  4.         {
  5.             self::$instances[$client] = Factory::getContainer()->get(MenuFactoryInterface::class)->createMenu($client$options);
  6.         }
  7.         return self::$instances[$client];
  8.     }
AbstractMenu::getInstance('site', array('app' => object(SiteApplication))) in /home/bluelin1/public_html/test/werewolf/libraries/src/Application/CMSApplication.php (line 490)
  1.         if (!isset($options['app']))
  2.         {
  3.             $options['app'] = $this;
  4.         }
  5.         return AbstractMenu::getInstance($name$options);
  6.     }
  7.     /**
  8.      * Get the system message queue.
  9.      *
  1.             return $this->template->template;
  2.         }
  3.         // Get the id of the active menu item
  4.         $menu $this->getMenu();
  5.         $item $menu->getActive();
  6.         if (!$item)
  7.         {
  8.             $item $menu->getItem($this->input->getInt('Itemid'null));
  1.     public function render(\Throwable $error): string
  2.     {
  3.         $app Factory::getApplication();
  4.         // Get the current template from the application
  5.         $template $app->getTemplate(true);
  6.         // Push the error object into the document
  7.         $this->getDocument()->setError($error);
  8.         // Add registry file for the template asset
HtmlRenderer->render(object(ConnectionFailureException)) in /home/bluelin1/public_html/test/werewolf/libraries/src/Exception/ExceptionHandler.php (line 128)
  1.             // Reset the document object in the factory, this gives us a clean slate and lets everything render properly
  2.             Factory::$document $renderer->getDocument();
  3.             Factory::getApplication()->loadDocument(Factory::$document);
  4.             $data $renderer->render($error);
  5.             // If nothing was rendered, just use the message from the Exception
  6.             if (empty($data))
  7.             {
  8.                 $data $error->getMessage();
ExceptionHandler::render(object(ConnectionFailureException)) in /home/bluelin1/public_html/test/werewolf/libraries/src/Exception/ExceptionHandler.php (line 71)
  1.      * @since   3.10.0
  2.      */
  3.     public static function handleException(\Throwable $error)
  4.     {
  5.         static::logException($error);
  6.         static::render($error);
  7.     }
  8.     /**
  9.      * Render the error page based on an exception.
  10.      *
ExceptionHandler::handleException(object(ConnectionFailureException)) in /home/bluelin1/public_html/test/werewolf/libraries/src/Application/CMSApplication.php (line 299)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->triggerEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Send the application response.
  7.         $this->respond();
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/bluelin1/public_html/test/werewolf/includes/app.php') in /home/bluelin1/public_html/test/werewolf/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Joomla\Database\Exception\ ConnectionFailureException

Could not connect to database.

  1.             return false;
  2.         }
  3.         if (!$this->connection->select_db($database))
  4.         {
  5.             throw new ConnectionFailureException('Could not connect to database.');
  6.         }
  7.         return true;
  8.     }
  1.         $this->options['sqlModes'] = explode(','$this->setQuery('SELECT @@SESSION.sql_mode;')->loadResult());
  2.         // If auto-select is enabled select the given database.
  3.         if ($this->options['select'] && !empty($this->options['database']))
  4.         {
  5.             $this->select($this->options['database']);
  6.         }
  7.         $this->mariadb stripos($this->connection->server_info'mariadb') !== false;
  8.         $this->utf8mb4 $this->serverClaimsUtf8mb4Support();
  1.      *
  2.      * @since   2.0.0-beta
  3.      */
  4.     public function open($save_path$session_id)
  5.     {
  6.         $this->db->connect();
  7.         return true;
  8.     }
  9.     /**
DatabaseHandler->open('/var/cpanel/php/sessions/ea-php74', '5c1c1eca7a66526aa1a35524457472dc')
  1.             throw new \RuntimeException(
  2.                 sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.'$file$line)
  3.             );
  4.         }
  5.         if (!session_start())
  6.         {
  7.             throw new \RuntimeException('Failed to start the session');
  8.         }
  9.         $this->isActive();
  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.         {
  9.             $this->data unserialize(base64_decode($_SESSION['joomla']));
  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.         {
  6.             // Parent is used because of b/c, can be changed in Joomla 5
  7.             return parent::get($name$default);
  8.         }
  1.                 __CLASS__
  2.             ),
  3.             E_USER_DEPRECATED
  4.         );
  5.         $instance self::getApplication()->getSession()->get('user');
  6.         if (\is_null($id))
  7.         {
  8.             if (!($instance instanceof User))
  9.             {
  1.      *
  2.      * @since   3.2
  3.      */
  4.     protected function initialiseApp($options = array())
  5.     {
  6.         $user Factory::getUser();
  7.         // If the user is a guest we populate it with the guest user group.
  8.         if ($user->guest)
  9.         {
  10.             $guestUsergroup ComponentHelper::getParams('com_users')->get('guest_usergroup'1);
  1.      * @since   3.2
  2.      */
  3.     protected function doExecute()
  4.     {
  5.         // Initialise the application
  6.         $this->initialiseApp();
  7.         // Mark afterInitialise in the profiler.
  8.         JDEBUG $this->profiler->mark('afterInitialise') : null;
  9.         // Route the application
  1.             $this->sanityCheckSystemVariables();
  2.             $this->setupLogging();
  3.             $this->createExtensionNamespaceMap();
  4.             // Perform application routines.
  5.             $this->doExecute();
  6.             // If we have an application document object, render it.
  7.             if ($this->document instanceof \JDocument)
  8.             {
  9.                 // Render the application output.
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/bluelin1/public_html/test/werewolf/includes/app.php') in /home/bluelin1/public_html/test/werewolf/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Stack Traces 2

[2/2] RuntimeException

RuntimeException:
Failed to start the session because headers have already been sent by "/home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Storage/NativeStorage.php" at line 478.

  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('user')
     (/home/bluelin1/public_html/test/werewolf/libraries/src/Session/Session.php:201)
  at Joomla\CMS\Session\Session->get('user')
     (/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(array('app' => object(SiteApplication)))
     (/home/bluelin1/public_html/test/werewolf/libraries/src/Menu/SiteMenu.php:69)
  at Joomla\CMS\Menu\SiteMenu->__construct(array('app' => object(SiteApplication)))
     (/home/bluelin1/public_html/test/werewolf/libraries/src/Menu/MenuFactory.php:43)
  at Joomla\CMS\Menu\MenuFactory->createMenu('site', array('app' => object(SiteApplication)))
     (/home/bluelin1/public_html/test/werewolf/libraries/src/Menu/AbstractMenu.php:106)
  at Joomla\CMS\Menu\AbstractMenu::getInstance('site', array('app' => object(SiteApplication)))
     (/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(true)
     (/home/bluelin1/public_html/test/werewolf/libraries/src/Error/Renderer/HtmlRenderer.php:47)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(ConnectionFailureException))
     (/home/bluelin1/public_html/test/werewolf/libraries/src/Exception/ExceptionHandler.php:128)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(ConnectionFailureException))
     (/home/bluelin1/public_html/test/werewolf/libraries/src/Exception/ExceptionHandler.php:71)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(ConnectionFailureException))
     (/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] ConnectionFailureException

Joomla\Database\Exception\ConnectionFailureException:
Could not connect to database.

  at /home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:847
  at Joomla\Database\Mysqli\MysqliDriver->select('bluelin1_werewolf2')
     (/home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:298)
  at Joomla\Database\Mysqli\MysqliDriver->connect()
     (/home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:230)
  at Joomla\Session\Handler\DatabaseHandler->open('/var/cpanel/php/sessions/ea-php74', '5c1c1eca7a66526aa1a35524457472dc')
  at session_start()
     (/home/bluelin1/public_html/test/werewolf/libraries/vendor/joomla/session/src/Storage/NativeStorage.php:478)
  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('user')
     (/home/bluelin1/public_html/test/werewolf/libraries/src/Session/Session.php:201)
  at Joomla\CMS\Session\Session->get('user')
     (/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)