Deprecated: filectime(): Passing null to parameter #1 ($filename) of type string is deprecated in /home/endo-plus/web/endo-plus.ru/public_html/templates/yootheme/packages/theme/src/Listener/LoadThemeHead.php on line 25
Attempted to call an undefined method named "getDocument" of class "Joomla\Event\Event". Did you mean to call "getArgument"? (500 Whoops, looks like something went wrong.)

RouteNotFoundException UndefinedMethodError

HTTP 500 Whoops, looks like something went wrong.

Attempted to call an undefined method named "getDocument" of class "Joomla\Event\Event".
Did you mean to call "getArgument"?

Exceptions 2

Symfony\Component\ErrorHandler\Error\ UndefinedMethodError

  1.     /**
  2.      * @param BeforeCompileHeadEvent $event
  3.      */
  4.     public function handleBody($event): void
  5.     {
  6.         $document $event->getDocument();
  7.         if (!$document instanceof HtmlDocument) {
  8.             return;
  9.         }
  1.             $resolver = new ParameterResolver($this);
  2.             $function Reflection::getFunction($callable);
  3.             $parameters $resolver->resolve($function$parameters);
  4.         }
  5.         return $callable(...$parameters);
  6.     }
  7.     /**
  8.      * Wraps the callback with optional parameter resolving.
  9.      *
  1.                 if ($event->isStopped())
  2.                 {
  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.                 $asset->onAttachCallback($this->_doc);
  2.             }
  3.         }
  4.         // Trigger the onBeforeCompileHead event
  5.         $app->triggerEvent('onBeforeCompileHead');
  6.         // Add Script Options as inline asset
  7.         $scriptOptions $this->_doc->getScriptOptions();
  8.         if ($scriptOptions) {
  1.             $cbuffer[$hash] = $tmpdata;
  2.             $cache->store($cbuffer'cbuffer_' $type);
  3.         } else {
  4.             $this->setBuffer($renderer->render($name$attribsnull), $type$name$title);
  5.         }
  6.         return parent::$_buffer[$type][$name][$title];
  7.     }
  1.         $replace = [];
  2.         $with    = [];
  3.         foreach ($this->_template_tags as $jdoc => $args) {
  4.             $replace[] = $jdoc;
  5.             $with[]    = $this->getBuffer($args['type'], $args['name'], $args['attribs']);
  6.         }
  7.         return str_replace($replace$with$this->_template);
  8.     }
  9. }
  1.         if (\array_key_exists('csp_nonce'$params) && $params['csp_nonce'] !== null) {
  2.             $this->cspNonce $params['csp_nonce'];
  3.         }
  4.         $data $this->_renderTemplate();
  5.         parent::render($caching$params);
  6.         return $data;
  7.     }
  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.             // Reset the document object in the factory, this gives us a clean slate and lets everything render properly
  2.             Factory::$document $renderer->getDocument();
  3.             Factory::getApplication()->loadDocument(Factory::$document);
  4.             $data $renderer->render($error);
  5.             // If nothing was rendered, just use the message from the Exception
  6.             if (empty($data)) {
  7.                 $data $error->getMessage();
  8.             }
  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('/home/endo-plus/web/endo-plus.ru/public_html/includes/app.php') in /home/endo-plus/web/endo-plus.ru/public_html/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';

Joomla\CMS\Router\Exception\ RouteNotFoundException

Страница не найдена

  1.         $this->processParseRules($uriself::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($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('/home/endo-plus/web/endo-plus.ru/public_html/includes/app.php') in /home/endo-plus/web/endo-plus.ru/public_html/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] UndefinedMethodError
Symfony\Component\ErrorHandler\Error\UndefinedMethodError:
Attempted to call an undefined method named "getDocument" of class "Joomla\Event\Event".
Did you mean to call "getArgument"?

  at /home/endo-plus/web/endo-plus.ru/public_html/templates/yootheme/packages/theme-joomla/src/Listener/LoadConsent.php:44
  at YOOtheme\Theme\Joomla\Listener\LoadConsent->handleBody()
     (/home/endo-plus/web/endo-plus.ru/public_html/templates/yootheme/packages/container/src/Container.php:229)
  at YOOtheme\Container->call()
     (/home/endo-plus/web/endo-plus.ru/public_html/templates/yootheme/packages/application/src/Application/EventLoader.php:66)
  at YOOtheme\Application\EventLoader->YOOtheme\Application\{closure}()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Application/EventAware.php:111)
  at Joomla\CMS\Application\WebApplication->triggerEvent()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Document/Renderer/Html/MetasRenderer.php:61)
  at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Document/HtmlDocument.php:565)
  at Joomla\CMS\Document\HtmlDocument->getBuffer()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Document/HtmlDocument.php:833)
  at Joomla\CMS\Document\HtmlDocument->_renderTemplate()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Document/HtmlDocument.php:637)
  at Joomla\CMS\Document\HtmlDocument->render()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Document/ErrorDocument.php:139)
  at Joomla\CMS\Document\ErrorDocument->render()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:70)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Exception/ExceptionHandler.php:126)
  at Joomla\CMS\Exception\ExceptionHandler::render()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Exception/ExceptionHandler.php:72)
  at Joomla\CMS\Exception\ExceptionHandler::handleException()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Application/CMSApplication.php:322)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/endo-plus/web/endo-plus.ru/public_html/includes/app.php:61)
  at require_once('/home/endo-plus/web/endo-plus.ru/public_html/includes/app.php')
     (/home/endo-plus/web/endo-plus.ru/public_html/index.php:32)                
[1/2] RouteNotFoundException
Joomla\CMS\Router\Exception\RouteNotFoundException:
Страница не найдена

  at /home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Router/Router.php:155
  at Joomla\CMS\Router\Router->parse()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Application/SiteApplication.php:746)
  at Joomla\CMS\Application\SiteApplication->route()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Application/SiteApplication.php:232)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/home/endo-plus/web/endo-plus.ru/public_html/libraries/src/Application/CMSApplication.php:293)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/endo-plus/web/endo-plus.ru/public_html/includes/app.php:61)
  at require_once('/home/endo-plus/web/endo-plus.ru/public_html/includes/app.php')
     (/home/endo-plus/web/endo-plus.ru/public_html/index.php:32)