Warning: include(/var/www/vhosts/anstiftung.de/httpdocs/libraries/vendor/composer/../../../libraries/src/Language/LanguageHelper.php): Failed to open stream: No such file or directory in /var/www/vhosts/anstiftung.de/httpdocs/libraries/vendor/composer/ClassLoader.php on line 576

Warning: include(): Failed opening '/var/www/vhosts/anstiftung.de/httpdocs/libraries/vendor/composer/../../../libraries/src/Language/LanguageHelper.php' for inclusion (include_path='.:/opt/plesk/php/8.3/share/pear') in /var/www/vhosts/anstiftung.de/httpdocs/libraries/vendor/composer/ClassLoader.php on line 576

Warning: include(/var/www/vhosts/anstiftung.de/httpdocs/libraries/vendor/composer/../../../libraries/src/Language/CachingLanguageFactory.php): Failed to open stream: No such file or directory in /var/www/vhosts/anstiftung.de/httpdocs/libraries/vendor/composer/ClassLoader.php on line 576

Warning: include(): Failed opening '/var/www/vhosts/anstiftung.de/httpdocs/libraries/vendor/composer/../../../libraries/src/Language/CachingLanguageFactory.php' for inclusion (include_path='.:/opt/plesk/php/8.3/share/pear') in /var/www/vhosts/anstiftung.de/httpdocs/libraries/vendor/composer/ClassLoader.php on line 576
Attempted to load class "CachingLanguageFactory" from namespace "Joomla\CMS\Language". Did you forget a "use" statement for another namespace? (500 Whoops, looks like something went wrong.)

Error ClassNotFoundError

HTTP 500 Whoops, looks like something went wrong.

Attempted to load class "CachingLanguageFactory" from namespace "Joomla\CMS\Language".
Did you forget a "use" statement for another namespace?

