Deprecated: T4\MVC\Router\T4::__construct(): Implicitly marking parameter $app as nullable is deprecated, the explicit nullable type must be used instead in /homepages/12/d293528877/htdocs/Siteblproduction joomla4/plugins/system/t4/src/t4/MVC/Router/T4.php on line 82

Deprecated: T4\MVC\Router\T4::__construct(): Implicitly marking parameter $menu as nullable is deprecated, the explicit nullable type must be used instead in /homepages/12/d293528877/htdocs/Siteblproduction joomla4/plugins/system/t4/src/t4/MVC/Router/T4.php on line 82
Undefined constant "T4\Helper\T4PATH_TPL" (500 Whoops, looks like something went wrong.)

RouteNotFoundException Error

HTTP 500 Whoops, looks like something went wrong.

Undefined constant "T4\Helper\T4PATH_TPL"

Exceptions 2

Error

  1. }
  2. public static function addIncludePath (&$path) {
  3. //JPATH_THEMES
  4. $template_path = str_replace('\\', '/', T4PATH_TPL);
  5. for($i = count($path)-1; $i >= 0; $i--) {
  6. $p = str_replace('\\', '/', $path[$i]);
  7. if (strpos($p, $template_path) === 0) {
  8. $file = substr($p, strlen($template_path));
  9. // add base path theme after template path
  1. /**
  2. * Implement event to allow select layout from base theme inside plugin.
  3. * These events are fireed by overriding Core Joomla lib: FileLayout, HtmlView, ModuleHelper
  4. */
  5. public function onLayoutIncludePaths (&$path) {
  6. \T4\Helper\Path::addIncludePath($path);
  7. }
  8. public function onHtmlViewAddPath ($type, &$path) {
  9. \T4\Helper\Path::addIncludePath($path);
  10. }
  11. public function onGetLayoutPath($path, $layout)
  1. }
  2. // Convert to indexed array for unpacking.
  3. $arguments = array_values($arguments);
  4. $result = $this->{$methodName}(...$arguments);
  5. // Ignore null results
  6. if ($result === null) {
  7. return;
  8. }
in /homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/vendor/joomla/event/src/Dispatcher.php -> {closure:Joomla\CMS\Plugin\CMSPlugin::registerLegacyListener():370} (line 454)
  1. foreach ($this->listeners[$event->getName()] as $listener) {
  2. if ($event->isStopped()) {
  3. return $event;
  4. }
  5. $listener($event);
  6. }
  7. }
  8. return $event;
  9. }
  1. $event = new $className($eventName, $args);
  2. } else {
  3. throw new \InvalidArgumentException('The arguments must either be an event or an array');
  4. }
  5. $result = $dispatcher->dispatch($eventName, $event);
  6. // @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place
  7. return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result'];
  8. }
  9. }
  1. public function getDefaultIncludePaths()
  2. {
  3. $path = parent::getDefaultIncludePaths();
  4. //Trigger event, then can alter include paths
  5. \Joomla\CMS\Factory::getApplication()->triggerEvent('onLayoutIncludePaths', array(&$path));
  6. return $path;
  7. }
  8. public function getSuffixes()
  1. * @since 3.5
  2. */
  3. public function getIncludePaths()
  4. {
  5. if (empty($this->includePaths)) {
  6. $this->includePaths = $this->getDefaultIncludePaths();
  7. }
  8. return $this->includePaths;
  9. }
  1. * @since 3.0
  2. */
  3. protected function getPath()
  4. {
  5. $layoutId = $this->getLayoutId();
  6. $includePaths = $this->getIncludePaths();
  7. $suffixes = $this->getSuffixes();
  8. $this->addDebugMessage('<strong>Layout:</strong> ' . $this->layoutId);
  9. if (!$layoutId) {
  1. if (\is_array($displayData)) {
  2. $displayData = array_merge($this->data, $displayData);
  3. }
  4. // Check possible overrides, and build the full path to layout file
  5. $path = $this->getPath();
  6. if ($this->isDebugEnabled()) {
  7. echo '<pre>' . $this->renderDebugMessages() . '</pre>';
  8. }
  1. // Make sure we send null to FileLayout if no path set
  2. $basePath = empty($basePath) ? null : $basePath;
  3. $layout = new FileLayout($layoutFile, $basePath, $options);
  4. return $layout->render($displayData);
  5. }
  6. }
  1. // Fill the attributes with the file and alt text
  2. $attribs['src'] = $file;
  3. $attribs['alt'] = $alt;
  4. // Render the layout with the attributes
  5. return LayoutHelper::render('joomla.html.image', $attribs);
  6. }
  7. /**
  8. * Write a `<link>` element to load a CSS file
  9. *
  1. foreach ($args as &$arg) {
  2. $temp[] = &$arg;
  3. }
  4. return \call_user_func_array($function, $temp);
  5. }
  6. /**
  7. * Write a `<a>` element
  8. *
  1. throw new \InvalidArgumentException(\sprintf('%s::%s not found.', $className, $func), 500);
  2. }
  3. static::register($key, $toCall);
  4. return static::call($toCall, $methodArgs);
  5. }
  6. /**
  7. * Registers a function to be called with a specific key
  8. *
  1. $this->addHeadLink(HTMLHelper::_('image', 'favicon.ico', '', [], true, 1), 'alternate icon', 'rel', ['type' => 'image/vnd.microsoft.icon']);
  2. $this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon-pinned.svg', '', [], true, 1), 'mask-icon', 'rel', ['color' => '#000']);
  3. // Logo file or site title param
  4. if ($this->params->get('logoFile')) {
  5. $logo = HTMLHelper::_('image', Uri::root(false) . htmlspecialchars($this->params->get('logoFile'), ENT_QUOTES), $sitename, ['loading' => 'eager', 'decoding' => 'async'], false, 0);
  6. } elseif ($this->params->get('siteTitle')) {
  7. $logo = '<span title="' . $sitename . '">' . htmlspecialchars($this->params->get('siteTitle'), ENT_COMPAT, 'UTF-8') . '</span>';
  8. } else {
  9. $logo = HTMLHelper::_('image', 'logo.svg', $sitename, ['class' => 'logo d-inline-block', 'loading' => 'eager', 'decoding' => 'async'], true, 0);
  10. }
require('/homepages/12/d293528877/htdocs/Siteblproduction joomla4/templates/cassiopeia/error.php') in /homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Document/HtmlDocument.php (line 734)
  1. // Store the file path
  2. $this->_file = $directory . '/' . $filename;
  3. // Get the file content
  4. ob_start();
  5. require $directory . '/' . $filename;
  6. $contents = ob_get_clean();
  7. }
  8. return $contents;
  9. }
  1. $this->baseurl = Uri::base(true);
  2. $this->params = $params['params'] ?? new Registry();
  3. $this->template = $template;
  4. // Load
  5. $this->_template = $this->_loadTemplate($baseDir, $file);
  6. return $this;
  7. }
  8. /**
  1. *
  2. * @since 1.7.0
  3. */
  4. public function parse($params = [])
  5. {
  6. return $this->_fetchTemplate($params)->_parseTemplate();
  7. }
  8. /**
  9. * Outputs the template to the browser.
  10. *
  1. public function render($caching = false, $params = [])
  2. {
  3. $this->_caching = $caching;
  4. if (empty($this->_template)) {
  5. $this->parse($params);
  6. }
  7. if (\array_key_exists('csp_nonce', $params) && $params['csp_nonce'] !== null) {
  8. $this->cspNonce = $params['csp_nonce'];
  9. }
  1. $this->debug = $params['debug'] ?? false;
  2. $this->error = $this->_error;
  3. $params['file'] = 'error.php';
  4. return parent::render($cache, $params);
  5. }
  6. /**
  7. * Render the backtrace
  8. *
  1. ob_end_clean();
  2. }
  3. $this->getDocument()->setTitle(Text::_('Error') . ': ' . $error->getCode());
  4. return $this->getDocument()->render(
  5. false,
  6. [
  7. 'template' => $template->template,
  8. 'directory' => JPATH_THEMES,
  9. 'debug' => JDEBUG,
  1. 'subject' => $app,
  2. 'document' => $renderer->getDocument(),
  3. ])
  4. );
  5. $data = $renderer->render($error);
  6. // If nothing was rendered, just use the message from the Exception
  7. if (empty($data)) {
  8. $data = $error->getMessage();
  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('/homepages/12/d293528877/htdocs/Siteblproduction joomla4/includes/app.php') in /homepages/12/d293528877/htdocs/Siteblproduction joomla4/index.php (line 51)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Joomla\CMS\Router\Exception\ RouteNotFoundException

Page introuvable

  1. $this->processParseRules($uri, self::PROCESS_AFTER);
  2. // Check if all parts of the URL have been parsed.
  3. // Otherwise we have an invalid URL
  4. if (\strlen($uri->getPath()) > 0) {
  5. throw new RouteNotFoundException(Text::_('JERROR_PAGE_NOT_FOUND'));
  6. }
  7. if ($setVars) {
  8. $this->setVars($uri->getQuery(true));
  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($uri, true);
  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. // Mark beforeExecute in the profiler.
  2. JDEBUG ? $this->profiler->mark('beforeExecute event dispatched') : null;
  3. // Perform application routines.
  4. $this->doExecute();
  5. // If we have an application document object, render it.
  6. if ($this->document instanceof \Joomla\CMS\Document\Document) {
  7. // Render the application output.
  8. $this->render();
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application = $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/homepages/12/d293528877/htdocs/Siteblproduction joomla4/includes/app.php') in /homepages/12/d293528877/htdocs/Siteblproduction joomla4/index.php (line 51)
  1. // ... die
  2. die();
  3. }
  4. // Run the application - All executable code should be triggered through this file
  5. require_once __DIR__ . '/includes/app.php';

Stack Traces 2

[2/2] Error
Error:
Undefined constant "T4\Helper\T4PATH_TPL"

  at /homepages/12/d293528877/htdocs/Siteblproduction joomla4/plugins/system/t4/src/t4/Helper/Path.php:98
  at T4\Helper\Path::addIncludePath()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/plugins/system/t4/t4.php:312)
  at PlgSystemT4->onLayoutIncludePaths()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Plugin/CMSPlugin.php:386)
  at Joomla\CMS\Plugin\CMSPlugin->{closure:Joomla\CMS\Plugin\CMSPlugin::registerLegacyListener():370}()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/vendor/joomla/event/src/Dispatcher.php:454)
  at Joomla\Event\Dispatcher->dispatch()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Application/EventAware.php:111)
  at Joomla\CMS\Application\WebApplication->triggerEvent()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/plugins/system/t4/src/joomla/src/Layout/FileLayout.php:24)
  at Joomla\CMS\Layout\FileLayout->getDefaultIncludePaths()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/administrator/cache/t4core/FileLayout.php:283)
  at Joomla\CMS\Layout\_JFileLayout->getIncludePaths()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/administrator/cache/t4core/FileLayout.php:144)
  at Joomla\CMS\Layout\_JFileLayout->getPath()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/administrator/cache/t4core/FileLayout.php:116)
  at Joomla\CMS\Layout\_JFileLayout->render()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Layout/LayoutHelper.php:76)
  at Joomla\CMS\Layout\LayoutHelper::render()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/HTML/HTMLHelper.php:777)
  at Joomla\CMS\HTML\HTMLHelper::image()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/HTML/HTMLHelper.php:307)
  at Joomla\CMS\HTML\HTMLHelper::call()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/HTML/HTMLHelper.php:195)
  at Joomla\CMS\HTML\HTMLHelper::_()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/templates/cassiopeia/error.php:120)
  at require('/homepages/12/d293528877/htdocs/Siteblproduction joomla4/templates/cassiopeia/error.php')
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Document/HtmlDocument.php:734)
  at Joomla\CMS\Document\HtmlDocument->_loadTemplate()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Document/HtmlDocument.php:791)
  at Joomla\CMS\Document\HtmlDocument->_fetchTemplate()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Document/HtmlDocument.php:625)
  at Joomla\CMS\Document\HtmlDocument->parse()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Document/HtmlDocument.php:643)
  at Joomla\CMS\Document\HtmlDocument->render()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Error/Renderer/HtmlRenderer.php:70)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Exception/ExceptionHandler.php:142)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Exception/ExceptionHandler.php:76)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Application/CMSApplication.php:350)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/includes/app.php:58)
  at require_once('/homepages/12/d293528877/htdocs/Siteblproduction joomla4/includes/app.php')
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/index.php:51)                
[1/2] RouteNotFoundException
Joomla\CMS\Router\Exception\RouteNotFoundException:
Page introuvable

  at /homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Router/Router.php:166
  at Joomla\CMS\Router\Router->parse()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Application/SiteApplication.php:607)
  at Joomla\CMS\Application\SiteApplication->route()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Application/SiteApplication.php:244)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/libraries/src/Application/CMSApplication.php:320)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/includes/app.php:58)
  at require_once('/homepages/12/d293528877/htdocs/Siteblproduction joomla4/includes/app.php')
     (/homepages/12/d293528877/htdocs/Siteblproduction joomla4/index.php:51)