Phact \ Exceptions \ NotFoundHttpException
Page not found Phact\Exceptions\NotFoundHttpException thrown with message "Page not found" Stacktrace: #3 Phact\Exceptions\NotFoundHttpException in /var/www/u0649442/data/www/instaopener.ru/vendor/phact-cmf/phact/src/Phact/Application/Application.php:278 #2 Phact\Application\Application:handleWebRequest in /var/www/u0649442/data/www/instaopener.ru/vendor/phact-cmf/phact/src/Phact/Application/Application.php:228 #1 Phact\Application\Application:handleRequest in /var/www/u0649442/data/www/instaopener.ru/vendor/phact-cmf/phact/src/Phact/Application/Application.php:214 #0 Phact\Application\Application:run in /var/www/u0649442/data/www/instaopener.ru/www/index.php:14
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.php14
/var/www/u0649442/data/www/instaopener.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);
/var/www/u0649442/data/www/instaopener.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();
    }
/var/www/u0649442/data/www/instaopener.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();
        }
    }
 
    /**
/var/www/u0649442/data/www/instaopener.ru/www/index.php
<?php
 
include(__DIR__ . '/../vendor/autoload.php');
 
$configPath = __DIR__ . '/../app/config/settings.php';
 
$dotenv = Dotenv\Dotenv::create(__DIR__ . '/../');
$dotenv->load();
 
define('PHACT_DEBUG', getenv('DEBUG') === 'true');
 
$config = include $configPath;
\Phact\Main\Phact::init($config);
\Phact\Main\Phact::app()->run();
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
PHPRC /var/www/u0649442/data/php-bin-php74
PHP_INI_SCAN_DIR /var/www/u0649442/data/php-bin-php74/instaopener.ru:
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PWD /var/www/php-bin-php74/u0649442/instaopener.ru
SHLVL 0
SCRIPT_NAME /index.php
REQUEST_URI /bot/storis-prazdniki
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /bot/storis-prazdniki
REMOTE_PORT 45842
SCRIPT_FILENAME /var/www/u0649442/data/www/instaopener.ru/www/index.php
SERVER_ADMIN alexsandrskopin@gmail.com
CONTEXT_DOCUMENT_ROOT /var/www/u0649442/data/www/instaopener.ru/www
CONTEXT_PREFIX
DOCUMENT_ROOT /var/www/u0649442/data/www/instaopener.ru/www
REMOTE_ADDR 3.238.233.189
SERVER_PORT 443
SERVER_ADDR 127.0.0.1
SERVER_NAME instaopener.ru
SERVER_SOFTWARE Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 Phusion_Passenger/5.3.7
SERVER_SIGNATURE
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_PROTO https
HTTP_HOST instaopener.ru
PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REQUEST_SCHEME https
HTTPS on
UNIQUE_ID ZgVacvpILxOhRbmVpOGQlAAAAsQ
REDIRECT_STATUS 200
REDIRECT_PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REDIRECT_REQUEST_SCHEME https
REDIRECT_HTTPS on
REDIRECT_UNIQUE_ID ZgVacvpILxOhRbmVpOGQlAAAAsQ
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711626866.9586
REQUEST_TIME 1711626866
argv Array ( )
argc 0
DEBUG true
LOCAL false
DB_HOST 127.0.0.1
DB_NAME u0649442_default
DB_USER u0649442_default
DB_PASS 8WEBR!Vg
HOST_INFO http://example.com
API_BOT 653503651:AAG9MZOQvHHoQrPczjFoBt4crCLVOmxZu1Y
BOT_NAME instaOpener_bot
BASE_URL_TELEGRAM https://t.me/
DOMAIN instaopener.ru
SENTRY_DSN
Key Value
PHPRC /var/www/u0649442/data/php-bin-php74
PHP_INI_SCAN_DIR /var/www/u0649442/data/php-bin-php74/instaopener.ru:
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PWD /var/www/php-bin-php74/u0649442/instaopener.ru
SHLVL 0
SCRIPT_NAME /index.php
REQUEST_URI /bot/storis-prazdniki
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /bot/storis-prazdniki
REMOTE_PORT 45842
SCRIPT_FILENAME /var/www/u0649442/data/www/instaopener.ru/www/index.php
SERVER_ADMIN alexsandrskopin@gmail.com
CONTEXT_DOCUMENT_ROOT /var/www/u0649442/data/www/instaopener.ru/www
CONTEXT_PREFIX
DOCUMENT_ROOT /var/www/u0649442/data/www/instaopener.ru/www
REMOTE_ADDR 3.238.233.189
SERVER_PORT 443
SERVER_ADDR 127.0.0.1
SERVER_NAME instaopener.ru
SERVER_SOFTWARE Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 Phusion_Passenger/5.3.7
SERVER_SIGNATURE
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_PROTO https
HTTP_HOST instaopener.ru
PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REQUEST_SCHEME https
HTTPS on
UNIQUE_ID ZgVacvpILxOhRbmVpOGQlAAAAsQ
REDIRECT_STATUS 200
REDIRECT_PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REDIRECT_REQUEST_SCHEME https
REDIRECT_HTTPS on
REDIRECT_UNIQUE_ID ZgVacvpILxOhRbmVpOGQlAAAAsQ
FCGI_ROLE RESPONDER
DEBUG true
LOCAL false
DB_HOST 127.0.0.1
DB_NAME u0649442_default
DB_USER u0649442_default
DB_PASS 8WEBR!Vg
HOST_INFO http://example.com
API_BOT 653503651:AAG9MZOQvHHoQrPczjFoBt4crCLVOmxZu1Y
BOT_NAME instaOpener_bot
BASE_URL_TELEGRAM https://t.me/
DOMAIN instaopener.ru
SENTRY_DSN
0. Phact\Main\ExceptionPageHandler
1. Whoops\Handler\CallbackHandler