/** * ErrorDocument class, provides an easy interface to parse and display an HTML based error page * * @since 1.7.0 */class ErrorDocument extends HtmlDocument{ /** * Flag if debug mode has been enabled * * @var boolean * * @param string $file * @return void */ self::$includeFile = \Closure::bind(static function($file) { include $file; }, null, null); }} */ public function loadClass($class) { if ($file = $this->findFile($class)) { $includeFile = self::$includeFile; $includeFile($file); return true; } return null; * * @since 3.4 */ public function loadClass($class) { if ($result = $this->loader->loadClass($class)) { \JLoader::applyAliasFor($class); } return $result; } $type = preg_replace('/[^A-Z0-9_\.-]/i', '', $type); $ntype = null; $class = __NAMESPACE__ . '\\' . ucfirst($type) . 'Document'; if (!class_exists($class)) { $class = 'JDocument' . ucfirst($type); } if (!class_exists($class)) { $ntype = $type; if (Factory::$language) { $attributes['language'] = Factory::getLanguage()->getTag(); $attributes['direction'] = Factory::getLanguage()->isRtl() ? 'rtl' : 'ltr'; } return Factory::getContainer()->get(FactoryInterface::class)->createDocument($this->type, $attributes); }} */ public function getDocument(): Document { // Load the document if not already if (!$this->document) { $this->document = $this->loadDocument(); } return $this->document; } // Default to the HTML renderer $renderer = AbstractRenderer::getRenderer('html'); } // 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); // Trigger the onAfterInitialiseDocument event. $app->getDispatcher()->dispatch( 'onAfterInitialiseDocument', * @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()) { $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(); // ... die die();}// Run the application - All executable code should be triggered through this filerequire_once __DIR__ . '/includes/app.php';|
[2/2]
ClassNotFoundError
|
|---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "HtmlDocument" from namespace "Joomla\CMS\Document".
Did you forget a "use" statement for another namespace?
at /www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Document/ErrorDocument.php:24
at include()
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/vendor/composer/ClassLoader.php:576)
at Composer\Autoload\{closure}('/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/vendor/composer/../../../libraries/src/Document/ErrorDocument.php')
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/vendor/composer/ClassLoader.php:427)
at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Document\\ErrorDocument')
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Autoload/ClassLoader.php:59)
at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Document\\ErrorDocument')
at class_exists('Joomla\\CMS\\Document\\ErrorDocument')
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Document/Factory.php:45)
at Joomla\CMS\Document\Factory->createDocument('error', array('charset' => 'utf-8', 'lineend' => 'unix', 'tab' => ' ', 'language' => 'de-DE', 'direction' => 'ltr'))
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Error/AbstractRenderer.php:112)
at Joomla\CMS\Error\AbstractRenderer->loadDocument()
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Error/AbstractRenderer.php:54)
at Joomla\CMS\Error\AbstractRenderer->getDocument()
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Exception/ExceptionHandler.php:130)
at Joomla\CMS\Exception\ExceptionHandler::render(object(RouteNotFoundException))
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Exception/ExceptionHandler.php:76)
at Joomla\CMS\Exception\ExceptionHandler::handleException(object(RouteNotFoundException))
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Application/CMSApplication.php:334)
at Joomla\CMS\Application\CMSApplication->execute()
(/www/htdocs/w00d4fe7/hp_bbs1_v2/includes/app.php:58)
at require_once('/www/htdocs/w00d4fe7/hp_bbs1_v2/includes/app.php')
(/www/htdocs/w00d4fe7/hp_bbs1_v2/index.php:51)
|
|
[1/2]
RouteNotFoundException
|
|---|
Joomla\CMS\Router\Exception\RouteNotFoundException:
Seite nicht gefunden
at /www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Router/Router.php:166
at Joomla\CMS\Router\Router->parse(object(Uri), true)
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Application/SiteApplication.php:767)
at Joomla\CMS\Application\SiteApplication->route()
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Application/SiteApplication.php:243)
at Joomla\CMS\Application\SiteApplication->doExecute()
(/www/htdocs/w00d4fe7/hp_bbs1_v2/libraries/src/Application/CMSApplication.php:304)
at Joomla\CMS\Application\CMSApplication->execute()
(/www/htdocs/w00d4fe7/hp_bbs1_v2/includes/app.php:58)
at require_once('/www/htdocs/w00d4fe7/hp_bbs1_v2/includes/app.php')
(/www/htdocs/w00d4fe7/hp_bbs1_v2/index.php:51)
|