ore * * @param string $name Name of variable * * @return boolean True if the variable exists * * @since 4.0.0 */ public function has(string $name): bool { if (!$this->isStarted()) { $this->start(); } return $this->data->exists($name); } /** * Unset a variable from the session store * * @param string $name Name of variable * * @return mixed The value from session or NULL if not set * * @since 4.0.0 */ public function remove(string $name) { if (!$this->isStarted()) { $this->start(); } $old = $this->data->get($name); unset($this->data[$name]); return $old; } /** * Set data into the session store * * @param string $name Name of a variable. * @param mixed $value Value of a variable. * * @return mixed Old value of a variable. * * @since 4.0.0 */ public function set(string $name, $value = null) { if (!$this->isStarted()) { $this->start(); } $old = $this->data->get($name); $this->data->set($name, $value); return $old; } /** * Set session cookie parameters * * @return void * * @since 4.0.0 */ protected function setCookieParams(): void { if (headers_sent() || $this->isActive()) { return; } $cookie = session_get_cookie_params(); if ($this->forceSSL) { $cookie['secure'] = true; } if ($this->cookieDomain !== '') { $cookie['domain'] = $this->cookieDomain; } if ($this->cookiePath !== '') { $cookie['path'] = $this->cookiePath; } session_set_cookie_params($cookie['lifetime'], $cookie['path'], $cookie['domain'], $cookie['secure'], true); } /** * Sets session options * * @param array $options Session ini directives array(key => value). * * @return $this * * @link http://php.net/session.configuration * @since 4.0.0 */ public function setOptions(array $options): NativeStorage { if (isset($options['cookie_domain'])) { $this->cookieDomain = $options['cookie_domain']; } if (isset($options['cookie_path'])) { $this->cookiePath = $options['cookie_path']; } if (isset($options['force_ssl'])) { $this->forceSSL = (bool) $options['force_ssl']; } return parent::setOptions($options); } /** * Start a session * * @return void * * @since 4.0.0 */ public function start(): void { $session_name = $this->getName(); // Get the cookie object $cookie = $this->input->cookie; if (\is_null($cookie->get($session_name))) { $session_clean = $this->input->getString($session_name); if ($session_clean) { $this->setId($session_clean); $cookie->set($session_name, '', time() - 3600); } } parent::start(); // Try loading data from the session if (!empty($_SESSION['joomla'])) { $this->data = unserialize(base64_decode($_SESSION['joomla'])); } } } An Error Occurred: Whoops, looks like something went wrong.

Sorry, there was a problem we could not recover from.

The server returned a "500 - Whoops, looks like something went wrong."

Help me resolve this