B| @`@| X/| @X@| ؕ| (Ly  | | B| @`@У| <P| @@@| (Ly  | (| B| @`@` Attempted to load class "AfterInitialiseDocumentEvent" from namespace "Joomla\CMS\Event\Application". 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 "AfterInitialiseDocumentEvent" from namespace "Joomla\CMS\Event\Application".
Did you forget a "use" statement for another namespace?

Exceptions 2

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  1.             Factory::getApplication()->loadDocument(Factory::$document);
  2.             // Trigger the onAfterInitialiseDocument event.
  3.             $app->getDispatcher()->dispatch(
  4.                 'onAfterInitialiseDocument',
  5.                 new AfterInitialiseDocumentEvent('onAfterInitialiseDocument', [
  6.                     'subject'  => $app,
  7.                     'document' => $renderer->getDocument(),
  8.                 ])
  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',
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
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';

Error

Class "Joomla\CMS\Event\Application\AfterInitialiseDocumentEvent" not found

  1.         // Trigger the onAfterInitialiseDocument event.
  2.         PluginHelper::importPlugin('system'nulltrue$this->getDispatcher());
  3.         $this->dispatchEvent(
  4.             'onAfterInitialiseDocument',
  5.             new AfterInitialiseDocumentEvent('onAfterInitialiseDocument', ['subject' => $this'document' => $document])
  6.         );
  7.         $contents ComponentHelper::renderComponent($component);
  8.         $document->setBuffer($contents, ['type' => 'component']);
  1.                 ['option' => 'com_users''view' => 'profile''layout' => 'edit'],
  2.             ]);
  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('/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 Traces 2

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

  at /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Exception/ExceptionHandler.php:130
  at Joomla\CMS\Exception\ExceptionHandler::render(object(Error))
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Exception/ExceptionHandler.php:73)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error))
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Application/CMSApplication.php:336)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php:58)
  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)                
[1/2] Error
Error:
Class "Joomla\CMS\Event\Application\AfterInitialiseDocumentEvent" not found

  at /datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Application/SiteApplication.php:215
  at Joomla\CMS\Application\SiteApplication->dispatch()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Application/SiteApplication.php:273)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/libraries/src/Application/CMSApplication.php:306)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/datas/yulpa173848/sites/test2025.samclap-ufolep.fr/htdocs/includes/app.php:58)
  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)