Deprecated: Method mysqli::ping() is deprecated since 8.4, because the reconnect feature has been removed in PHP 8.2 and this method is now redundant in /var/www/rymdturism.se/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php on line 427

Deprecated: Method mysqli::ping() is deprecated since 8.4, because the reconnect feature has been removed in PHP 8.2 and this method is now redundant in /var/www/rymdturism.se/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php on line 427
Attempted to load class "JFactory" from the global namespace. Did you forget a "use" statement? (500 Whoops, looks like something went wrong.)

mysqli_sql_exception ExecutionFailureException ClassNotFoundError

HTTP 500 Whoops, looks like something went wrong.

Attempted to load class "JFactory" from the global namespace.
Did you forget a "use" statement?

Exceptions 3

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  1. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
  2. */
  3. //no direct accees
  4. defined ('_JEXEC') or die ('resticted aceess');
  5. $doc = JFactory::getDocument();
  6. $params = JFactory::getApplication()->getTemplate('true')->params;
  7. //Error Logo
  8. if ($logo_image = $params->get('error_logo')) {
  9. $logo = JURI::root() . '/' . $logo_image;
  1. // Store the file path
  2. $this->_file = $directory . '/' . $filename;
  3. // Get the file content
  4. ob_start();
  5. require $directory . '/' . $filename;
  6. $contents = ob_get_clean();
  7. }
  8. return $contents;
  9. }
