Notice: Undefined offset: 0 in /home/eshistorico/public_html/libraries/src/Application/SiteApplication.php on line 500

Notice: Trying to get property 'template' of non-object in /home/eshistorico/public_html/libraries/src/Application/SiteApplication.php on line 518

Warning: Creating default object from empty value in /home/eshistorico/public_html/libraries/src/Application/SiteApplication.php on line 518
Could not find template "". (500 Whoops, looks like something went wrong.)

PrepareStatementFailureException InvalidArgumentException

HTTP 500 Whoops, looks like something went wrong.

Could not find template "".

Exceptions 2

InvalidArgumentException

  1.                 }
  2.             }
  3.             // Check, the data were found and if template really exists
  4.             if (!is_file(JPATH_THEMES '/' $template->template '/index.php')) {
  5.                 throw new \InvalidArgumentException(Text::sprintf('JERROR_COULD_NOT_FIND_TEMPLATE'$original_tmpl));
  6.             }
  7.         }
  8.         // Cache the result
  9.         $this->template $template;
  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(PrepareStatementFailureException)) in /home/eshistorico/public_html/libraries/src/Exception/ExceptionHandler.php (line 121)
  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.                 $data $error->getMessage();
  8.             }
ExceptionHandler::render(object(PrepareStatementFailureException)) in /home/eshistorico/public_html/libraries/src/Exception/ExceptionHandler.php (line 72)
  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(PrepareStatementFailureException)) in /home/eshistorico/public_html/libraries/src/Application/CMSApplication.php (line 322)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->triggerEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->getDispatcher()->dispatch('onBeforeRespond');
CMSApplication->execute() in /home/eshistorico/public_html/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/eshistorico/public_html/includes/app.php') in /home/eshistorico/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\ PrepareStatementFailureException

Table 'eshistorico_eshistodb.eshi_session' doesn't exist

  1.         $this->statement  $connection->prepare($query);
  2.         if (!$this->statement)
  3.         {
  4.             throw new PrepareStatementFailureException($this->connection->error$this->connection->errno);
  5.         }
  6.     }
  7.     /**
  8.      * Replace named parameters with numbered parameters
  1.      * @since   2.0.0
  2.      * @throws  PrepareStatementFailureException
  3.      */
  4.     protected function prepareStatement(string $query): StatementInterface
  5.     {
  6.         return new MysqliStatement($this->connection$query);
  7.     }
  8.     /**
  9.      * Unlocks tables in the database.
  10.      *
  1.         $query->setLimit($limit$offset);
  2.         $sql $this->replacePrefix((string) $query);
  3.         $this->statement $this->prepareStatement($sql);
  4.         $this->sql    $query;
  5.         $this->limit  = (int) max(0$limit);
  6.         $this->offset = (int) max(0$offset);
DatabaseDriver->setQuery(object(MysqliQuery)) in /home/eshistorico/public_html/libraries/src/Session/MetadataManager.php (line 184)
  1.             ->from($this->db->quoteName('#__session'))
  2.             ->where($this->db->quoteName('session_id') . ' = :session_id')
  3.             ->bind(':session_id'$sessionId)
  4.             ->setLimit(1);
  5.         $this->db->setQuery($query);
  6.         try {
  7.             $exists $this->db->loadResult();
  8.         } catch (ExecutionFailureException $e) {
  9.             return self::$sessionRecordUnknown;
MetadataManager->checkSessionRecordExists('3529bdb7fa24e2250bbbb92409c768bc') in /home/eshistorico/public_html/libraries/src/Session/MetadataManager.php (line 125)
  1.      * @since   4.0.0
  2.      * @throws  \RuntimeException
  3.      */
  4.     public function createOrUpdateRecord(SessionInterface $sessionUser $user)
  5.     {
  6.         $exists $this->checkSessionRecordExists($session->getId());
  7.         // Do not try to touch the database if we can't determine the record state
  8.         if ($exists === self::$sessionRecordUnknown) {
  9.             return;
  10.         }
MetadataManager->createOrUpdateRecord(object(Session), object(User)) in /home/eshistorico/public_html/libraries/src/Session/EventListener/MetadataManagerListener.php (line 80)
  1.         // Whether to track Session Metadata for Guest user
  2.         if (!$this->config->get('session_metadata_for_guest'true) && !$user->id) {
  3.             return;
  4.         }
  5.         $this->metadataManager->createOrUpdateRecord($event->getSession(), $user);
  6.     }
  7. }
  1.                     $this->serviceId
  2.                 )
  3.             );
  4.         }
  5.         \call_user_func([$service$this->method], $event);
  6.     }
  7. }
  1.                 if ($event->isStopped())
  2.                 {
  3.                     return $event;
  4.                 }
  5.                 $listener($event);
  6.             }
  7.         }
  8.         return $event;
  9.     }
  1.                 // Dispatch deprecated event
  2.                 $this->dispatcher->dispatch('onAfterSessionStart', new SessionEvent('onAfterSessionStart'$this));
  3.             }
  4.             // Dispatch new event
  5.             $this->dispatcher->dispatch(SessionEvents::START, new SessionEvent(SessionEvents::START$this));
  6.         }
  7.     }
  8.     /**
  9.      * Frees all session variables and destroys all data registered to a session
  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.             // Parent is used because of b/c, can be changed in Joomla 5
  6.             return parent::get($name$default);
  7.         }
  8.         /*
  1.                 __CLASS__
  2.             ),
  3.             E_USER_DEPRECATED
  4.         );
  5.         $instance self::getApplication()->getSession()->get('user');
  6.         if (\is_null($id)) {
  7.             if (!($instance instanceof User)) {
  8.                 $instance User::getInstance();
  9.             }
  1.      *
  2.      * @since   3.2
  3.      */
  4.     protected function initialiseApp($options = [])
  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.             $guestUsergroup ComponentHelper::getParams('com_users')->get('guest_usergroup'1);
  10.             $user->groups   = [$guestUsergroup];
  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 /home/eshistorico/public_html/includes/app.php (line 61)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/eshistorico/public_html/includes/app.php') in /home/eshistorico/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 2

