} } // 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'; } } // 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; $db->setQuery($query);
$tplname = $db->loadResult();
}
} else {
$tplname = $app->getTemplate(false);
}
if ($tplname) {
// parse xml
$filePath = JPath::clean(JPATH_ROOT.'/templates/'.$tplname.'/templateDetails.xml');
function onAfterRoute()
{
if(defined('T3_PLUGIN')){
T3Bot::preload();
$template = T3::detect();
if ($template) {
// load the language
$this->loadLanguage();
} // Convert to indexed array for unpacking. $arguments = \array_values($arguments); $result = $this->{$methodName}(...$arguments); // Ignore null results if ($result === null) { 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']; }} $this->input->def($key, $value); } // Trigger the onAfterRoute event. PluginHelper::importPlugin('system'); $this->triggerEvent('onAfterRoute'); $Itemid = $this->input->getInt('Itemid', null); $this->authorise($Itemid); } // Mark afterInitialise in the profiler. JDEBUG ? $this->profiler->mark('afterInitialise') : null; // Route the application $this->route(); // Mark afterRoute in the profiler. JDEBUG ? $this->profiler->mark('afterRoute') : null; if (!$this->isHandlingMultiFactorAuthentication()) { $this->sanityCheckSystemVariables(); $this->setupLogging(); $this->createExtensionNamespaceMap(); // Perform application routines. $this->doExecute(); // If we have an application document object, render it. if ($this->document instanceof \Joomla\CMS\Document\Document) { // Render the application output. $this->render();// 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';|
[2/2]
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(InvalidArgumentException))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Exception/ExceptionHandler.php:126)
at Joomla\CMS\Exception\ExceptionHandler::render(object(InvalidArgumentException))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Exception/ExceptionHandler.php:72)
at Joomla\CMS\Exception\ExceptionHandler::handleException(object(InvalidArgumentException))
(/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)
|
|
[1/2]
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(false)
(/home/janlauc180/domains/janlambers.nl/public_html/cms/plugins/system/t3/includes/core/t3.php:345)
at T3::detect()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/plugins/system/t3/t3.php:81)
at plgSystemT3->onAfterRoute()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Plugin/CMSPlugin.php:289)
at Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}(object(Event))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/vendor/joomla/event/src/Dispatcher.php:486)
at Joomla\Event\Dispatcher->dispatch('onAfterRoute', object(Event))
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent('onAfterRoute')
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/SiteApplication.php:790)
at Joomla\CMS\Application\SiteApplication->route()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/SiteApplication.php:232)
at Joomla\CMS\Application\SiteApplication->doExecute()
(/home/janlauc180/domains/janlambers.nl/public_html/cms/libraries/src/Application/CMSApplication.php:293)
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)
|