HtmlDocument->_loadTemplate('/var/www/rymdturism.se/public_html/templates/shaper_finance', 'error.php') in /var/www/rymdturism.se/public_html/libraries/src/Document/HtmlDocument.php (line 785)
  1. $this->baseurl = Uri::base(true);
  2. $this->params = $params['params'] ?? new Registry();
  3. $this->template = $template;
  4. // Load
  5. $this->_template = $this->_loadTemplate($baseDir, $file);
  6. return $this;
  7. }
  8. /**
HtmlDocument->_fetchTemplate(array('template' => 'shaper_finance', 'directory' => '/var/www/rymdturism.se/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /var/www/rymdturism.se/public_html/libraries/src/Document/HtmlDocument.php (line 622)
  1. *
  2. * @since 1.7.0
  3. */
  4. public function parse($params = [])
  5. {
  6. return $this->_fetchTemplate($params)->_parseTemplate();
  7. }
  8. /**
  9. * Outputs the template to the browser.
  10. *
HtmlDocument->parse(array('template' => 'shaper_finance', 'directory' => '/var/www/rymdturism.se/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /var/www/rymdturism.se/public_html/libraries/src/Document/HtmlDocument.php (line 640)
  1. public function render($caching = false, $params = [])
  2. {
  3. $this->_caching = $caching;
  4. if (empty($this->_template)) {
  5. $this->parse($params);
  6. }
  7. if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) {
  8. $this->cspNonce = $params['csp_nonce'];
  9. }
HtmlDocument->render(false, array('template' => 'shaper_finance', 'directory' => '/var/www/rymdturism.se/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /var/www/rymdturism.se/public_html/libraries/src/Document/ErrorDocument.php (line 139)
  1. $this->debug = $params['debug'] ?? false;
  2. $this->error = $this->_error;
  3. $params['file'] = 'error.php';
  4. return parent::render($cache, $params);
  5. }
  6. /**
  7. * Render the backtrace
  8. *
ErrorDocument->render(false, array('template' => 'shaper_finance', 'directory' => '/var/www/rymdturism.se/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /var/www/rymdturism.se/public_html/libraries/src/Error/Renderer/HtmlRenderer.php (line 70)
  1. ob_end_clean();
  2. }
  3. $this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
  4. return $this->getDocument()->render(
  5. false,
  6. [
  7. 'template' => $template->template,
  8. 'directory' => JPATH_THEMES,
  9. 'debug' => JDEBUG,
HtmlRenderer->render(object(ExecutionFailureException)) in /var/www/rymdturism.se/public_html/libraries/src/Exception/ExceptionHandler.php (line 136)
  1. 'subject' => $app,
  2. 'document' => $renderer->getDocument(),
  3. ])
  4. );
  5. $data = $renderer->render($error);
  6. // If nothing was rendered, just use the message from the Exception
  7. if (empty($data)) {
  8. $data = $error->getMessage();
  9. }
ExceptionHandler::render(object(ExecutionFailureException)) in /var/www/rymdturism.se/public_html/libraries/src/Exception/ExceptionHandler.php (line 73)
  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(ExecutionFailureException)) in /var/www/rymdturism.se/public_html/libraries/src/Application/CMSApplication.php (line 336)
  1. );
  2. // Trigger the onError event.
  3. $this->dispatchEvent('onError', $event);
  4. ExceptionHandler::handleException($event->getError());
  5. }
  6. // Trigger the onBeforeRespond event.
  7. $this->dispatchEvent(
  8. 'onBeforeRespond',
CMSApplication->execute() in /var/www/rymdturism.se/public_html/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/rymdturism.se/public_html/includes/app.php') in /var/www/rymdturism.se/public_html/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\ ExecutionFailureException

Prepared statement needs to be re-prepared

  1. try {
  2. if (!$this->statement->execute()) {
  3. throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno);
  4. }
  5. } catch (\Throwable $e) {
  6. throw new ExecutionFailureException($this->query, $e->getMessage(), $e->getCode(), $e);
  7. }
  8. if ($this->columnNames === null) {
  9. $meta = $this->statement->result_metadata();
  1. foreach ($bounded as $key => $obj) {
  2. $this->statement->bindParam($key, $obj->value, $obj->dataType);
  3. }
  4. try {
  5. $this->executed = $this->statement->execute();
  6. // If there is a monitor registered, let it know we have finished this query
  7. if ($this->monitor) {
  8. $this->monitor->stopQuery();
  9. }
  1. $this->connect();
  2. $array = [];
  3. // Execute the query and get the result set cursor.
  4. $this->execute();
  5. // Get all of the rows from the result set.
  6. while ($row = $this->fetchAssoc()) {
  7. $value = $column ? ($row[$column] ?? $row) : $row;
DatabaseDriver->loadAssocList() in /var/www/rymdturism.se/public_html/libraries/src/Access/Access.php (line 955)
  1. // Set the query for execution.
  2. $db->setQuery($query);
  3. // Build the view levels array.
  4. foreach ($db->loadAssocList() as $level) {
  5. self::$viewLevels[$level['id']] = (array) json_decode($level['rules']);
  6. }
  7. }
  8. // Initialise the authorised array.
Access::getAuthorisedViewLevels(0) in /var/www/rymdturism.se/public_html/libraries/src/User/User.php (line 474)
  1. if ($this->_authLevels === null) {
  2. $this->_authLevels = [];
  3. }
  4. if (empty($this->_authLevels)) {
  5. $this->_authLevels = Access::getAuthorisedViewLevels($this->id);
  6. }
  7. return $this->_authLevels;
  8. }
  1. {
  2. if (static::$plugins !== null) {
  3. return static::$plugins;
  4. }
  5. $levels = Factory::getUser()->getAuthorisedViewLevels();
  6. /** @var \Joomla\CMS\Cache\Controller\CallbackController $cache */
  7. $cache = Factory::getCache('com_plugins', 'callback');
  8. $loader = function () use ($levels) {
  1. * @since 1.5
  2. */
  3. public static function getPlugin($type, $plugin = null)
  4. {
  5. $result = [];
  6. $plugins = static::load();
  7. // Find the correct plugin(s) to return.
  8. if (!$plugin) {
  9. foreach ($plugins as $p) {
  10. // Is this the right plugin?
PluginHelper::getPlugin('system', 'languagefilter') in /var/www/rymdturism.se/public_html/libraries/src/Application/SiteApplication.php (line 589)
  1. if ($user->guest) {
  2. $guestUsergroup = ComponentHelper::getParams('com_users')->get('guest_usergroup', 1);
  3. $user->groups = [$guestUsergroup];
  4. }
  5. if ($plugin = PluginHelper::getPlugin('system', 'languagefilter')) {
  6. $pluginParams = new Registry($plugin->params);
  7. $this->setLanguageFilter(true);
  8. $this->setDetectBrowser($pluginParams->get('detect_browser', 1) == 1);
  9. }
  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 \Joomla\CMS\Document\Document) {
  8. // Render the application output.
  9. $this->render();
CMSApplication->execute() in /var/www/rymdturism.se/public_html/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/rymdturism.se/public_html/includes/app.php') in /var/www/rymdturism.se/public_html/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';

mysqli_sql_exception

Prepared statement needs to be re-prepared

  1. throw new PrepareStatementFailureException($this->statement->error, $this->statement->errno);
  2. }
  3. }
  4. try {
  5. if (!$this->statement->execute()) {
  6. throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno);
  7. }
  8. } catch (\Throwable $e) {
  9. throw new ExecutionFailureException($this->query, $e->getMessage(), $e->getCode(), $e);
  10. }
  1. throw new PrepareStatementFailureException($this->statement->error, $this->statement->errno);
  2. }
  3. }
  4. try {
  5. if (!$this->statement->execute()) {
  6. throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno);
  7. }
  8. } catch (\Throwable $e) {
  9. throw new ExecutionFailureException($this->query, $e->getMessage(), $e->getCode(), $e);
  10. }
  1. foreach ($bounded as $key => $obj) {
  2. $this->statement->bindParam($key, $obj->value, $obj->dataType);
  3. }
  4. try {
  5. $this->executed = $this->statement->execute();
  6. // If there is a monitor registered, let it know we have finished this query
  7. if ($this->monitor) {
  8. $this->monitor->stopQuery();
  9. }
  1. $this->connect();
  2. $array = [];
  3. // Execute the query and get the result set cursor.
  4. $this->execute();
  5. // Get all of the rows from the result set.
  6. while ($row = $this->fetchAssoc()) {
  7. $value = $column ? ($row[$column] ?? $row) : $row;
DatabaseDriver->loadAssocList() in /var/www/rymdturism.se/public_html/libraries/src/Access/Access.php (line 955)
  1. // Set the query for execution.
  2. $db->setQuery($query);
  3. // Build the view levels array.
  4. foreach ($db->loadAssocList() as $level) {
  5. self::$viewLevels[$level['id']] = (array) json_decode($level['rules']);
  6. }
  7. }
  8. // Initialise the authorised array.
Access::getAuthorisedViewLevels(0) in /var/www/rymdturism.se/public_html/libraries/src/User/User.php (line 474)
  1. if ($this->_authLevels === null) {
  2. $this->_authLevels = [];
  3. }
  4. if (empty($this->_authLevels)) {
  5. $this->_authLevels = Access::getAuthorisedViewLevels($this->id);
  6. }
  7. return $this->_authLevels;
  8. }
  1. {
  2. if (static::$plugins !== null) {
  3. return static::$plugins;
  4. }
  5. $levels = Factory::getUser()->getAuthorisedViewLevels();
  6. /** @var \Joomla\CMS\Cache\Controller\CallbackController $cache */
  7. $cache = Factory::getCache('com_plugins', 'callback');
  8. $loader = function () use ($levels) {
  1. * @since 1.5
  2. */
  3. public static function getPlugin($type, $plugin = null)
  4. {
  5. $result = [];
  6. $plugins = static::load();
  7. // Find the correct plugin(s) to return.
  8. if (!$plugin) {
  9. foreach ($plugins as $p) {
  10. // Is this the right plugin?
PluginHelper::getPlugin('system', 'languagefilter') in /var/www/rymdturism.se/public_html/libraries/src/Application/SiteApplication.php (line 589)
  1. if ($user->guest) {
  2. $guestUsergroup = ComponentHelper::getParams('com_users')->get('guest_usergroup', 1);
  3. $user->groups = [$guestUsergroup];
  4. }
  5. if ($plugin = PluginHelper::getPlugin('system', 'languagefilter')) {
  6. $pluginParams = new Registry($plugin->params);
  7. $this->setLanguageFilter(true);
  8. $this->setDetectBrowser($pluginParams->get('detect_browser', 1) == 1);
  9. }
  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 \Joomla\CMS\Document\Document) {
  8. // Render the application output.
  9. $this->render();
CMSApplication->execute() in /var/www/rymdturism.se/public_html/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/rymdturism.se/public_html/includes/app.php') in /var/www/rymdturism.se/public_html/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 3

[3/3] ClassNotFoundError
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "JFactory" from the global namespace.
Did you forget a "use" statement?

  at /var/www/rymdturism.se/public_html/templates/shaper_finance/error.php:12
  at require()
     (/var/www/rymdturism.se/public_html/libraries/src/Document/HtmlDocument.php:731)
  at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/var/www/rymdturism.se/public_html/templates/shaper_finance', 'error.php')
     (/var/www/rymdturism.se/public_html/libraries/src/Document/HtmlDocument.php:785)
  at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'shaper_finance', 'directory' => '/var/www/rymdturism.se/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/var/www/rymdturism.se/public_html/libraries/src/Document/HtmlDocument.php:622)
  at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'shaper_finance', 'directory' => '/var/www/rymdturism.se/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/var/www/rymdturism.se/public_html/libraries/src/Document/HtmlDocument.php:640)
  at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'shaper_finance', 'directory' => '/var/www/rymdturism.se/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/var/www/rymdturism.se/public_html/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'shaper_finance', 'directory' => '/var/www/rymdturism.se/public_html/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
     (/var/www/rymdturism.se/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:70)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(ExecutionFailureException))
     (/var/www/rymdturism.se/public_html/libraries/src/Exception/ExceptionHandler.php:136)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(ExecutionFailureException))
     (/var/www/rymdturism.se/public_html/libraries/src/Exception/ExceptionHandler.php:73)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(ExecutionFailureException))
     (/var/www/rymdturism.se/public_html/libraries/src/Application/CMSApplication.php:336)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/rymdturism.se/public_html/includes/app.php:58)
  at require_once('/var/www/rymdturism.se/public_html/includes/app.php')
     (/var/www/rymdturism.se/public_html/index.php:32)                
[2/3] ExecutionFailureException
Joomla\Database\Exception\ExecutionFailureException:
Prepared statement needs to be re-prepared

  at /var/www/rymdturism.se/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:411
  at Joomla\Database\Mysqli\MysqliStatement->execute()
     (/var/www/rymdturism.se/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:651)
  at Joomla\Database\DatabaseDriver->execute()
     (/var/www/rymdturism.se/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:1180)
  at Joomla\Database\DatabaseDriver->loadAssocList()
     (/var/www/rymdturism.se/public_html/libraries/src/Access/Access.php:955)
  at Joomla\CMS\Access\Access::getAuthorisedViewLevels(0)
     (/var/www/rymdturism.se/public_html/libraries/src/User/User.php:474)
  at Joomla\CMS\User\User->getAuthorisedViewLevels()
     (/var/www/rymdturism.se/public_html/libraries/src/Plugin/PluginHelper.php:258)
  at Joomla\CMS\Plugin\PluginHelper::load()
     (/var/www/rymdturism.se/public_html/libraries/src/Plugin/PluginHelper.php:109)
  at Joomla\CMS\Plugin\PluginHelper::getPlugin('system', 'languagefilter')
     (/var/www/rymdturism.se/public_html/libraries/src/Application/SiteApplication.php:589)
  at Joomla\CMS\Application\SiteApplication->initialiseApp()
     (/var/www/rymdturism.se/public_html/libraries/src/Application/SiteApplication.php:238)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/var/www/rymdturism.se/public_html/libraries/src/Application/CMSApplication.php:306)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/rymdturism.se/public_html/includes/app.php:58)
  at require_once('/var/www/rymdturism.se/public_html/includes/app.php')
     (/var/www/rymdturism.se/public_html/index.php:32)                