[2/2] InvalidArgumentException
InvalidArgumentException:
Could not find template "".

  at /home/eshistorico/public_html/libraries/src/Application/SiteApplication.php:557
  at Joomla\CMS\Application\SiteApplication->getTemplate(true)
     (/home/eshistorico/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(PrepareStatementFailureException))
     (/home/eshistorico/public_html/libraries/src/Exception/ExceptionHandler.php:121)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(PrepareStatementFailureException))
     (/home/eshistorico/public_html/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(PrepareStatementFailureException))
     (/home/eshistorico/public_html/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/eshistorico/public_html/includes/app.php:61)
  at require_once('/home/eshistorico/public_html/includes/app.php')
     (/home/eshistorico/public_html/index.php:32)                
[1/2] PrepareStatementFailureException
Joomla\Database\Exception\PrepareStatementFailureException:
Table 'eshistorico_eshistodb.eshi_session' doesn't exist

  at /home/eshistorico/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:141
  at Joomla\Database\Mysqli\MysqliStatement->__construct(object(mysqli), 'SELECT `session_id`FROM `eshi_session`WHERE `session_id` = ? LIMIT 1')
     (/home/eshistorico/public_html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:1089)
  at Joomla\Database\Mysqli\MysqliDriver->prepareStatement('SELECT `session_id`FROM `eshi_session`WHERE `session_id` = :session_id LIMIT 1')
     (/home/eshistorico/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php:1900)
  at Joomla\Database\DatabaseDriver->setQuery(object(MysqliQuery))
     (/home/eshistorico/public_html/libraries/src/Session/MetadataManager.php:184)
  at Joomla\CMS\Session\MetadataManager->checkSessionRecordExists('3529bdb7fa24e2250bbbb92409c768bc')
     (/home/eshistorico/public_html/libraries/src/Session/MetadataManager.php:125)
  at Joomla\CMS\Session\MetadataManager->createOrUpdateRecord(object(Session), object(User))
     (/home/eshistorico/public_html/libraries/src/Session/EventListener/MetadataManagerListener.php:80)
  at Joomla\CMS\Session\EventListener\MetadataManagerListener->onAfterSessionStart(object(SessionEvent))
     (/home/eshistorico/public_html/libraries/vendor/joomla/event/src/LazyServiceEventListener.php:128)
  at Joomla\Event\LazyServiceEventListener->__invoke(object(SessionEvent))
     (/home/eshistorico/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch('session.start', object(SessionEvent))
     (/home/eshistorico/public_html/libraries/vendor/joomla/session/src/Session.php:444)
  at Joomla\Session\Session->start()
     (/home/eshistorico/public_html/libraries/vendor/joomla/session/src/Session.php:333)
  at Joomla\Session\Session->has('user')
     (/home/eshistorico/public_html/libraries/src/Session/Session.php:194)
  at Joomla\CMS\Session\Session->get('user')
     (/home/eshistorico/public_html/libraries/src/Factory.php:374)
  at Joomla\CMS\Factory::getUser()
     (/home/eshistorico/public_html/libraries/src/Application/SiteApplication.php:582)
  at Joomla\CMS\Application\SiteApplication->initialiseApp()
     (/home/eshistorico/public_html/libraries/src/Application/SiteApplication.php:238)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/home/eshistorico/public_html/libraries/src/Application/CMSApplication.php:293)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/eshistorico/public_html/includes/app.php:61)
  at require_once('/home/eshistorico/public_html/includes/app.php')
     (/home/eshistorico/public_html/index.php:32)                

Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /var/cpanel/php/sessions/ea-php74) in /home/eshistorico/public_html/libraries/vendor/joomla/session/src/Storage/NativeStorage.php on line 114