} } // Check, the data were found and if template really exists if (!is_file(JPATH_THEMES . '/' . $template->template . '/index.php')) { throw new \InvalidArgumentException(Text::sprintf('JERROR_COULD_NOT_FIND_TEMPLATE', $original_tmpl)); } } // Cache the result $this->template = $template; 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 // Reset the document object in the factory, this gives us a clean slate and lets everything render properly Factory::$document = $renderer->getDocument(); Factory::getApplication()->loadDocument(Factory::$document); $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->triggerEvent('onError', $event); ExceptionHandler::handleException($event->getError()); } // Trigger the onBeforeRespond event. $this->getDispatcher()->dispatch('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 dirname(__FILE__) . '/includes/app.php'; ]; try { $this->getDatabase()->insertObject('#__redirect_links', $data, 'id'); } catch (\Exception $e) { $event->setError(new \Exception($this->getApplication()->getLanguage()->_('PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE'), 500, $e)); return; } } } else { if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $event = new $className($eventName, $args); } else { throw new \InvalidArgumentException('The arguments must either be an event or an array'); } $result = $dispatcher->dispatch($eventName, $event); // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result']; }} 'application' => $this, ] ); // Trigger the onError event. $this->triggerEvent('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 dirname(__FILE__) . '/includes/app.php'; throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno); } } catch (\Throwable $e) { throw new ExecutionFailureException($this->query, $e->getMessage(), $e->getCode(), $e); } if ($this->columnNames === null) { $meta = $this->statement->result_metadata(); $this->statement->bindParam($key, $obj->value, $obj->dataType); } try { $this->executed = $this->statement->execute(); // If there is a monitor registered, let it know we have finished this query if ($this->monitor) { $this->monitor->stopQuery(); ->insert($this->quoteName($table)) ->columns($fields) ->values(implode(',', $values)); // Set the query and execute the insert. $this->setQuery($query)->execute(); // Update the primary key if it exists. $id = $this->insertid(); if ($key && $id && \is_string($key)) 'created_date' => $nowDate, 'modified_date' => $nowDate, ]; try { $this->getDatabase()->insertObject('#__redirect_links', $data, 'id'); } catch (\Exception $e) { $event->setError(new \Exception($this->getApplication()->getLanguage()->_('PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE'), 500, $e)); return; } if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $event = new $className($eventName, $args); } else { throw new \InvalidArgumentException('The arguments must either be an event or an array'); } $result = $dispatcher->dispatch($eventName, $event); // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result']; }} 'application' => $this, ] ); // Trigger the onError event. $this->triggerEvent('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 dirname(__FILE__) . '/includes/app.php'; try { if (!$this->statement->execute()) { throw new ExecutionFailureException($this->query, $this->statement->error, $this->statement->errno); } } catch (\Throwable $e) { throw new ExecutionFailureException($this->query, $e->getMessage(), $e->getCode(), $e); $this->statement->bindParam($key, $obj->value, $obj->dataType); } try { $this->executed = $this->statement->execute(); // If there is a monitor registered, let it know we have finished this query if ($this->monitor) { $this->monitor->stopQuery(); ->insert($this->quoteName($table)) ->columns($fields) ->values(implode(',', $values)); // Set the query and execute the insert. $this->setQuery($query)->execute(); // Update the primary key if it exists. $id = $this->insertid(); if ($key && $id && \is_string($key)) 'created_date' => $nowDate, 'modified_date' => $nowDate, ]; try { $this->getDatabase()->insertObject('#__redirect_links', $data, 'id'); } catch (\Exception $e) { $event->setError(new \Exception($this->getApplication()->getLanguage()->_('PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE'), 500, $e)); return; } if ($event->isStopped()) { return $event; } $listener($event); } } return $event; } $event = new $className($eventName, $args); } else { throw new \InvalidArgumentException('The arguments must either be an event or an array'); } $result = $dispatcher->dispatch($eventName, $event); // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result']; }} 'application' => $this, ] ); // Trigger the onError event. $this->triggerEvent('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 dirname(__FILE__) . '/includes/app.php';|
[4/4]
InvalidArgumentException
|
|---|
InvalidArgumentException:
Kan template "_QQ_""_QQ_" niet vinden.
at /home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/SiteApplication.php:537
at Joomla\CMS\Application\SiteApplication->getTemplate(true)
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Error/Renderer/HtmlRenderer.php:50)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Exception))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Exception/ExceptionHandler.php:126)
at Joomla\CMS\Exception\ExceptionHandler::render(object(Exception))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Exception/ExceptionHandler.php:72)
at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Exception))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/CMSApplication.php:322)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/includes/app.php:61)
at require_once('/home/janlauc180/domains/janlambers.nl/public_html/cms/includes/app.php')
(/home/janlauc180/domains/janlambers.nl/public_html/cms/index.php:32)
|
|
[3/4]
Exception
|
|---|
Exception:
PLG_SYSTEM_REDIRECT_ERROR_UPDATING_DATABASE
at /home/janlauc180/domains/janlambers.nl/public_html/cms/plugins/system/redirect/src/Extension/Redirect.php:252
at Joomla\Plugin\System\Redirect\Extension\Redirect->handleError(object(ErrorEvent))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/CMSApplication.php:320)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/includes/app.php:61)
at require_once('/home/janlauc180/domains/janlambers.nl/public_html/cms/includes/app.php')
(/home/janlauc180/domains/janlambers.nl/public_html/cms/index.php:32)
|
|
[2/4]
ExecutionFailureException
|
|---|
Joomla\Database\Exception\ExecutionFailureException:
Field 'new_url' doesn't have a default value
at /home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:442
at Joomla\Database\Mysqli\MysqliStatement->execute()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/vendor/joomla/database/src/DatabaseDriver.php:687)
at Joomla\Database\DatabaseDriver->execute()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:817)
at Joomla\Database\Mysqli\MysqliDriver->insertObject('#__redirect_links', object(stdClass), 'id')
(/home/janlauc180/domains/janlambers.nl/public_html/cms/plugins/system/redirect/src/Extension/Redirect.php:250)
at Joomla\Plugin\System\Redirect\Extension\Redirect->handleError(object(ErrorEvent))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/CMSApplication.php:320)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/includes/app.php:61)
at require_once('/home/janlauc180/domains/janlambers.nl/public_html/cms/includes/app.php')
(/home/janlauc180/domains/janlambers.nl/public_html/cms/index.php:32)
|
|
[1/4]
ExecutionFailureException
|
|---|
Joomla\Database\Exception\ExecutionFailureException:
Field 'new_url' doesn't have a default value
at /home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:437
at Joomla\Database\Mysqli\MysqliStatement->execute()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/vendor/joomla/database/src/DatabaseDriver.php:687)
at Joomla\Database\DatabaseDriver->execute()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:817)
at Joomla\Database\Mysqli\MysqliDriver->insertObject('#__redirect_links', object(stdClass), 'id')
(/home/janlauc180/domains/janlambers.nl/public_html/cms/plugins/system/redirect/src/Extension/Redirect.php:250)
at Joomla\Plugin\System\Redirect\Extension\Redirect->handleError(object(ErrorEvent))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch('onError', object(ErrorEvent))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent('onError', object(ErrorEvent))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/CMSApplication.php:320)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/includes/app.php:61)
at require_once('/home/janlauc180/domains/janlambers.nl/public_html/cms/includes/app.php')
(/home/janlauc180/domains/janlambers.nl/public_html/cms/index.php:32)
|