Exceptions 2

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  1. $container->alias('language.factory', LanguageFactoryInterface::class)
  2. ->alias(CachingLanguageFactory::class, LanguageFactoryInterface::class)
  3. ->share(
  4. LanguageFactoryInterface::class,
  5. function (Container $container) {
  6. return new CachingLanguageFactory();
  7. },
  8. true
  9. );
  10. }
  11. }
  1. {
  2. $callable = $this->factory;
  3. if ($this->isShared()) {
  4. if ($this->instance === null) {
  5. $this->instance = $callable($this->container);
  6. }
  7. return $this->instance;
  8. }
  1. }
  2. throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container.", $resourceName));
  3. }
  4. return $this->resources[$key]->getInstance();
  5. }
  6. /**
  7. * Check if specified resource exists.
  8. *
  1. );
  2. $conf = self::getConfig();
  3. $locale = $conf->get('language');
  4. $debug = $conf->get('debug_lang');
  5. $lang = self::getContainer()->get(LanguageFactoryInterface::class)->createLanguage($locale, $debug);
  6. return $lang;
  7. }
  8. /**
  1. ),
  2. E_USER_DEPRECATED
  3. );
  4. if (!self::$language) {
  5. self::$language = self::createLanguage();
  6. }
  7. return self::$language;
  8. }
  1. */
  2. public function __construct($options = [])
  3. {
  4. // Extract the internal dependencies before calling the parent constructor since it calls $this->load()
  5. $this->app = isset($options['app']) && $options['app'] instanceof CMSApplication ? $options['app'] : Factory::getApplication();
  6. $this->language = isset($options['language']) && $options['language'] instanceof Language ? $options['language'] : Factory::getLanguage();
  7. if (!isset($options['db']) || !($options['db'] instanceof DatabaseDriver)) {
  8. @trigger_error('Database will be mandatory in 5.0.', E_USER_DEPRECATED);
  9. $options['db'] = Factory::getContainer()->get(DatabaseDriver::class);
  10. }
  1. if (!\array_key_exists('db', $options)) {
  2. $options['db'] = $this->getDatabase();
  3. }
  4. $instance = new $classname($options);
  5. if ($instance instanceof CacheControllerFactoryAwareInterface) {
  6. $instance->setCacheControllerFactory($this->getCacheControllerFactory());
  7. }
  1. if ($this->menuFactory === null) {
  2. @trigger_error('Menu factory must be set in 5.0', E_USER_DEPRECATED);
  3. $this->menuFactory = $this->getContainer()->get(MenuFactoryInterface::class);
  4. }
  5. $this->menus[$name] = $this->menuFactory->createMenu($name, $options);
  6. // Make sure the abstract menu has the instance too, is needed for BC and will be removed with version 5
  7. AbstractMenu::$instances[$name] = $this->menus[$name];
  8. return $this->menus[$name];
  1. return $this->template->template;
  2. }
  3. // Get the id of the active menu item
  4. $menu = $this->getMenu();
  5. $item = $menu->getActive();
  6. if (!$item) {
  7. $item = $menu->getItem($this->input->getInt('Itemid', null));
  8. }
  1. public function render(\Throwable $error): string
  2. {
  3. $app = Factory::getApplication();
  4. // Get the current template from the application
  5. $template = $app->getTemplate(true);
  6. // Push the error object into the document
  7. $this->getDocument()->setError($error);
  8. // Add registry file for the template asset
  1. 'subject' => $app,
  2. 'document' => $renderer->getDocument(),
  3. ])
  4. );
  5. $data = $renderer->render($error);
  6. // If nothing was rendered, just use the message from the Exception
  7. if (empty($data)) {
  8. $data = $error->getMessage();
  9. }
  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->dispatchEvent('onError', $event);
  4. ExceptionHandler::handleException($event->getError());
  5. }
  6. // Trigger the onBeforeRespond event.
  7. $this->dispatchEvent(
  8. 'onBeforeRespond',
CMSApplication->execute() in /var/www/vhosts/anstiftung.de/httpdocs/includes/app.php (line 58)
  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/anstiftung.de/httpdocs/includes/app.php') in /var/www/vhosts/anstiftung.de/httpdocs/index.php (line 51)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Error

Class "Joomla\CMS\Language\LanguageHelper" not found

  1. $params = ComponentHelper::getParams('com_languages');
  2. $options['language'] = $params->get('site', $this->get('language', 'en-GB'));
  3. }
  4. // One last check to make sure we have something
  5. if (!LanguageHelper::exists($options['language'])) {
  6. $lang = $this->config->get('language', 'en-GB');
  7. if (LanguageHelper::exists($lang)) {
  8. $options['language'] = $lang;
  9. } else {
  1. * @since 3.2
  2. */
  3. protected function doExecute()
  4. {
  5. // Initialise the application
  6. $this->initialiseApp();
  7. // Mark afterInitialise in the profiler.
  8. JDEBUG ? $this->profiler->mark('afterInitialise') : null;
  9. // Route the application
  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();
CMSApplication->execute() in /var/www/vhosts/anstiftung.de/httpdocs/includes/app.php (line 58)
  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/anstiftung.de/httpdocs/includes/app.php') in /var/www/vhosts/anstiftung.de/httpdocs/index.php (line 51)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Stack Traces 2

[2/2] ClassNotFoundError
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "CachingLanguageFactory" from namespace "Joomla\CMS\Language".
Did you forget a "use" statement for another namespace?

  at /var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Service/Provider/Language.php:44
  at Joomla\CMS\Service\Provider\Language->Joomla\CMS\Service\Provider\{closure}()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/vendor/joomla/di/src/ContainerResource.php:162)
  at Joomla\DI\ContainerResource->getInstance()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/vendor/joomla/di/src/Container.php:95)
  at Joomla\DI\Container->get()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Factory.php:745)
  at Joomla\CMS\Factory::createLanguage()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Factory.php:305)
  at Joomla\CMS\Factory::getLanguage()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Menu/SiteMenu.php:72)
  at Joomla\CMS\Menu\SiteMenu->__construct()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Menu/MenuFactory.php:55)
  at Joomla\CMS\Menu\MenuFactory->createMenu()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Application/CMSApplication.php:590)
  at Joomla\CMS\Application\CMSApplication->getMenu()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Application/SiteApplication.php:425)
  at Joomla\CMS\Application\SiteApplication->getTemplate()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Error/Renderer/HtmlRenderer.php:50)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Exception/ExceptionHandler.php:142)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Exception/ExceptionHandler.php:76)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Application/CMSApplication.php:334)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/vhosts/anstiftung.de/httpdocs/includes/app.php:58)
  at require_once('/var/www/vhosts/anstiftung.de/httpdocs/includes/app.php')
     (/var/www/vhosts/anstiftung.de/httpdocs/index.php:51)                
[1/2] Error
Error:
Class "Joomla\CMS\Language\LanguageHelper" not found

  at /var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Application/SiteApplication.php:626
  at Joomla\CMS\Application\SiteApplication->initialiseApp()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Application/SiteApplication.php:237)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/var/www/vhosts/anstiftung.de/httpdocs/libraries/src/Application/CMSApplication.php:304)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/vhosts/anstiftung.de/httpdocs/includes/app.php:58)
  at require_once('/var/www/vhosts/anstiftung.de/httpdocs/includes/app.php')
     (/var/www/vhosts/anstiftung.de/httpdocs/index.php:51)