[1/3] mysqli_sql_exception
mysqli_sql_exception:
Prepared statement needs to be re-prepared

  at /var/www/rymdturism.se/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:407
  at mysqli_stmt->execute()
     (/var/www/rymdturism.se/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:407)
  at Joomla\Database\Mysqli\MysqliStatement->execute()
     (/var/www/rymdturism.se/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:651)
  at Joomla\Database\DatabaseDriver->execute()
     (/var/www/rymdturism.se/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:1180)
  at Joomla\Database\DatabaseDriver->loadAssocList()
     (/var/www/rymdturism.se/public_html/libraries/src/Access/Access.php:955)
  at Joomla\CMS\Access\Access::getAuthorisedViewLevels(0)
     (/var/www/rymdturism.se/public_html/libraries/src/User/User.php:474)
  at Joomla\CMS\User\User->getAuthorisedViewLevels()
     (/var/www/rymdturism.se/public_html/libraries/src/Plugin/PluginHelper.php:258)
  at Joomla\CMS\Plugin\PluginHelper::load()
     (/var/www/rymdturism.se/public_html/libraries/src/Plugin/PluginHelper.php:109)
  at Joomla\CMS\Plugin\PluginHelper::getPlugin('system', 'languagefilter')
     (/var/www/rymdturism.se/public_html/libraries/src/Application/SiteApplication.php:589)
  at Joomla\CMS\Application\SiteApplication->initialiseApp()
     (/var/www/rymdturism.se/public_html/libraries/src/Application/SiteApplication.php:238)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/var/www/rymdturism.se/public_html/libraries/src/Application/CMSApplication.php:306)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/rymdturism.se/public_html/includes/app.php:58)
  at require_once('/var/www/rymdturism.se/public_html/includes/app.php')
     (/var/www/rymdturism.se/public_html/index.php:32)