MissingComponentException ClassNotFoundError

HTTP 500 Whoops, looks like something went wrong.

Attempted to load class "JApplication" from the global namespace.
Did you forget a "use" statement?

Exceptions 2

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  1.    * @return  int/boolean Found Itemid, false if correct Itemid was not found or passed Itemid is correct
  2.    * @since   1.5.5
  3.    */
  4.   public static function checkItemid($Itemid)
  5.   {
  6.     $mainframe  JApplication::getInstance('site');
  7.     $menu       $mainframe->getMenu();
  8.     $menuItem   $menu->getItem($Itemid);
  9.     if(!isset($menuItem->query['view']) || $menuItem->query['view'] == 'gallery')
  10.     {
  11.       return false;
  1.   if(isset($query['view']) && $query['view'] == 'gallery')
  2.   {
  3.     unset($query['view']);
  4.     JLoader::register('JoomRouting'JPATH_ROOT.'/components/'._JOOM_OPTION.'/helpers/routing.php');
  5.     if(isset($query['Itemid']) && $Itemid JoomRouting::checkItemid($query['Itemid']))
  6.     {
  7.       $query['Itemid'] = $Itemid;
  8.     }
  9.   }
  1.     public function build(&$query)
  2.     {
  3.         $function $this->component 'BuildRoute';
  4.         if (\function_exists($function)) {
  5.             $segments $function($query);
  6.             $total    \count($segments);
  7.             for ($i 0$i $total$i++) {
  8.                 $segments[$i] = str_replace(':''-'$segments[$i]);
  9.             }
  1.         $item = empty($query['Itemid']) ? null $this->menu->getItem($query['Itemid']);
  2.         // Build the component route
  3.         $component preg_replace('/[^A-Z0-9_\.-]/i'''$query['option']);
  4.         $crouter   $this->getComponentRouter($component);
  5.         $parts     $crouter->build($query);
  6.         $tmp       trim(implode('/'$parts));
  7.         // Build the application route
  8.         if ($item !== null && $query['option'] === $item->component) {
  9.             if (!$item->home) {
  1.         if (!\array_key_exists('build' $stage$this->rules)) {
  2.             throw new \InvalidArgumentException(sprintf('The %s stage is not registered. (%s)'$stage__METHOD__));
  3.         }
  4.         foreach ($this->rules['build' $stage] as $rule) {
  5.             \call_user_func_array($rule, [&$this, &$uri]);
  6.         }
  7.     }
  8.     /**
  9.      * Create a uri based on a full or partial URL string
  1.         // Do the preprocess stage of the URL build process
  2.         $this->processBuildRules($uriself::PROCESS_BEFORE);
  3.         // Do the main stage of the URL build process
  4.         $this->processBuildRules($uri);
  5.         // Do the postprocess stage of the URL build process
  6.         $this->processBuildRules($uriself::PROCESS_AFTER);
  7.         $this->cache[$key] = clone $uri;
  1.         if (!isset(self::$_router[$client])) {
  2.             throw new \RuntimeException(Text::sprintf('JLIB_APPLICATION_ERROR_ROUTER_LOAD'$client), 500);
  3.         }
  4.         // Build route.
  5.         $uri    self::$_router[$client]->build($url);
  6.         $scheme = ['path''query''fragment'];
  7.         /*
  8.          * Get the secure/unsecure URLs.
  9.          *
  1.             }
  2.             $app    Factory::getApplication();
  3.             $client $app->getName();
  4.             return static::link($client$url$xhtml$tls$absolute);
  5.         } catch (\RuntimeException $e) {
  6.             /**
  7.              * @deprecated  3.9 this method will not fail silently from 5.0
  8.              *              Before 3.9.0 this method failed silently on router error. This B/C will be removed in Joomla 5.0
  9.              */
  1.                             $item->flink 'index.php?Itemid=' $item->id;
  2.                             break;
  3.                     }
  4.                     if ((strpos($item->flink'index.php?') !== false) && strcasecmp(substr($item->flink04), 'http')) {
  5.                         $item->flink Route::_($item->flinktrue$itemParams->get('secure'));
  6.                     } else {
  7.                         $item->flink Route::_($item->flink);
  8.                     }
  9.                     // We prevent the double encoding because for some reason the $item is shared for menu modules and we get double encoding
  1. defined('_JEXEC') or die;
  2. use Joomla\CMS\Helper\ModuleHelper;
  3. use Joomla\Module\Menu\Site\Helper\MenuHelper;
  4. $list       MenuHelper::getList($params);
  5. $base       MenuHelper::getBase($params);
  6. $active     MenuHelper::getActive($params);
  7. $default    MenuHelper::getDefault();
  8. $active_id  $active->id;
  9. $default_id $default->id;
include('/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/modules/mod_menu/mod_menu.php') in /var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Dispatcher/ModuleDispatcher.php (line 52)
  1.                 unset($displayData);
  2.             } else {
  3.                 extract($displayData);
  4.             }
  5.             include $path;
  6.         };
  7.         $loader($path$this->getLayoutData());
  8.     }
  9. }
  1.             }
  2.             include $path;
  3.         };
  4.         $loader($path$this->getLayoutData());
  5.     }
  6. }
  1.         $dispatcher $app->bootModule($module->module$app->getName())->getDispatcher($module$app);
  2.         // Check if we have a dispatcher
  3.         if ($dispatcher) {
  4.             ob_start();
  5.             $dispatcher->dispatch();
  6.             $module->content ob_get_clean();
  7.         }
  8.         // Add the flag that the module content has been rendered
  9.         $module->contentRendered true;
  1.         // Get module parameters
  2.         $params = new Registry($module->params);
  3.         // Render the module content
  4.         static::renderRawModule($module$params$attribs);
  5.         // Return early if only the content is required
  6.         if (!empty($attribs['contentOnly'])) {
  7.             return $module->content;
  8.         }
  1.             $module->contentRendered true;
  2.             return $module->content;
  3.         }
  4.         return ModuleHelper::renderModule($module$attribs);
  5.     }
  6. }
  1.         $user         Factory::getUser();
  2.         $frontediting = ($app->isClient('site') && $app->get('frontediting'1) && !$user->guest);
  3.         $menusEditing = ($app->get('frontediting'1) == 2) && $user->authorise('core.edit''com_menus');
  4.         foreach (ModuleHelper::getModules($position) as $mod) {
  5.             $moduleHtml $renderer->render($mod$params$content);
  6.             if ($frontediting && trim($moduleHtml) != '' && $user->authorise('module.edit.frontend''com_modules.module.' $mod->id)) {
  7.                 $displayData = ['moduleHtml' => &$moduleHtml'module' => $mod'position' => $position'menusediting' => $menusEditing];
  8.                 LayoutHelper::render('joomla.edit.frontediting_modules'$displayData);
  9.             }
  1.             $cbuffer[$hash] = $tmpdata;
  2.             $cache->store($cbuffer'cbuffer_' $type);
  3.         } else {
  4.             $this->setBuffer($renderer->render($name$attribsnull), $type$name$title);
  5.         }
  6.         return parent::$_buffer[$type][$name][$title];
  7.     }
  1.         $replace = [];
  2.         $with    = [];
  3.         foreach ($this->_template_tags as $jdoc => $args) {
  4.             $replace[] = $jdoc;
  5.             $with[]    = $this->getBuffer($args['type'], $args['name'], $args['attribs']);
  6.         }
  7.         return str_replace($replace$with$this->_template);
  8.     }
  9. }
  1.         if (\array_key_exists('csp_nonce'$params) && $params['csp_nonce'] !== null) {
  2.             $this->cspNonce $params['csp_nonce'];
  3.         }
  4.         $data $this->_renderTemplate();
  5.         parent::render($caching$params);
  6.         return $data;
  7.     }
  1.         $this->debug $params['debug'] ?? false;
  2.         $this->error $this->_error;
  3.         $params['file'] = 'error.php';
  4.         return parent::render($cache$params);
  5.     }
  6.     /**
  7.      * Render the backtrace
  8.      *
  1.             ob_end_clean();
  2.         }
  3.         $this->getDocument()->setTitle(Text::_('Error') . ': ' $error->getCode());
  4.         return $this->getDocument()->render(
  5.             false,
  6.             [
  7.                 'template'         => $template->template,
  8.                 'directory'        => JPATH_THEMES,
  9.                 'debug'            => JDEBUG,
  1.             // Reset the document object in the factory, this gives us a clean slate and lets everything render properly
  2.             Factory::$document $renderer->getDocument();
  3.             Factory::getApplication()->loadDocument(Factory::$document);
  4.             $data $renderer->render($error);
  5.             // If nothing was rendered, just use the message from the Exception
  6.             if (empty($data)) {
  7.                 $data $error->getMessage();
  8.             }
  1.      * @since   3.10.0
  2.      */
  3.     public static function handleException(\Throwable $error)
  4.     {
  5.         static::logException($error);
  6.         static::render($error);
  7.     }
  8.     /**
  9.      * Render the error page based on an exception.
  10.      *
  1.             );
  2.             // Trigger the onError event.
  3.             $this->triggerEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->getDispatcher()->dispatch('onBeforeRespond');
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/includes/app.php') in /var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Joomla\CMS\Component\Exception\ MissingComponentException

Komponente nicht gefunden

  1.             \define('JPATH_COMPONENT_ADMINISTRATOR'JPATH_ADMINISTRATOR '/components/' $option);
  2.         }
  3.         // If component is disabled throw error
  4.         if (!static::isEnabled($option)) {
  5.             throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
  6.         }
  7.         ob_start();
  8.         $app->bootComponent($option)->getDispatcher($app)->dispatch();
  9.         $contents ob_get_clean();
  1.             $document->setGenerator('Joomla! - Open Source Content Management - Version ' JVERSION);
  2.         } else {
  3.             $document->setGenerator('Joomla! - Open Source Content Management');
  4.         }
  5.         $contents ComponentHelper::renderComponent($component);
  6.         $document->setBuffer($contents'component');
  7.         // Trigger the onAfterDispatch event.
  8.         PluginHelper::importPlugin('system');
  9.         $this->triggerEvent('onAfterDispatch');
  1.              */
  2.             $this->checkUserRequireReset('com_users''profile''edit''com_users/profile.save,com_users/profile.apply,com_users/user.logout');
  3.         }
  4.         // Dispatch the application
  5.         $this->dispatch();
  6.         // Mark afterDispatch in the profiler.
  7.         JDEBUG $this->profiler->mark('afterDispatch') : null;
  8.     }
  1.             $this->sanityCheckSystemVariables();
  2.             $this->setupLogging();
  3.             $this->createExtensionNamespaceMap();
  4.             // Perform application routines.
  5.             $this->doExecute();
  6.             // If we have an application document object, render it.
  7.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  8.                 // Render the application output.
  9.                 $this->render();
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/includes/app.php') in /var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Stack Traces 2

