Warning: Class "Joomla\CMS\Application\CMSApplication" not found in /mnt/web004/d3/75/56963175/htdocs/libraries/loader.php on line 576 Attempted to load class "CMSApplication" 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 class "CMSApplication" from namespace "Joomla\CMS\Application".
Did you forget a "use" statement for another namespace?

Exception

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  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.  * @return void
  2.  * @private
  3.  */
  4. function includeFile($file)
  5. {
  6.     include $file;
  7. }
  1.      * @return true|null True if loaded, null otherwise
  2.      */
  3.     public function loadClass($class)
  4.     {
  5.         if ($file $this->findFile($class)) {
  6.             includeFile($file);
  7.             return true;
  8.         }
  9.         return null;
  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.     }
  1.         $container->alias(SiteApplication::class, 'JApplicationSite')
  2.             ->share(
  3.                 'JApplicationSite',
  4.                 function (Container $container) {
  5.                     $app = new SiteApplication(null$container->get('config'), null$container);
  6.                     // The session service provider needs Factory::$application, set it if still null
  7.                     if (Factory::$application === null) {
  8.                         Factory::$application $app;
  9.                     }
  1.         if ($this->isShared())
  2.         {
  3.             if ($this->instance === null)
  4.             {
  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.     ->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('/mnt/web004/d3/75/56963175/htdocs/includes/app.php') in /mnt/web004/d3/75/56963175/htdocs/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 class "CMSApplication" from namespace "Joomla\CMS\Application".
Did you forget a "use" statement for another namespace?

  at /mnt/web004/d3/75/56963175/htdocs/libraries/src/Application/SiteApplication.php:39
  at include()
     (/mnt/web004/d3/75/56963175/htdocs/libraries/vendor/composer/ClassLoader.php:571)
  at Composer\Autoload\includeFile()
     (/mnt/web004/d3/75/56963175/htdocs/libraries/vendor/composer/ClassLoader.php:428)
  at Composer\Autoload\ClassLoader->loadClass()
     (/mnt/web004/d3/75/56963175/htdocs/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass()
     (/mnt/web004/d3/75/56963175/htdocs/libraries/src/Service/Provider/Application.php:100)
  at Joomla\CMS\Service\Provider\Application->Joomla\CMS\Service\Provider\{closure}()
     (/mnt/web004/d3/75/56963175/htdocs/libraries/vendor/joomla/di/src/ContainerResource.php:176)
  at Joomla\DI\ContainerResource->getInstance()
     (/mnt/web004/d3/75/56963175/htdocs/libraries/vendor/joomla/di/src/Container.php:96)
  at Joomla\DI\Container->get()
     (/mnt/web004/d3/75/56963175/htdocs/includes/app.php:55)
  at require_once('/mnt/web004/d3/75/56963175/htdocs/includes/app.php')
     (/mnt/web004/d3/75/56963175/htdocs/index.php:32)