(jGkFPA@0Gk0BPGkpPGkBB B7: B OB0GPA@0Gk0BQGk`QGkBxB BADB kBpGPA@0GkpBRGkPRGkBB BKbBkBkGkGPA@0GkpBSGk@SGkBB BiBkB8(kGkGPA@0Gk(8BTGk0TGk`BXB BB UB0HPA@0Gk0BUGk UGkBB BB hBpHPA@0Gk(pBVGkVGkBB BB kBHPA@0Gk0HBWGkWGk(B(B BPB ZBHPA@0Gk8*BxXGkWGkPB0B BxB k0B0IPA@0GkH;HBhYGkXGk B B B BXBpIPA@0Gk8* BXZGkYGkBB B B _ BIPA@0GklBH[GkZGk"B!B B(!B`BIPA@0Gk0"B8\Gk[Gk&B%B B%B k "B@JPA@0Gk(P'B(]Gk\Gk+Bp*B B*B c&ByaGkJPA@0Gk-B^Gk]Gk@B>B B8?Bk+B`aGkJPA@0Gk CB_Gk^GkhgBfB B4fB/ @B`aGkKPA@0Gk0,hB_Gkp_GkHoB nB B;>pnB kgBaGkince 1.7.3 */ protected static $instances = []; /** * Media version added to assets * * @var string * @since 3.2 */ protected $mediaVersion = null; /** * Factory for creating JDocument API objects * * @var FactoryInterface * @since 4.0.0 */ protected $factory; /** * Preload manager * * @var PreloadManagerInterface * @since 4.0.0 */ protected $preloadManager = null; /** * The supported preload types * * @var array * @since 4.0.0 */ protected $preloadTypes = ['preload', 'dns-prefetch', 'preconnect', 'prefetch', 'prerender']; /** * Web Asset instance * * @var WebAssetManager * @since 4.0.0 */ protected $webAssetManager = null; /** * Class constructor. * * @param array $options Associative array of options * * @since 1.7.0 */ public function __construct($options = []) { if (\array_key_exists('lineend', $options)) { $this->setLineEnd($options['lineend']); } if (\array_key_exists('charset', $options)) { $this->setCharset($options['charset']); } if (\array_key_exists('language', $options)) { $this->setLanguage($options['language']); } if (\array_key_exists('direction', $options)) { $this->setDirection($options['direction']); } if (\array_key_exists('tab', $options)) { $this->setTab($options['tab']); } if (\array_key_exists('link', $options)) { $this->setLink($options['link']); } if (\array_key_exists('base', $options)) { $this->setBase($options['base']); } if (\array_key_exists('mediaversion', $options)) { $this->setMediaVersion($options['mediaversion']); } if (\array_key_exists('factory', $options)) { $this->setFactory($options['factory']); } else { $this->setFactory(new Factory()); } if (\array_key_exists('preloadManager', $options)) { $this->setPreloadManager($options['preloadManager']); } else { $this->setPreloadManager(new PreloadManager()); } if (\array_key_exists('webAssetManager', $options)) { $this->setWebAssetManager($options['webAssetManager']); } else { $webAssetManager = new WebAssetManager(\Joomla\CMS\Factory::getContainer()->get('webassetregistry')); $this->setWebAssetManager($webAssetManager); } } /** * Returns the global Document object, only creating it * if it doesn't already exist. * * @param string $type The document type to instantiate * @param array $attributes Array of attributes * * @return static The document object. * * @since 1.7.0 * * @deprecated 4.3 will be removed in 6.0 * Use the \Joomla\CMS\Document\FactoryInterface instead * Example: Factory::getApplication()->getDocument(); */ public static function getInstance($type = 'html', $attributes = []) { $signature = serialize([$type, $attributes]); if (empty(self::$instances[$signature])) { self::$instances[$signature] = CmsFactory::getContainer()->get(FactoryInterface::class)->createDocument($type, $attributes); } return self::$instances[$signature]; } /** * Set the factory instance * * @param FactoryInterface $factory The factory instance * * @return Document * * @since 4.0.0 */ public function setFactory(FactoryInterface $factory): self { $this->factory = $factory; return $this; } /** * Set the document type * * @param string $type Type document is to set to * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setType($type) { $this->_type = $type; return $this; } /** * Returns the document type * * @return string * * @since 1.7.0 */ public function getType() { return $this->_type; } /** * Get the contents of the document buffer * * @return mixed * * @since 1.7.0 */ public function getBuffer() { return self::$_buffer; } /** * Set the contents of the document buffer * * @param string $content The content to be set in the buffer. * @param array $options Array of optional elements. * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setBuffer($content, $options = []) { self::$_buffer = $content; return $this; } /** * Gets a meta tag. * * @param string $name Name of the meta HTML tag * @param string $attribute Attribute to use in the meta HTML tag * * @return string * * @since 1.7.0 */ public function getMetaData($name, $attribute = 'name') { // B/C old http_equiv parameter. if (!\is_string($attribute)) { $attribute = $attribute == true ? 'http-equiv' : 'name'; } if ($name === 'generator') { $result = $this->getGenerator(); } elseif ($name === 'description') { $result = $this->getDescription(); } else { $result = isset($this->_metaTags[$attribute]) && isset($this->_metaTags[$attribute][$name]) ? $this->_metaTags[$attribute][$name] : ''; } return $result; } /** * Sets or alters a meta tag. * * @param string $name Name of the meta HTML tag * @param mixed $content Value of the meta HTML tag as array or string * @param string $attribute Attribute to use in the meta HTML tag * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setMetaData($name, $content, $attribute = 'name') { // Pop the element off the end of array if target function expects a string or this http_equiv parameter. if (\is_array($content) && (\in_array($name, ['generator', 'description']) || !\is_string($attribute))) { $content = array_pop($content); } // B/C old http_equiv parameter. if (!\is_string($attribute)) { $attribute = $attribute == true ? 'http-equiv' : 'name'; } if ($name === 'generator') { $this->setGenerator($content); } elseif ($name === 'description') { $this->setDescription($content); } else { $this->_metaTags[$attribute][$name] = $content; } return $this; } /** * Adds a linked script to the page * * @param string $url URL to the linked script. * @param array $options Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9', 'preload' => array('preload')) * @param array $attribs Array of attributes. Example: array('id' => 'scriptid', 'async' => 'async', 'data-test' => 1) * * @return Document instance of $this to allow chaining * * @since 1.7.0 * * @deprecated 4.3 will be removed in 6.0 * Use WebAssetManager * Example: $wa->registerAndUseScript(...); */ public function addScript($url, $options = [], $attribs = []) { // Default value for type. if (!isset($attribs['type']) && !isset($attribs['mime'])) { $attribs['type'] = 'text/javascript'; } $this->_scripts[$url] = isset($this->_scripts[$url]) ? array_replace($this->_scripts[$url], $attribs) : $attribs; $this->_scripts[$url]['options'] = isset($this->_scripts[$url]['options']) ? array_replace($this->_scripts[$url]['options'], $options) : $options; return $this; } /** * Adds a script to the page * * @param string $content Script * @param string $type Scripting mime (defaults to 'text/javascript') * * @return Document instance of $this to allow chaining * * @since 1.7.0 * * @deprecated 4.3 will be removed in 6.0 * Use WebAssetManager * Example: $wa->addInlineScript(...); */ public function addScriptDeclaration($content, $type = 'text/javascript') { $type = strtolower($type); if (empty($this->_script[$type])) { $this->_script[$type] = []; } $this->_script[$type][md5($content)] = $content; return $this; } /** * Add option for script * * @param string $key Name in Storage * @param mixed $options Scrip options as array or string * @param bool $merge Whether merge with existing (true) or replace (false) * * @return Document instance of $this to allow chaining * * @since 3.5 */ public function addScriptOptions($key, $options, $merge = true) { if (empty($this->scriptOptions[$key])) { $this->scriptOptions[$key] = []; } if ($merge && \is_array($options)) { $this->scriptOptions[$key] = array_replace_recursive($this->scriptOptions[$key], $options); } else { $this->scriptOptions[$key] = $options; } return $this; } /** * Get script(s) options * * @param string $key Name in Storage * * @return array Options for given $key, or all script options * * @since 3.5 */ public function getScriptOptions($key = null) { if ($key) { return (empty($this->scriptOptions[$key])) ? [] : $this->scriptOptions[$key]; } else { return $this->scriptOptions; } } /** * Adds a linked stylesheet to the page * * @param string $url URL to the linked style sheet * @param array $options Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9', 'preload' => array('preload')) * @param array $attribs Array of attributes. Example: array('id' => 'stylesheet', 'data-test' => 1) * * @return Document instance of $this to allow chaining * * @since 1.7.0 * * @deprecated 4.3 will be removed in 6.0 * Use WebAssetManager * Example: $wa->registerAndUseStyle(...); */ public function addStyleSheet($url, $options = [], $attribs = []) { // Default value for type. if (!isset($attribs['type']) && !isset($attribs['mime'])) { $attribs['type'] = 'text/css'; } $this->_styleSheets[$url] = isset($this->_styleSheets[$url]) ? array_replace($this->_styleSheets[$url], $attribs) : $attribs; if (isset($this->_styleSheets[$url]['options'])) { $this->_styleSheets[$url]['options'] = array_replace($this->_styleSheets[$url]['options'], $options); } else { $this->_styleSheets[$url]['options'] = $options; } return $this; } /** * Adds a stylesheet declaration to the page * * @param string $content Style declarations * @param string $type Type of stylesheet (defaults to 'text/css') * * @return Document instance of $this to allow chaining * * @since 1.7.0 * * @deprecated 4.3 will be removed in 6.0 * Use WebAssetManager * Example: $wa->addInlineStyle(...); */ public function addStyleDeclaration($content, $type = 'text/css') { if ($content === null) { return $this; } $type = strtolower($type); if (empty($this->_style[$type])) { $this->_style[$type] = []; } $this->_style[$type][md5($content)] = $content; return $this; } /** * Sets the document charset * * @param string $type Charset encoding string * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setCharset($type = 'utf-8') { $this->_charset = $type; return $this; } /** * Returns the document charset encoding. * * @return string * * @since 1.7.0 */ public function getCharset() { return $this->_charset; } /** * Sets the global document language declaration. Default is English (en-gb). * * @param string $lang The language to be set * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setLanguage($lang = 'en-gb') { $this->language = strtolower($lang); return $this; } /** * Returns the document language. * * @return string * * @since 1.7.0 */ public function getLanguage() { return $this->language; } /** * Sets the global document direction declaration. Default is left-to-right (ltr). * * @param string $dir The language direction to be set * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setDirection($dir = 'ltr') { $this->direction = strtolower($dir); return $this; } /** * Returns the document direction declaration. * * @return string * * @since 1.7.0 */ public function getDirection() { return $this->direction; } /** * Sets the title of the document * * @param string $title The title to be set * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setTitle($title) { $this->title = $title; return $this; } /** * Return the title of the document. * * @return string * * @since 1.7.0 */ public function getTitle() { return $this->title; } /** * Set the assets version * * @param string $mediaVersion Media version to use * * @return Document instance of $this to allow chaining * * @since 3.2 */ public function setMediaVersion($mediaVersion) { $this->mediaVersion = strtolower($mediaVersion); return $this; } /** * Return the media version * * @return string * * @since 3.2 */ public function getMediaVersion() { return $this->mediaVersion; } /** * Set the preload manager * * @param PreloadManagerInterface $preloadManager The preload manager service * * @return Document instance of $this to allow chaining * * @since 4.0.0 */ public function setPreloadManager(PreloadManagerInterface $preloadManager): self { $this->preloadManager = $preloadManager; return $this; } /** * Return the preload manager * * @return PreloadManagerInterface * * @since 4.0.0 */ public function getPreloadManager(): PreloadManagerInterface { return $this->preloadManager; } /** * Set WebAsset manager * * @param WebAssetManager $webAsset The WebAsset instance * * @return Document * * @since 4.0.0 */ public function setWebAssetManager(WebAssetManager $webAsset): self { $this->webAssetManager = $webAsset; return $this; } /** * Return WebAsset manager * * @return WebAssetManager * * @since 4.0.0 */ public function getWebAssetManager(): WebAssetManager { return $this->webAssetManager; } /** * Sets the base URI of the document * * @param string $base The base URI to be set * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setBase($base) { $this->base = $base; return $this; } /** * Return the base URI of the document. * * @return string * * @since 1.7.0 */ public function getBase() { return $this->base; } /** * Sets the description of the document * * @param string $description The description to set * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setDescription($description) { $this->description = $description; return $this; } /** * Return the description of the document. * * @return string * * @since 1.7.0 */ public function getDescription() { return $this->description; } /** * Sets the document link * * @param string $url A url * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setLink($url) { $this->link = $url; return $this; } /** * Returns the document base url * * @return string * * @since 1.7.0 */ public function getLink() { return $this->link; } /** * Sets the document generator * * @param string $generator The generator to be set * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setGenerator($generator) { $this->_generator = $generator; return $this; } /** * Returns the document generator * * @return string * * @since 1.7.0 */ public function getGenerator() { return $this->_generator; } /** * Sets the document modified date * * @param string|Date $date The date to be set * * @return Document instance of $this to allow chaining * * @since 1.7.0 * @throws \InvalidArgumentException */ public function setModifiedDate($date) { if (!\is_string($date) && !($date instanceof Date)) { throw new \InvalidArgumentException( sprintf( 'The $date parameter of %1$s must be a string or a %2$s instance, a %3$s was given.', __METHOD__ . '()', 'Joomla\\CMS\\Date\\Date', \gettype($date) === 'object' ? (\get_class($date) . ' instance') : \gettype($date) ) ); } $this->_mdate = $date; return $this; } /** * Returns the document modified date * * @return string|Date * * @since 1.7.0 */ public function getModifiedDate() { return $this->_mdate; } /** * Sets the document MIME encoding that is sent to the browser. * * This usually will be text/html because most browsers cannot yet * accept the proper mime settings for XHTML: application/xhtml+xml * and to a lesser extent application/xml and text/xml. See the W3C note * ({@link https://www.w3.org/TR/xhtml-media-types/ * https://www.w3.org/TR/xhtml-media-types/}) for more details. * * @param string $type The document type to be sent * @param boolean $sync Should the type be synced with HTML? * * @return Document instance of $this to allow chaining * * @since 1.7.0 * * @link https://www.w3.org/TR/xhtml-media-types/ */ public function setMimeEncoding($type = 'text/html', $sync = true) { $this->_mime = strtolower($type); // Syncing with metadata if ($sync) { $this->setMetaData('content-type', $type . '; charset=' . $this->_charset, true); } return $this; } /** * Return the document MIME encoding that is sent to the browser. * * @return string * * @since 1.7.0 */ public function getMimeEncoding() { return $this->_mime; } /** * Sets the line end style to Windows, Mac, Unix or a custom string. * * @param string $style "win", "mac", "unix" or custom string. * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setLineEnd($style) { switch ($style) { case 'win': $this->_lineEnd = "\15\12"; break; case 'unix': $this->_lineEnd = "\12"; break; case 'mac': $this->_lineEnd = "\15"; break; default: $this->_lineEnd = $style; } return $this; } /** * Returns the lineEnd * * @return string * * @since 1.7.0 */ public function _getLineEnd() { return $this->_lineEnd; } /** * Sets the string used to indent HTML * * @param string $string String used to indent ("\11", "\t", ' ', etc.). * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function setTab($string) { $this->_tab = $string; return $this; } /** * Returns a string containing the unit for indenting HTML * * @return string * * @since 1.7.0 */ public function _getTab() { return $this->_tab; } /** * Load a renderer * * @param string $type The renderer type * * @return RendererInterface * * @since 1.7.0 * @throws \RuntimeException */ public function loadRenderer($type) { return $this->factory->createRenderer($this, $type); } /** * Parses the document and prepares the buffers * * @param array $params The array of parameters * * @return Document instance of $this to allow chaining * * @since 1.7.0 */ public function parse($params = []) { return $this; } /** * Outputs the document * * @param boolean $cache If true, cache the output * @param array $params Associative array of attributes * * @return string The rendered data * * @since 1.7.0 */ public function render($cache = false, $params = []) { $app = CmsFactory::getApplication(); if ($mdate = $this->getModifiedDate()) { if (!($mdate instanceof Date)) { $mdate = new Date($mdate); } $app->modifiedDate = $mdate; } $app->mimeType = $this->_mime; $app->charSet = $this->_charset; // Handle preloading for configured assets in web applications if ($app instanceof AbstractWebApplication) { $this->preloadAssets(); } return ''; } /** * Generate the Link header for assets configured for preloading * * @return void * * @since 4.0.0 */ protected function preloadAssets() { // Process stylesheets first foreach ($this->_styleSheets as $link => $properties) { if (empty($properties['options']['preload'])) { continue; } foreach ($properties['options']['preload'] as $preloadMethod) { // Make sure the preload method is supported, special case for `dns-prefetch` to convert it to the right method name if ($preloadMethod === 'dns-prefetch') { $this->getPreloadManager()->dnsPrefetch($link); } elseif (\in_array($preloadMethod, $this->preloadTypes)) { $this->getPreloadManager()->$preloadMethod($link); } else { throw new \InvalidArgumentException(sprintf('The "%s" method is not supported for preloading.', $preloadMethod), 500); } } } // Now process scripts foreach ($this->_scripts as $link => $properties) { if (empty($properties['options']['preload'])) { continue; } foreach ($properties['options']['preload'] as $preloadMethod) { // Make sure the preload method is supported, special case for `dns-prefetch` to convert it to the right method name if ($preloadMethod === 'dns-prefetch') { $this->getPreloadManager()->dnsPrefetch($link); } elseif (\in_array($preloadMethod, $this->preloadTypes)) { $this->getPreloadManager()->$preloadMethod($link); } else { throw new \InvalidArgumentException(sprintf('The "%s" method is not supported for preloading.', $preloadMethod), 500); } } } // Check if the manager's provider has links, if so add the Link header if ($links = $this->getPreloadManager()->getLinkProvider()->getLinks()) { CmsFactory::getApplication()->setHeader('Link', (new HttpHeaderSerializer())->serialize($links)); } } }
Warning: Class "Joomla\CMS\Document\Document" not found in /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/loader.php on line 576
Attempted to load class "Document" from namespace "Joomla\CMS\Document". 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 "Document" from namespace "Joomla\CMS\Document".
Did you forget a "use" statement for another namespace?

Exceptions 2

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  1. /**
  2.  * HtmlDocument class, provides an easy interface to parse and display a HTML document
  3.  *
  4.  * @since  1.7.0
  5.  */
  6. class HtmlDocument extends Document implements CacheControllerFactoryAwareInterface
  7. {
  8.     use CacheControllerFactoryAwareTrait;
  9.     /**
  10.      * Array of Header `<link>` tags
  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;
ClassLoader->loadClass('Joomla\\CMS\\Document\\HtmlDocument') in /datas/yulpa173848/sites/2024.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\\Document\\HtmlDocument') in /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Document/ErrorDocument.php (line 24)
  1. /**
  2.  * ErrorDocument class, provides an easy interface to parse and display an HTML based error page
  3.  *
  4.  * @since  1.7.0
  5.  */
  6. class ErrorDocument extends HtmlDocument
  7. {
  8.     /**
  9.      * Flag if debug mode has been enabled
  10.      *
  11.      * @var    boolean
  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;
ClassLoader->loadClass('Joomla\\CMS\\Document\\ErrorDocument') in /datas/yulpa173848/sites/2024.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\\Document\\ErrorDocument')
class_exists('Joomla\\CMS\\Document\\ErrorDocument') in /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Document/Factory.php (line 45)
  1.         $type  preg_replace('/[^A-Z0-9_\.-]/i'''$type);
  2.         $ntype null;
  3.         $class __NAMESPACE__ '\\' ucfirst($type) . 'Document';
  4.         if (!class_exists($class)) {
  5.             $class 'JDocument' ucfirst($type);
  6.         }
  7.         if (!class_exists($class)) {
  8.             $ntype $type;
Factory->createDocument('error', array('charset' => 'utf-8', 'lineend' => 'unix', 'tab' => ' ', 'language' => 'fr-FR', 'direction' => 'ltr')) in /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Error/AbstractRenderer.php (line 112)
  1.         if (Factory::$language) {
  2.             $attributes['language']  = Factory::getLanguage()->getTag();
  3.             $attributes['direction'] = Factory::getLanguage()->isRtl() ? 'rtl' 'ltr';
  4.         }
  5.         return Factory::getContainer()->get(FactoryInterface::class)->createDocument($this->type$attributes);
  6.     }
  7. }
  1.      */
  2.     public function getDocument(): Document
  3.     {
  4.         // Load the document if not already
  5.         if (!$this->document) {
  6.             $this->document $this->loadDocument();
  7.         }
  8.         return $this->document;
  9.     }
  1.                 // Default to the HTML renderer
  2.                 $renderer AbstractRenderer::getRenderer('html');
  3.             }
  4.             // Reset the document object in the factory, this gives us a clean slate and lets everything render properly
  5.             Factory::$document $renderer->getDocument();
  6.             Factory::getApplication()->loadDocument(Factory::$document);
  7.             $data $renderer->render($error);
  8.             // If nothing was rendered, just use the message from the Exception
  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->triggerEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->getDispatcher()->dispatch('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/2024.samclap-ufolep.fr/htdocs/includes/app.php') in /datas/yulpa173848/sites/2024.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\Document\Document" not found

  1. /**
  2.  * HtmlDocument class, provides an easy interface to parse and display a HTML document
  3.  *
  4.  * @since  1.7.0
  5.  */
  6. class HtmlDocument extends Document implements CacheControllerFactoryAwareInterface
  7. {
  8.     use CacheControllerFactoryAwareTrait;
  9.     /**
  10.      * Array of Header `<link>` tags
  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;
ClassLoader->loadClass('Joomla\\CMS\\Document\\HtmlDocument') in /datas/yulpa173848/sites/2024.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\\Document\\HtmlDocument')
class_exists('Joomla\\CMS\\Document\\HtmlDocument') in /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Document/Factory.php (line 45)
  1.         $type  preg_replace('/[^A-Z0-9_\.-]/i'''$type);
  2.         $ntype null;
  3.         $class __NAMESPACE__ '\\' ucfirst($type) . 'Document';
  4.         if (!class_exists($class)) {
  5.             $class 'JDocument' ucfirst($type);
  6.         }
  7.         if (!class_exists($class)) {
  8.             $ntype $type;
Factory->createDocument('html', array('charset' => 'utf-8', 'lineend' => 'unix', 'tab' => ' ', 'language' => 'fr-FR', 'direction' => 'ltr', 'mediaversion' => 'f2828c5b33dc6c0ca9f49352be98be43')) in /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Factory.php (line 786)
  1.             'language'     => $lang->getTag(),
  2.             'direction'    => $lang->isRtl() ? 'rtl' 'ltr',
  3.             'mediaversion' => $version->getMediaVersion(),
  4.         ];
  5.         return self::getContainer()->get(FactoryInterface::class)->createDocument($type$attributes);
  6.     }
  7.     /**
  8.      * Creates a new stream object with appropriate prefix
  9.      *
  1.             ),
  2.             E_USER_DEPRECATED
  3.         );
  4.         if (!self::$document) {
  5.             self::$document self::createDocument();
  6.         }
  7.         return self::$document;
  8.     }
  1.     */
  2.     public static function getMenuItemids($catid 0){
  3.         
  4.         // client_id in #__menu must be 0 for frontend items
  5.         
  6.         $document Factory::getDocument();
  7.         
  8.         $jinput Factory::getApplication()->input;
  9.         
  10.         $db     Factory::getDBO();
  11.         $user   Factory::getUser();
  1.      */
  2.     public function parse(&$segments, &$vars){
  3.         require_once JPATH_SITE '/components/com_jdownloads/src/Helper/RouteHelper.php';
  4.         $menuid JDHelper::getMenuItemids();
  5.         $item $this->router->menu->getItem($menuid['root']);
  6.         
  7.         $total count($segments);
  8.         for ($i 0$i $total$i++)
LegacyRouter->parse(array('download', '40-modroulant', '230-46-char-voile-rc'), array()) in /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Component/Router/RouterView.php (line 250)
  1.     {
  2.         $vars = [];
  3.         // Process the parsed variables based on custom defined rules
  4.         foreach ($this->rules as $rule) {
  5.             $rule->parse($segments$vars);
  6.         }
  7.         return $vars;
  8.     }
RouterView->parse(array('download', '40-modroulant', '230-46-char-voile-rc')) in /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Router/SiteRouter.php (line 287)
  1.             if (\count($segments)) {
  2.                 // Handle component route
  3.                 $component preg_replace('/[^A-Z0-9_\.-]/i'''$uri->getVar('option'));
  4.                 $crouter   $this->getComponentRouter($component);
  5.                 $uri->setQuery(array_merge($uri->getQuery(true), $crouter->parse($segments)));
  6.             }
  7.             $route implode('/'$segments);
  8.         }
SiteRouter->parseSefRoute(object(SiteRouter), object(Uri)) in /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Router/Router.php (line 384)
  1.         if (!\array_key_exists('parse' $stage$this->rules)) {
  2.             throw new \InvalidArgumentException(sprintf('The %s stage is not registered. (%s)'$stage__METHOD__));
  3.         }
  4.         foreach ($this->rules['parse' $stage] as $rule) {
  5.             $rule($this$uri);
  6.         }
  7.     }
  8.     /**
  9.      * Process the build uri query data based on custom defined rules
  1.     {
  2.         // Do the preprocess stage of the URL parse process
  3.         $this->processParseRules($uriself::PROCESS_BEFORE);
  4.         // Do the main stage of the URL parse process
  5.         $this->processParseRules($uri);
  6.         // Do the postprocess stage of the URL parse process
  7.         $this->processParseRules($uriself::PROCESS_AFTER);
  8.         // Check if all parts of the URL have been parsed.
  1.         // Get the full request URI.
  2.         $uri = clone Uri::getInstance();
  3.         // It is not possible to inject the SiteRouter as it requires a SiteApplication
  4.         // and we would end in an infinite loop
  5.         $result $this->getContainer()->get(SiteRouter::class)->parse($uritrue);
  6.         $active $this->getMenu()->getActive();
  7.         if (
  8.             $active !== null
  1.         // Mark afterInitialise in the profiler.
  2.         JDEBUG $this->profiler->mark('afterInitialise') : null;
  3.         // Route the application
  4.         $this->route();
  5.         // Mark afterRoute in the profiler.
  6.         JDEBUG $this->profiler->mark('afterRoute') : null;
  7.         if (!$this->isHandlingMultiFactorAuthentication()) {
  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/2024.samclap-ufolep.fr/htdocs/includes/app.php') in /datas/yulpa173848/sites/2024.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 "Document" from namespace "Joomla\CMS\Document".
Did you forget a "use" statement for another namespace?

  at /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Document/HtmlDocument.php:32
  at include()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:571)
  at Composer\Autoload\includeFile('/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/../../../libraries/src/Document/HtmlDocument.php')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:428)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Document\\HtmlDocument')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Document\\HtmlDocument')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Document/ErrorDocument.php:24)
  at include('/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Document/ErrorDocument.php')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:571)
  at Composer\Autoload\includeFile('/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/../../../libraries/src/Document/ErrorDocument.php')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:428)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Document\\ErrorDocument')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Document\\ErrorDocument')
  at class_exists('Joomla\\CMS\\Document\\ErrorDocument')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Document/Factory.php:45)
  at Joomla\CMS\Document\Factory->createDocument('error', array('charset' => 'utf-8', 'lineend' => 'unix', 'tab' => '	', 'language' => 'fr-FR', 'direction' => 'ltr'))
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Error/AbstractRenderer.php:112)
  at Joomla\CMS\Error\AbstractRenderer->loadDocument()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Error/AbstractRenderer.php:54)
  at Joomla\CMS\Error\AbstractRenderer->getDocument()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Exception/ExceptionHandler.php:123)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(Error))
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Error))
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/includes/app.php:61)
  at require_once('/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/includes/app.php')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/index.php:32)                
[1/2] Error
Error:
Class "Joomla\CMS\Document\Document" not found

  at /datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Document/HtmlDocument.php:32
  at include()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:571)
  at Composer\Autoload\includeFile('/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/../../../libraries/src/Document/HtmlDocument.php')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/vendor/composer/ClassLoader.php:428)
  at Composer\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Document\\HtmlDocument')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Autoload/ClassLoader.php:59)
  at Joomla\CMS\Autoload\ClassLoader->loadClass('Joomla\\CMS\\Document\\HtmlDocument')
  at class_exists('Joomla\\CMS\\Document\\HtmlDocument')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Document/Factory.php:45)
  at Joomla\CMS\Document\Factory->createDocument('html', array('charset' => 'utf-8', 'lineend' => 'unix', 'tab' => '	', 'language' => 'fr-FR', 'direction' => 'ltr', 'mediaversion' => 'f2828c5b33dc6c0ca9f49352be98be43'))
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Factory.php:786)
  at Joomla\CMS\Factory::createDocument()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Factory.php:338)
  at Joomla\CMS\Factory::getDocument()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/components/com_jdownloads/src/Helper/JDHelper.php:212)
  at JDownloads\Component\JDownloads\Site\Helper\JDHelper::getMenuItemids()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/components/com_jdownloads/src/Helper/LegacyRouter.php:405)
  at JDownloads\Component\JDownloads\Site\Helper\LegacyRouter->parse(array('download', '40-modroulant', '230-46-char-voile-rc'), array())
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Component/Router/RouterView.php:250)
  at Joomla\CMS\Component\Router\RouterView->parse(array('download', '40-modroulant', '230-46-char-voile-rc'))
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Router/SiteRouter.php:287)
  at Joomla\CMS\Router\SiteRouter->parseSefRoute(object(SiteRouter), object(Uri))
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Router/Router.php:384)
  at Joomla\CMS\Router\Router->processParseRules(object(Uri))
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Router/Router.php:147)
  at Joomla\CMS\Router\Router->parse(object(Uri), true)
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Application/SiteApplication.php:746)
  at Joomla\CMS\Application\SiteApplication->route()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Application/SiteApplication.php:232)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/libraries/src/Application/CMSApplication.php:293)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/includes/app.php:61)
  at require_once('/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/includes/app.php')
     (/datas/yulpa173848/sites/2024.samclap-ufolep.fr/htdocs/index.php:32)