Attempted to load interface "CMSWebApplicationInterface" from namespace "Joomla\CMS\Application". Did you forget a "use" statement for another namespace? (500 Whoops, looks like something went wrong.)

ClassNotFoundError

HTTP 500 Whoops, looks like something went wrong.

Attempted to load interface "CMSWebApplicationInterface" from namespace "Joomla\CMS\Application".
Did you forget a "use" statement for another namespace?

Exception

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  1. /**
  2. * Joomla! CMS Application class
  3. *
  4. * @since 3.2
  5. */
  6. abstract class CMSApplication extends WebApplication implements ContainerAwareInterface, CMSWebApplicationInterface
  7. {
  8. use ContainerAwareTrait;
  9. use ExtensionManagerTrait;
  10. use ExtensionNamespaceMapper;
  11. use SessionAwareWebApplicationTrait;
  1. *
  2. * @param string $file
  3. * @return void
  4. */
  5. self::$includeFile = \Closure::bind(static function($file) {
  6. include $file;
  7. }, null, null);
  8. }
  9. }
  1. */
  2. public function loadClass($class)
  3. {
  4. if ($file = $this->findFile($class)) {
  5. $includeFile = self::$includeFile;
  6. $includeFile($file);
  7. return true;
  8. }
  9. return null;
ClassLoader->loadClass('Joomla\\CMS\\Application\\CMSApplication') in /hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/src/Autoload/ClassLoader.php (line 59)
  1. *
  2. * @since 3.4
  3. */
  4. public function loadClass($class)
  5. {
  6. if ($result = $this->loader->loadClass($class)) {
  7. \JLoader::applyAliasFor($class);
  8. }
  9. return $result;
  10. }
ClassLoader->loadClass('Joomla\\CMS\\Application\\CMSApplication') in /hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/src/Application/SiteApplication.php (line 42)
  1. /**
  2. * Joomla! Site Application class
  3. *
  4. * @since 3.2
  5. */
  6. final class SiteApplication extends CMSApplication
  7. {
  8. use CacheControllerFactoryAwareTrait;
  9. use MultiFactorAuthenticationHandler;
  10. /**
  1. *
  2. * @param string $file
  3. * @return void
  4. */
  5. self::$includeFile = \Closure::bind(static function($file) {
  6. include $file;
  7. }, null, null);
  8. }
  9. }
  1. */
  2. public function loadClass($class)
  3. {
  4. if ($file = $this->findFile($class)) {
  5. $includeFile = self::$includeFile;
  6. $includeFile($file);
  7. return true;
  8. }
  9. return null;
ClassLoader->loadClass('Joomla\\CMS\\Application\\SiteApplication') in /hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/src/Autoload/ClassLoader.php (line 59)
  1. *
  2. * @since 3.4
  3. */
  4. public function loadClass($class)
  5. {
  6. if ($result = $this->loader->loadClass($class)) {
  7. \JLoader::applyAliasFor($class);
  8. }
  9. return $result;
  10. }
ClassLoader->loadClass('Joomla\\CMS\\Application\\SiteApplication') in /hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/src/Service/Provider/Application.php (line 101)
  1. $container->alias(SiteApplication::class, 'JApplicationSite')
  2. ->share(
  3. 'JApplicationSite',
  4. function (Container $container) {
  5. $app = new SiteApplication($container->get(CMSInput::class), $container->get('config'), null, $container);
  6. $app->setDispatcher($container->get(DispatcherInterface::class));
  7. $app->setLogger($container->get(LoggerInterface::class));
  8. $app->setSession($container->get(SessionInterface::class));
  9. $app->setUserFactory($container->get(UserFactoryInterface::class));
  10. $app->setCacheControllerFactory($container->get(CacheControllerFactoryInterface::class));
  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. *
Container->get('Joomla\\CMS\\Application\\SiteApplication') in /hp/aj/aa/jr/www/neuesgymnasium.eu/includes/app.php (line 52)
  1. ->alias(\Joomla\CMS\Session\Session::class, 'session.web.site')
  2. ->alias(\Joomla\Session\Session::class, 'session.web.site')
  3. ->alias(\Joomla\Session\SessionInterface::class, 'session.web.site');
  4. // Instantiate the application.
  5. $app = $container->get(\Joomla\CMS\Application\SiteApplication::class);
  6. // Set the application as global app
  7. \Joomla\CMS\Factory::$application = $app;
  8. // Execute the application.
require_once('/hp/aj/aa/jr/www/neuesgymnasium.eu/includes/app.php') in /hp/aj/aa/jr/www/neuesgymnasium.eu/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 Trace

ClassNotFoundError
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load interface "CMSWebApplicationInterface" from namespace "Joomla\CMS\Application".
Did you forget a "use" statement for another namespace?

  at /hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/src/Application/CMSApplication.php:63
  at include()
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/vendor/composer/ClassLoader.php:576)
  at Composer\Autoload\{closure}('/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/vendor/composer/../../../libraries/src/Application/CMSApplication.php')
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/vendor/composer/ClassLoader.php:427)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Application\\CMSApplication')
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Application\\CMSApplication')
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/src/Application/SiteApplication.php:42)
  at include('/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/src/Application/SiteApplication.php')
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/vendor/composer/ClassLoader.php:576)
  at Composer\Autoload\{closure}('/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/vendor/composer/../../../libraries/src/Application/SiteApplication.php')
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/vendor/composer/ClassLoader.php:427)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Application\\SiteApplication')
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Application\\SiteApplication')
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/src/Service/Provider/Application.php:101)
  at Joomla\CMS\Service\Provider\Application->Joomla\CMS\Service\Provider\{closure}(object(Container))
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/vendor/joomla/di/src/ContainerResource.php:166)
  at Joomla\DI\ContainerResource->getInstance()
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/libraries/vendor/joomla/di/src/Container.php:95)
  at Joomla\DI\Container->get('Joomla\\CMS\\Application\\SiteApplication')
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/includes/app.php:52)
  at require_once('/hp/aj/aa/jr/www/neuesgymnasium.eu/includes/app.php')
     (/hp/aj/aa/jr/www/neuesgymnasium.eu/index.php:32)