You may not be able to visit this page because of:
Please try one of the following pages:
If difficulties persist, please contact the website administrator and report the error below.
Error Code: Page not found
} public static function addIncludePath (&$path) { //JPATH_THEMES $template_path = str_replace('\\', '/', T4PATH_TPL); for($i = count($path)-1; $i >= 0; $i--) { $p = str_replace('\\', '/', $path[$i]); if (strpos($p, $template_path) === 0) { $file = substr($p, strlen($template_path)); // add base path theme after template path /** * Implement event to allow select layout from base theme inside plugin. * These events are fireed by overriding Core Joomla lib: FileLayout, HtmlView, ModuleHelper */ public function onLayoutIncludePaths (&$path) { \T4\Helper\Path::addIncludePath($path); } public function onHtmlViewAddPath ($type, &$path) { \T4\Helper\Path::addIncludePath($path); } public function onGetLayoutPath($path, $layout) } // Convert to indexed array for unpacking. $arguments = array_values($arguments); $result = $this->{$methodName}(...$arguments); // Ignore null results if ($result === null) { return; } foreach ($this->listeners[$event->getName()] as $listener) { 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']; }} public function getDefaultIncludePaths() { $path = parent::getDefaultIncludePaths(); //Trigger event, then can alter include paths \Joomla\CMS\Factory::getApplication()->triggerEvent('onLayoutIncludePaths', array(&$path)); return $path; } public function getSuffixes() * @since 3.5 */ public function getIncludePaths() { if (empty($this->includePaths)) { $this->includePaths = $this->getDefaultIncludePaths(); } return $this->includePaths; } * @since 3.0 */ protected function getPath() { $layoutId = $this->getLayoutId(); $includePaths = $this->getIncludePaths(); $suffixes = $this->getSuffixes(); $this->addDebugMessage('<strong>Layout:</strong> ' . $this->layoutId); if (!$layoutId) { if (\is_array($displayData)) { $displayData = array_merge($this->data, $displayData); } // Check possible overrides, and build the full path to layout file $path = $this->getPath(); if ($this->isDebugEnabled()) { echo '<pre>' . $this->renderDebugMessages() . '</pre>'; } // Make sure we send null to FileLayout if no path set $basePath = empty($basePath) ? null : $basePath; $layout = new FileLayout($layoutFile, $basePath, $options); return $layout->render($displayData); }} 'params' => $params, 'attribs' => $attribs, ]; foreach (explode(' ', $attribs['style']) as $style) { $moduleContent = LayoutHelper::render('chromes.' . $style, $displayData, $basePath); if ($moduleContent) { $module->content = $moduleContent; } } $module->contentRendered = true; return $module->content; } return ModuleHelper::renderModule($module, $attribs); }} $user = Factory::getUser(); $frontediting = ($app->isClient('site') && $app->get('frontediting', 1) && !$user->guest); $menusEditing = ($app->get('frontediting', 1) == 2) && $user->authorise('core.edit', 'com_menus'); foreach (ModuleHelper::getModules($position) as $mod) { $moduleHtml = $renderer->render($mod, $params, $content); if ($frontediting && trim($moduleHtml) != '' && $user->authorise('module.edit.frontend', 'com_modules.module.' . $mod->id)) { $displayData = ['moduleHtml' => &$moduleHtml, 'module' => $mod, 'position' => $position, 'menusediting' => $menusEditing]; LayoutHelper::render('joomla.edit.frontediting_modules', $displayData); } $cbuffer[$hash] = $tmpdata; $cache->store($cbuffer, 'cbuffer_' . $type); } else { $this->setBuffer($renderer->render($name, $attribs, null), $type, $name, $title); } return parent::$_buffer[$type][$name][$title]; }<?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?></p></div></div></div></div></div><?php echo $doc->getBuffer('modules', 'debug', array('style' => 'none')); ?>
</div></body></html> // Store the file path $this->_file = $directory . '/' . $filename; // Get the file content ob_start(); require $directory . '/' . $filename; $contents = ob_get_clean(); } return $contents; } $this->baseurl = Uri::base(true); $this->params = $params['params'] ?? new Registry(); $this->template = $template; // Load $this->_template = $this->_loadTemplate($baseDir, $file); return $this; } /** * * @since 1.7.0 */ public function parse($params = []) { return $this->_fetchTemplate($params)->_parseTemplate(); } /** * Outputs the template to the browser. * public function render($caching = false, $params = []) { $this->_caching = $caching; if (empty($this->_template)) { $this->parse($params); } if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) { $this->cspNonce = $params['csp_nonce']; } $this->debug = $params['debug'] ?? false; $this->error = $this->_error; $params['file'] = 'error.php'; return parent::render($cache, $params); } /** * Render the backtrace * ob_end_clean(); } $this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode()); return $this->getDocument()->render( false, [ 'template' => $template->template, 'directory' => JPATH_THEMES, 'debug' => JDEBUG, '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(); // ... die die();}// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php'; $this->processParseRules($uri, self::PROCESS_AFTER); // Check if all parts of the URL have been parsed. // Otherwise we have an invalid URL if (\strlen($uri->getPath()) > 0) { throw new RouteNotFoundException(Text::_('JERROR_PAGE_NOT_FOUND')); } if ($setVars) { $this->setVars($uri->getQuery(true)); // Get the full request URI. $uri = clone Uri::getInstance(); // It is not possible to inject the SiteRouter as it requires a SiteApplication // and we would end in an infinite loop $result = $this->getContainer()->get(SiteRouter::class)->parse($uri, true); $active = $this->getMenu()->getActive(); if ( $active !== null // 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()) { // Mark beforeExecute in the profiler. JDEBUG ? $this->profiler->mark('beforeExecute event dispatched') : null; // 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(); // ... die die();}// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php';|
[2/2]
Error
|
|---|
Error:
Undefined constant "T4\Helper\T4PATH_TPL"
at /var/www/suriyan.dk/public_html/mediaasia.in/plugins/system/t4/src/t4/Helper/Path.php:98
at T4\Helper\Path::addIncludePath(array('/var/www/suriyan.dk/public_html/mediaasia.in/templates/corrust4/html/layouts', '/var/www/suriyan.dk/public_html/mediaasia.in/layouts'))
(/var/www/suriyan.dk/public_html/mediaasia.in/plugins/system/t4/t4.php:312)
at PlgSystemT4->onLayoutIncludePaths(array('/var/www/suriyan.dk/public_html/mediaasia.in/templates/corrust4/html/layouts', '/var/www/suriyan.dk/public_html/mediaasia.in/layouts'))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Plugin/CMSPlugin.php:386)
at Joomla\CMS\Plugin\CMSPlugin->{closure:Joomla\CMS\Plugin\CMSPlugin::registerLegacyListener():370}(object(Event))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/vendor/joomla/event/src/Dispatcher.php:454)
at Joomla\Event\Dispatcher->dispatch('onLayoutIncludePaths', object(Event))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Application/EventAware.php:111)
at Joomla\CMS\Application\WebApplication->triggerEvent('onLayoutIncludePaths', array(array('/var/www/suriyan.dk/public_html/mediaasia.in/templates/corrust4/html/layouts', '/var/www/suriyan.dk/public_html/mediaasia.in/layouts')))
(/var/www/suriyan.dk/public_html/mediaasia.in/plugins/system/t4/src/joomla/src/Layout/FileLayout.php:24)
at Joomla\CMS\Layout\FileLayout->getDefaultIncludePaths()
(/var/www/suriyan.dk/public_html/mediaasia.in/administrator/cache/t4core/FileLayout.php:283)
at Joomla\CMS\Layout\_JFileLayout->getIncludePaths()
(/var/www/suriyan.dk/public_html/mediaasia.in/administrator/cache/t4core/FileLayout.php:144)
at Joomla\CMS\Layout\_JFileLayout->getPath()
(/var/www/suriyan.dk/public_html/mediaasia.in/administrator/cache/t4core/FileLayout.php:116)
at Joomla\CMS\Layout\_JFileLayout->render(array('module' => object(stdClass), 'params' => object(Registry), 'attribs' => array('style' => 'none')))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Layout/LayoutHelper.php:76)
at Joomla\CMS\Layout\LayoutHelper::render('chromes.none', array('module' => object(stdClass), 'params' => object(Registry), 'attribs' => array('style' => 'none')), null)
(/var/www/suriyan.dk/public_html/mediaasia.in/administrator/cache/t4core/ModuleHelper.php:230)
at Joomla\CMS\Helper\_JModuleHelper::renderModule(object(stdClass), array('style' => 'none'))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99)
at Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(object(stdClass), array('style' => 'none'), null)
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Document/Renderer/Html/ModulesRenderer.php:51)
at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('debug', array('style' => 'none'), null)
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Document/HtmlDocument.php:578)
at Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'debug', array('style' => 'none'))
(/var/www/suriyan.dk/public_html/mediaasia.in/templates/corrust4/error.php:140)
at require('/var/www/suriyan.dk/public_html/mediaasia.in/templates/corrust4/error.php')
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Document/HtmlDocument.php:734)
at Joomla\CMS\Document\HtmlDocument->_loadTemplate('/var/www/suriyan.dk/public_html/mediaasia.in/templates/corrust4', 'error.php')
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Document/HtmlDocument.php:791)
at Joomla\CMS\Document\HtmlDocument->_fetchTemplate(array('template' => 'corrust4', 'directory' => '/var/www/suriyan.dk/public_html/mediaasia.in/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Document/HtmlDocument.php:625)
at Joomla\CMS\Document\HtmlDocument->parse(array('template' => 'corrust4', 'directory' => '/var/www/suriyan.dk/public_html/mediaasia.in/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Document/HtmlDocument.php:643)
at Joomla\CMS\Document\HtmlDocument->render(false, array('template' => 'corrust4', 'directory' => '/var/www/suriyan.dk/public_html/mediaasia.in/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Document/ErrorDocument.php:139)
at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'corrust4', 'directory' => '/var/www/suriyan.dk/public_html/mediaasia.in/templates', 'debug' => false, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php'))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Error/Renderer/HtmlRenderer.php:70)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(RouteNotFoundException))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Exception/ExceptionHandler.php:142)
at Joomla\CMS\Exception\ExceptionHandler::render(object(RouteNotFoundException))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Exception/ExceptionHandler.php:76)
at Joomla\CMS\Exception\ExceptionHandler::handleException(object(RouteNotFoundException))
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Application/CMSApplication.php:350)
at Joomla\CMS\Application\CMSApplication->execute()
(/var/www/suriyan.dk/public_html/mediaasia.in/includes/app.php:58)
at require_once('/var/www/suriyan.dk/public_html/mediaasia.in/includes/app.php')
(/var/www/suriyan.dk/public_html/mediaasia.in/index.php:51)
|
|
[1/2]
RouteNotFoundException
|
|---|
Joomla\CMS\Router\Exception\RouteNotFoundException:
Page not found
at /var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Router/Router.php:166
at Joomla\CMS\Router\Router->parse(object(Uri), true)
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Application/SiteApplication.php:607)
at Joomla\CMS\Application\SiteApplication->route()
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Application/SiteApplication.php:244)
at Joomla\CMS\Application\SiteApplication->doExecute()
(/var/www/suriyan.dk/public_html/mediaasia.in/libraries/src/Application/CMSApplication.php:320)
at Joomla\CMS\Application\CMSApplication->execute()
(/var/www/suriyan.dk/public_html/mediaasia.in/includes/app.php:58)
at require_once('/var/www/suriyan.dk/public_html/mediaasia.in/includes/app.php')
(/var/www/suriyan.dk/public_html/mediaasia.in/index.php:51)
|