Phact \ Exceptions \ NotFoundHttpException
Page not found Phact\Exceptions\NotFoundHttpException thrown with message "Page not found" Stacktrace: #3 Phact\Exceptions\NotFoundHttpException in /home/u4876/ddn43.ru/vendor/phact-cmf/phact/src/Phact/Application/Application.php:278 #2 Phact\Application\Application:handleWebRequest in /home/u4876/ddn43.ru/vendor/phact-cmf/phact/src/Phact/Application/Application.php:228 #1 Phact\Application\Application:handleRequest in /home/u4876/ddn43.ru/vendor/phact-cmf/phact/src/Phact/Application/Application.php:214 #0 Phact\Application\Application:run in /home/u4876/ddn43.ru/WWW/index.php:19
Stack frames (4)
3
Phact\Exceptions\NotFoundHttpException
/vendor/phact-cmf/phact/src/Phact/Application/Application.php278
2
Phact\Application\Application handleWebRequest
/vendor/phact-cmf/phact/src/Phact/Application/Application.php228
1
Phact\Application\Application handleRequest
/vendor/phact-cmf/phact/src/Phact/Application/Application.php214
0
Phact\Application\Application run
/WWW/index.php19
/home/u4876/ddn43.ru/vendor/phact-cmf/phact/src/Phact/Application/Application.php
    public function handleWebRequest()
    {
        /** @var HttpRequestInterface $request */
        $request = $this->getComponent(HttpRequestInterface::class);
        /** @var RouterInterface $router */
        $router = $this->getComponent(RouterInterface::class);
 
        $url = $request->getUrl();
        $method = $request->getMethod();
        $this->logDebug("Matching route for url '{$url}' and method '{$method}'");
        $matches = $router->match($url, $method);
 
        foreach ($matches as $match) {
            $matched = $this->handleMatch($match, $router);
            if ($matched !== false) {
                return true;
            }
        }
        $this->logDebug("Matching route not found");
        throw new NotFoundHttpException("Page not found");
    }
 
    public function handleMatch(array $match, RouterInterface $router = null)
    {
        if (is_array($match['target']) &&
            isset($match['target'][0]) &&
            is_a($match['target'][0], ControllerInterface::class, true))
        {
            $controllerClass = $match['target'][0];
            $action = isset($match['target'][1]) ? $match['target'][1] : null;
            $params = isset($match['params']) ? $match['params'] : [];
            $name = isset($match['name']) ? $match['name'] : null;
 
            if ($router && $name) {
                $router->setCurrentName($name);
            }
 
            $this->logDebug("Processing route to controller '{$controllerClass}' and action '{$action}'", ['params' => $params]);
            /** @var Controller $controller */
            $controller = $this->_container->construct($controllerClass);
/home/u4876/ddn43.ru/vendor/phact-cmf/phact/src/Phact/Application/Application.php
        $this->logDebug("Application run");
        $this->eventTrigger("application.beforeRun", [], $this);
        $this->provideModuleEvent('onApplicationRun');
        register_shutdown_function([$this, 'end'], 0);
        $this->logDebug("Start handling request");
        $this->handleRequest();
        $this->end();
    }
 
    public function end($status = 0, $response = null)
    {
        $this->eventTrigger("application.beforeEnd", [], $this);
        $this->provideModuleEvent('onApplicationEnd', [$status, $response]);
        exit($status);
    }
 
    public function handleRequest()
    {
        if ($this->getIsWebMode()) {
            $this->handleWebRequest();
        } else {
            $this->handleCliRequest();
        }
    }
 
    /**
     * @return bool
     */
    public static function getIsCliMode()
    {
        return php_sapi_name() == 'cli';
    }
 
    /**
     * @return bool
     */
    public static function getIsWebMode()
    {
        return !self::getIsCliMode();
    }
/home/u4876/ddn43.ru/vendor/phact-cmf/phact/src/Phact/Application/Application.php
 
    /**
     * Check or create system path
     *
     * @param $path
     * @return bool
     */
    protected function setUpPath($path): bool
    {
        return is_dir($path) || mkdir($path, 0755, true);
    }
 
    public function run()
    {
        $this->logDebug("Application run");
        $this->eventTrigger("application.beforeRun", [], $this);
        $this->provideModuleEvent('onApplicationRun');
        register_shutdown_function([$this, 'end'], 0);
        $this->logDebug("Start handling request");
        $this->handleRequest();
        $this->end();
    }
 
    public function end($status = 0, $response = null)
    {
        $this->eventTrigger("application.beforeEnd", [], $this);
        $this->provideModuleEvent('onApplicationEnd', [$status, $response]);
        exit($status);
    }
 
    public function handleRequest()
    {
        if ($this->getIsWebMode()) {
            $this->handleWebRequest();
        } else {
            $this->handleCliRequest();
        }
    }
 
    /**
/home/u4876/ddn43.ru/WWW/index.php
<?php
ini_set('upload_max_filesize', '100M');
ini_set('post_max_size', '100M');
include(__DIR__ . '/../vendor/autoload.php');
 
$configPath = __DIR__ . '/../app/config/settings.php';
$localConfigPath = __DIR__ . '/../app/config/local_settings.php';
 
$debug = true;
if (is_file($localConfigPath)) {
    $configPath = $localConfigPath;
    $debug = true;
}
 
define("PHACT_DEBUG", $debug);
 
$config = include $configPath;
\Phact\Main\Phact::init($config);
\Phact\Main\Phact::app()->run();
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
REDIRECT_HTTPS on
REDIRECT_STATUS 200
HTTPS on
HTTP_HTTPS_ENABLED yes
HTTP_HOST ddn43.ru
HTTP_X_REAL_PORT 49008
HTTP_X_ACCEL_INTERNAL /ihead_internal
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME ddn43.ru
SERVER_ADDR 127.0.0.145
SERVER_PORT 80
REMOTE_ADDR 3.90.205.166
DOCUMENT_ROOT /home/u4876/ddn43.ru/WWW
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/u4876/ddn43.ru/WWW
SERVER_ADMIN admin@ihead.ru
SCRIPT_FILENAME /home/u4876/ddn43.ru/WWW/index.php
REMOTE_PORT 14783
REDIRECT_URL /events/mezhregionalnyy-distancionnyy-festival-nacionalnogo-tvorchestva-mozaika-narodov-dagestana-v-ramkah-prazdnovaniya-10-letiya-edinstva-narodov-dagestana
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /events/mezhregionalnyy-distancionnyy-festival-nacionalnogo-tvorchestva-mozaika-narodov-dagestana-v-ramkah-prazdnovaniya-10-letiya-edinstva-narodov-dagestana
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711651340.5958
REQUEST_TIME 1711651340
argv Array ( )
argc 0
Key Value
LANG C.UTF-8
PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
PWD /
HOME /
MM_CHARSET UTF-8
RC_PID 30
BLOCKSIZE K
0. Phact\Main\ExceptionPageHandler
1. Whoops\Handler\CallbackHandler