[2/2] ClassNotFoundError
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "JApplication" from the global namespace.
Did you forget a "use" statement?

  at /var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/components/com_joomgallery/helpers/routing.php:74
  at JoomRouting::checkItemid()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/components/com_joomgallery/router.php:152)
  at JoomGalleryBuildRoute()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Component/Router/RouterLegacy.php:71)
  at Joomla\CMS\Component\Router\RouterLegacy->build()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Router/SiteRouter.php:444)
  at Joomla\CMS\Router\SiteRouter->buildSefRoute()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Router/Router.php:407)
  at Joomla\CMS\Router\Router->processBuildRules()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Router/Router.php:194)
  at Joomla\CMS\Router\Router->build()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Router/Route.php:150)
  at Joomla\CMS\Router\Route::link()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Router/Route.php:99)
  at Joomla\CMS\Router\Route::_()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/modules/mod_menu/src/Helper/MenuHelper.php:154)
  at Joomla\Module\Menu\Site\Helper\MenuHelper::getList()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/modules/mod_menu/mod_menu.php:16)
  at include('/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/modules/mod_menu/mod_menu.php')
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Dispatcher/ModuleDispatcher.php:52)
  at Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Dispatcher/ModuleDispatcher.php:55)
  at Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Helper/ModuleHelper.php:281)
  at Joomla\CMS\Helper\ModuleHelper::renderRawModule()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Helper/ModuleHelper.php:161)
  at Joomla\CMS\Helper\ModuleHelper::renderModule()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99)
  at Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Document/Renderer/Html/ModulesRenderer.php:50)
  at Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Document/HtmlDocument.php:565)
  at Joomla\CMS\Document\HtmlDocument->getBuffer()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Document/HtmlDocument.php:833)
  at Joomla\CMS\Document\HtmlDocument->_renderTemplate()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Document/HtmlDocument.php:637)
  at Joomla\CMS\Document\HtmlDocument->render()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Error/Renderer/HtmlRenderer.php:70)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Exception/ExceptionHandler.php:126)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/includes/app.php:61)
  at require_once('/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/includes/app.php')
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/index.php:32)                
[1/2] MissingComponentException
Joomla\CMS\Component\Exception\MissingComponentException:
Komponente nicht gefunden

  at /var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Component/ComponentHelper.php:357
  at Joomla\CMS\Component\ComponentHelper::renderComponent()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Application/SiteApplication.php:208)
  at Joomla\CMS\Application\SiteApplication->dispatch()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Application/SiteApplication.php:249)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/libraries/src/Application/CMSApplication.php:293)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/includes/app.php:61)
  at require_once('/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/includes/app.php')
     (/var/www/vhosts/schutzgemeinschaft-harthaeuser-wald.de/httpdocs/j/index.php:32)