~q@Pk3C~q@Pk3C~q@Pk3C~q@Pk3C"~q@Pk3C&~q@Pk3C*~q@Pk3C.~q@Pk3Cys5~q@ Attempted to load interface "UserFactoryInterface" from namespace "Joomla\CMS\User". 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 "UserFactoryInterface" from namespace "Joomla\CMS\User".
Did you forget a "use" statement for another namespace?

Exception

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  1. /**
  2.  * Default factory for creating User objects
  3.  *
  4.  * @since  4.0.0
  5.  */
  6. class UserFactory implements UserFactoryInterface
  7. {
  8.     /**
  9.      * The database.
  10.      *
  11.      * @var  DatabaseInterface
  1.          *
  2.          * @param  string $file
  3.          * @return void
  4.          */
  5.         self::$includeFile \Closure::bind(static function($file) {
  6.             include $file;
  7.         }, nullnull);
  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\\User\\UserFactory') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/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\\User\\UserFactory') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Service/Provider/User.php (line 45)
  1.         $container->alias('user.factory'UserFactoryInterface::class)
  2.             ->alias(UserFactory::class, UserFactoryInterface::class)
  3.             ->share(
  4.                 UserFactoryInterface::class,
  5.                 function (Container $container) {
  6.                     return new UserFactory($container->get(DatabaseInterface::class));
  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.      *
Container->get('Joomla\\CMS\\User\\UserFactoryInterface') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Service/Provider/Application.php (line 105)
  1.                 function (Container $container) {
  2.                     $app = new SiteApplication($container->get(CMSInput::class), $container->get('config'), null$container);
  3.                     $app->setDispatcher($container->get(DispatcherInterface::class));
  4.                     $app->setLogger($container->get(LoggerInterface::class));
  5.                     $app->setSession($container->get(SessionInterface::class));
  6.                     $app->setUserFactory($container->get(UserFactoryInterface::class));
  7.                     $app->setCacheControllerFactory($container->get(CacheControllerFactoryInterface::class));
  8.                     $app->setMenuFactory($container->get(MenuFactoryInterface::class));
  9.                     // Ensure that session purging is configured now we have a dispatcher
  10.                     $app->getDispatcher()->addListener(SessionEvents::START, [$app'afterSessionStart'], Priority::HIGH);
  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 /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/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('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php') in /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/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 interface "UserFactoryInterface" from namespace "Joomla\CMS\User".
Did you forget a "use" statement for another namespace?

  at /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/User/UserFactory.php:23
  at include()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:576)
  at Composer\Autoload\{closure}('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/../../../libraries/src/User/UserFactory.php')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:427)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\User\\UserFactory')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\User\\UserFactory')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Service/Provider/User.php:45)
  at Joomla\CMS\Service\Provider\User->Joomla\CMS\Service\Provider\{closure}(object(Container))
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/joomla/di/src/ContainerResource.php:166)
  at Joomla\DI\ContainerResource->getInstance()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/joomla/di/src/Container.php:95)
  at Joomla\DI\Container->get('Joomla\\CMS\\User\\UserFactoryInterface')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Service/Provider/Application.php:105)
  at Joomla\CMS\Service\Provider\Application->Joomla\CMS\Service\Provider\{closure}(object(Container))
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/joomla/di/src/ContainerResource.php:166)
  at Joomla\DI\ContainerResource->getInstance()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/vendor/joomla/di/src/Container.php:95)
  at Joomla\DI\Container->get('Joomla\\CMS\\Application\\SiteApplication')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php:52)
  at require_once('/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php')
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/index.php:32)