} } } // Need to filter the default value as well $template->template = InputFilter::getInstance()->clean($template->template, 'cmd'); // Fallback template if (!empty($template->parent)) { if (!is_file(JPATH_THEMES . '/' . $template->template . '/index.php')) { if (!is_file(JPATH_THEMES . '/' . $template->parent . '/index.php')) { public function render(\Throwable $error): string { $app = Factory::getApplication(); // Get the current template from the application $template = $app->getTemplate(true); // Push the error object into the document $this->getDocument()->setError($error); // Add registry file for the template asset 'subject' => $app, 'document' => $renderer->getDocument(), ]) ); $data = $renderer->render($error); // If nothing was rendered, just use the message from the Exception if (empty($data)) { $data = $error->getMessage(); } * @since 3.10.0 */ public static function handleException(\Throwable $error) { static::logException($error); static::render($error); } /** * Render the error page based on an exception. * ); // Trigger the onError event. $this->dispatchEvent('onError', $event); ExceptionHandler::handleException($event->getError()); } // Trigger the onBeforeRespond event. $this->dispatchEvent( 'onBeforeRespond',// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php'; $redirect->hits++; try { $this->getDatabase()->updateObject('#__redirect_links', $redirect, ['id']); } catch (\Exception $e) { $event->setError(new \Exception($this->getApplication()->getLanguage()->_('PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE'), 500, $e)); return; } } } foreach ($this->listeners[$event->getName()] as $listener) { if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $dispatcher = $this->getDispatcher(); } catch (\UnexpectedValueException $exception) { return null; } return $dispatcher->dispatch($eventName, $event ?: new ApplicationEvent($eventName, $this)); } /** * Method to run the application routines. * 'application' => $this, ] ); // Trigger the onError event. $this->dispatchEvent('onError', $event); ExceptionHandler::handleException($event->getError()); } // Trigger the onBeforeRespond event.// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php'; $this->connection = $connection; $this->query = $query; $query = $this->prepareParameterKeyMapping($query); $this->statement = $connection->prepare($query); if (!$this->statement) { throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno); } } $this->connection = $connection; $this->query = $query; $query = $this->prepareParameterKeyMapping($query); $this->statement = $connection->prepare($query); if (!$this->statement) { throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno); } } * @since 2.0.0 * @throws PrepareStatementFailureException */ protected function prepareStatement(string $query): StatementInterface { return new MysqliStatement($this->connection, $query); } /** * Unlocks tables in the database. * $query->setLimit($limit, $offset); $sql = $this->replacePrefix((string) $query); $this->statement = $this->prepareStatement($sql); $this->sql = $query; $this->limit = (int) max(0, $limit); $this->offset = (int) max(0, $offset); $this->connect(); $result = []; // Set the query to get the table fields statement. $fields = $this->setQuery('SHOW FULL COLUMNS FROM ' . $this->quoteName($this->escape($table)))->loadObjectList(); // If we only want the type as the value add just that to the list. if ($typeOnly) { foreach ($fields as $field) { $result[$field->Field] = preg_replace('/[(0-9)]/', '', $field->Type); */ public function updateObject($table, &$object, $key, $nulls = false) { $fields = []; $where = []; $tableColumns = $this->getTableColumns($table); if (\is_string($key)) { $key = [$key]; } } else { // We have an unpublished redirect object, increment the hit counter $redirect->hits++; try { $this->getDatabase()->updateObject('#__redirect_links', $redirect, ['id']); } catch (\Exception $e) { $event->setError(new \Exception($this->getApplication()->getLanguage()->_('PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE'), 500, $e)); return; } foreach ($this->listeners[$event->getName()] as $listener) { if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $dispatcher = $this->getDispatcher(); } catch (\UnexpectedValueException $exception) { return null; } return $dispatcher->dispatch($eventName, $event ?: new ApplicationEvent($eventName, $this)); } /** * Method to run the application routines. * 'application' => $this, ] ); // Trigger the onError event. $this->dispatchEvent('onError', $event); ExceptionHandler::handleException($event->getError()); } // Trigger the onBeforeRespond event.// Set the application as global app\Joomla\CMS\Factory::$application = $app;// Execute the application.$app->execute(); * define() is used rather than "const" to not error for PHP 5.2 and lower */define('_JEXEC', 1);// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php';|
[3/3]
Error
|
|---|
Error:
Attempt to assign property "template" on null
at /var/www/smartalarm.gr/libraries/src/Application/SiteApplication.php:501
at Joomla\CMS\Application\SiteApplication->getTemplate()
(/var/www/smartalarm.gr/libraries/src/Error/Renderer/HtmlRenderer.php:50)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
(/var/www/smartalarm.gr/libraries/src/Exception/ExceptionHandler.php:136)
at Joomla\CMS\Exception\ExceptionHandler::render()
(/var/www/smartalarm.gr/libraries/src/Exception/ExceptionHandler.php:73)
at Joomla\CMS\Exception\ExceptionHandler::handleException()
(/var/www/smartalarm.gr/libraries/src/Application/CMSApplication.php:334)
at Joomla\CMS\Application\CMSApplication->execute()
(/var/www/smartalarm.gr/includes/app.php:58)
at require_once('/var/www/smartalarm.gr/includes/app.php')
(/var/www/smartalarm.gr/index.php:32)
|
|
[2/3]
Exception
|
|---|
Exception:
Συνέβη ένα σφάλμα κατά την ενημέρωση της βάσης δεδομένων.
at /var/www/smartalarm.gr/plugins/system/redirect/src/Extension/Redirect.php:259
at Joomla\Plugin\System\Redirect\Extension\Redirect->handleError()
(/var/www/smartalarm.gr/libraries/vendor/joomla/event/src/Dispatcher.php:454)
at Joomla\Event\Dispatcher->dispatch()
(/var/www/smartalarm.gr/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
at Joomla\Application\AbstractApplication->dispatchEvent()
(/var/www/smartalarm.gr/libraries/src/Application/CMSApplication.php:332)
at Joomla\CMS\Application\CMSApplication->execute()
(/var/www/smartalarm.gr/includes/app.php:58)
at require_once('/var/www/smartalarm.gr/includes/app.php')
(/var/www/smartalarm.gr/index.php:32)
|
|
[1/3]
mysqli_sql_exception
|
|---|
mysqli_sql_exception:
Disk got full writing 'information_schema.(temporary)' (Errcode: 28 "No space left on device")
at /var/www/smartalarm.gr/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:138
at mysqli->prepare()
(/var/www/smartalarm.gr/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:138)
at Joomla\Database\Mysqli\MysqliStatement->__construct()
(/var/www/smartalarm.gr/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:972)
at Joomla\Database\Mysqli\MysqliDriver->prepareStatement()
(/var/www/smartalarm.gr/libraries/vendor/joomla/database/src/DatabaseDriver.php:1780)
at Joomla\Database\DatabaseDriver->setQuery()
(/var/www/smartalarm.gr/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:539)
at Joomla\Database\Mysqli\MysqliDriver->getTableColumns()
(/var/www/smartalarm.gr/libraries/vendor/joomla/database/src/DatabaseDriver.php:1831)
at Joomla\Database\DatabaseDriver->updateObject()
(/var/www/smartalarm.gr/plugins/system/redirect/src/Extension/Redirect.php:257)
at Joomla\Plugin\System\Redirect\Extension\Redirect->handleError()
(/var/www/smartalarm.gr/libraries/vendor/joomla/event/src/Dispatcher.php:454)
at Joomla\Event\Dispatcher->dispatch()
(/var/www/smartalarm.gr/libraries/vendor/joomla/application/src/AbstractApplication.php:99)
at Joomla\Application\AbstractApplication->dispatchEvent()
(/var/www/smartalarm.gr/libraries/src/Application/CMSApplication.php:332)
at Joomla\CMS\Application\CMSApplication->execute()
(/var/www/smartalarm.gr/includes/app.php:58)
at require_once('/var/www/smartalarm.gr/includes/app.php')
(/var/www/smartalarm.gr/index.php:32)
|