Slim \ Exception \ HttpNotFoundException (404)
Not found. Slim\Exception\HttpNotFoundException thrown with message "Not found." Stacktrace: #9 Slim\Exception\HttpNotFoundException in /data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php:91 #8 Slim\Middleware\RoutingMiddleware:performRouting in /data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/Routing/RouteRunner.php:72 #7 Slim\Routing\RouteRunner:handle in /data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/app/Http/Middlewares/StartSession.php:14 #6 App\Http\Middlewares\StartSession:process in /data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147 #5 class@anonymous/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$416:handle in /data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/middlewares/whoops/src/Whoops.php:104 #4 Middlewares\Whoops:process in /data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php:147 #3 class@anonymous/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$416:handle in /data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php:81 #2 Slim\MiddlewareDispatcher:handle in /data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/App.php:215 #1 Slim\App:handle in /data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/App.php:199 #0 Slim\App:run in /data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/public/index.php:366
Stack frames (10)
9
Slim\Exception\HttpNotFoundException
/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php91
8
Slim\Middleware\RoutingMiddleware performRouting
/vendor/slim/slim/Slim/Routing/RouteRunner.php72
7
Slim\Routing\RouteRunner handle
/app/Http/Middlewares/StartSession.php14
6
App\Http\Middlewares\StartSession process
/vendor/slim/slim/Slim/MiddlewareDispatcher.php147
5
class@anonymous/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$416 handle
/vendor/middlewares/whoops/src/Whoops.php104
4
Middlewares\Whoops process
/vendor/slim/slim/Slim/MiddlewareDispatcher.php147
3
class@anonymous/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php:128$416 handle
/vendor/slim/slim/Slim/MiddlewareDispatcher.php81
2
Slim\MiddlewareDispatcher handle
/vendor/slim/slim/Slim/App.php215
1
Slim\App handle
/vendor/slim/slim/Slim/App.php199
0
Slim\App run
/public/index.php366
/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php
    public function performRouting(ServerRequestInterface $request): ServerRequestInterface
    {
        $request = $request->withAttribute(RouteContext::ROUTE_PARSER, $this->routeParser);
 
        $routingResults = $this->resolveRoutingResultsFromRequest($request);
        $routeStatus = $routingResults->getRouteStatus();
 
        $request = $request->withAttribute(RouteContext::ROUTING_RESULTS, $routingResults);
 
        switch ($routeStatus) {
            case RoutingResults::FOUND:
                $routeArguments = $routingResults->getRouteArguments();
                $routeIdentifier = $routingResults->getRouteIdentifier() ?? '';
                $route = $this->routeResolver
                    ->resolveRoute($routeIdentifier)
                    ->prepare($routeArguments);
                return $request->withAttribute(RouteContext::ROUTE, $route);
 
            case RoutingResults::NOT_FOUND:
                throw new HttpNotFoundException($request);
 
            case RoutingResults::METHOD_NOT_ALLOWED:
                $exception = new HttpMethodNotAllowedException($request);
                $exception->setAllowedMethods($routingResults->getAllowedMethods());
                throw $exception;
 
            default:
                throw new RuntimeException('An unexpected error occurred while performing routing.');
        }
    }
 
    /**
     * Resolves the route from the given request
     *
     * @param  ServerRequestInterface $request
     * @return RoutingResults
     */
    protected function resolveRoutingResultsFromRequest(ServerRequestInterface $request): RoutingResults
    {
        return $this->routeResolver->computeRoutingResults(
Arguments
  1. "Not found."
    
/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/Routing/RouteRunner.php
    }
 
    /**
     * This request handler is instantiated automatically in App::__construct()
     * It is at the very tip of the middleware queue meaning it will be executed
     * last and it detects whether or not routing has been performed in the user
     * defined middleware stack. In the event that the user did not perform routing
     * it is done here
     *
     * @param ServerRequestInterface $request
     * @return ResponseInterface
     * @throws HttpNotFoundException
     * @throws HttpMethodNotAllowedException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        // If routing hasn't been done, then do it now so we can dispatch
        if ($request->getAttribute(RouteContext::ROUTING_RESULTS) === null) {
            $routingMiddleware = new RoutingMiddleware($this->routeResolver, $this->routeParser);
            $request = $routingMiddleware->performRouting($request);
        }
 
        if ($this->routeCollectorProxy !== null) {
            $request = $request->withAttribute(
                RouteContext::BASE_PATH,
                $this->routeCollectorProxy->getBasePath()
            );
        }
 
        /** @var Route $route */
        $route = $request->getAttribute(RouteContext::ROUTE);
        return $route->run($request);
    }
}
 
Arguments
  1. Slim\Psr7\Request {#599}
    
/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/app/Http/Middlewares/StartSession.php
<?php
 
namespace App\Http\Middlewares;
 
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Server\RequestHandlerInterface as RequestHandler;
use Psr\Http\Message\ResponseInterface as Response;
use App\Support\Session;
 
class StartSession implements MiddlewareInterface {
    public function process(Request $request, RequestHandler $handler): Response {
        Session::start();
        return $handler->handle($request);
    }
}
 
Arguments
  1. Slim\Psr7\Request {#585}
    
/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php
        $this->tip = new class ($middleware, $next) implements RequestHandlerInterface {
            /**
             * @var MiddlewareInterface
             */
            private $middleware;
 
            /**
             * @var RequestHandlerInterface
             */
            private $next;
 
            public function __construct(MiddlewareInterface $middleware, RequestHandlerInterface $next)
            {
                $this->middleware = $middleware;
                $this->next = $next;
            }
 
            public function handle(ServerRequestInterface $request): ResponseInterface
            {
                return $this->middleware->process($request, $this->next);
            }
        };
 
        return $this;
    }
 
    /**
     * Add a new middleware by class name
     *
     * Middleware are organized as a stack. That means middleware
     * that have been added before will be executed after the newly
     * added one (last in, first out).
     *
     * @param string $middleware
     * @return self
     */
    public function addDeferred(string $middleware): self
    {
        $next = $this->tip;
        $this->tip = new class (
Arguments
  1. Slim\Psr7\Request {#585}
    
  2. Slim\Routing\RouteRunner {#12}
    
/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/middlewares/whoops/src/Whoops.php
        $whoops->sendHttpCode(false);
 
        //Catch errors means register whoops globally
        if ($this->catchErrors) {
            $whoops->register();
 
            $shutdown = function () use ($whoops) {
                $whoops->allowQuit(true);
                $whoops->writeToOutput(true);
                $whoops->sendHttpCode(true);
 
                $method = Run::SHUTDOWN_HANDLER;
                $whoops->$method();
            };
 
            register_shutdown_function($shutdown);
        }
 
        try {
            $response = $handler->handle($request);
        } catch (\Throwable $exception) {
            $response = $this->responseFactory->createResponse(500);
            $response->getBody()->write($whoops->$method($exception));
            $response = self::updateResponseContentType($response, $whoops);
        } finally {
            while (ob_get_level() >= $level) {
                ob_end_clean();
            }
        }
 
        if ($this->catchErrors) {
            $whoops->unregister();
        }
 
        return $response;
    }
 
    /**
     * Returns the whoops instance or create one.
     */
Arguments
  1. Slim\Psr7\Request {#585}
    
/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php
        $this->tip = new class ($middleware, $next) implements RequestHandlerInterface {
            /**
             * @var MiddlewareInterface
             */
            private $middleware;
 
            /**
             * @var RequestHandlerInterface
             */
            private $next;
 
            public function __construct(MiddlewareInterface $middleware, RequestHandlerInterface $next)
            {
                $this->middleware = $middleware;
                $this->next = $next;
            }
 
            public function handle(ServerRequestInterface $request): ResponseInterface
            {
                return $this->middleware->process($request, $this->next);
            }
        };
 
        return $this;
    }
 
    /**
     * Add a new middleware by class name
     *
     * Middleware are organized as a stack. That means middleware
     * that have been added before will be executed after the newly
     * added one (last in, first out).
     *
     * @param string $middleware
     * @return self
     */
    public function addDeferred(string $middleware): self
    {
        $next = $this->tip;
        $this->tip = new class (
Arguments
  1. Slim\Psr7\Request {#585}
    
  2. Psr\Http\Server\RequestHandlerInterface@anonymous {#17}
    
/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/MiddlewareDispatcher.php
        $this->container = $container;
    }
 
    /**
     * {@inheritdoc}
     */
    public function seedMiddlewareStack(RequestHandlerInterface $kernel): void
    {
        $this->tip = $kernel;
    }
 
    /**
     * Invoke the middleware stack
     *
     * @param ServerRequestInterface $request
     * @return ResponseInterface
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        return $this->tip->handle($request);
    }
 
    /**
     * Add a new middleware to the stack
     *
     * Middleware are organized as a stack. That means middleware
     * that have been added before will be executed after the newly
     * added one (last in, first out).
     *
     * @param MiddlewareInterface|string|callable $middleware
     * @return MiddlewareDispatcherInterface
     */
    public function add($middleware): MiddlewareDispatcherInterface
    {
        if ($middleware instanceof MiddlewareInterface) {
            return $this->addMiddleware($middleware);
        }
 
        if (is_string($middleware)) {
            return $this->addDeferred($middleware);
Arguments
  1. Slim\Psr7\Request {#585}
    
/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/App.php
            $request = $serverRequestCreator->createServerRequestFromGlobals();
        }
 
        $response = $this->handle($request);
        $responseEmitter = new ResponseEmitter();
        $responseEmitter->emit($response);
    }
 
    /**
     * Handle a request
     *
     * This method traverses the application middleware stack and then returns the
     * resultant Response object.
     *
     * @param ServerRequestInterface $request
     * @return ResponseInterface
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $response = $this->middlewareDispatcher->handle($request);
 
        /**
         * This is to be in compliance with RFC 2616, Section 9.
         * If the incoming request method is HEAD, we need to ensure that the response body
         * is empty as the request may fall back on a GET route handler due to FastRoute's
         * routing logic which could potentially append content to the response body
         * https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4
         */
        $method = strtoupper($request->getMethod());
        if ($method === 'HEAD') {
            $emptyBody = $this->responseFactory->createResponse()->getBody();
            return $response->withBody($emptyBody);
        }
 
        return $response;
    }
}
 
Arguments
  1. Slim\Psr7\Request {#585}
    
/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/vendor/slim/slim/Slim/App.php
        return $bodyParsingMiddleware;
    }
 
    /**
     * Run application
     *
     * This method traverses the application middleware stack and then sends the
     * resultant Response object to the HTTP client.
     *
     * @param ServerRequestInterface|null $request
     * @return void
     */
    public function run(?ServerRequestInterface $request = null): void
    {
        if (!$request) {
            $serverRequestCreator = ServerRequestCreatorFactory::create();
            $request = $serverRequestCreator->createServerRequestFromGlobals();
        }
 
        $response = $this->handle($request);
        $responseEmitter = new ResponseEmitter();
        $responseEmitter->emit($response);
    }
 
    /**
     * Handle a request
     *
     * This method traverses the application middleware stack and then returns the
     * resultant Response object.
     *
     * @param ServerRequestInterface $request
     * @return ResponseInterface
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $response = $this->middlewareDispatcher->handle($request);
 
        /**
         * This is to be in compliance with RFC 2616, Section 9.
         * If the incoming request method is HEAD, we need to ensure that the response body
Arguments
  1. Slim\Psr7\Request {#585}
    
/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/public/index.php
$app->get('/Admin/actors', AdminProfileController::class .':actors');
$app->get('/Admin/models', AdminProfileController::class .':models');
$app->get('/Admin/photographers', AdminProfileController::class .':photographers');
$app->get('/Admin/verification', AdminProfileController::class .':verification');
 
$app->get('/Admin', AdminStaticPageController::class .':index');
$app->get('/Admin/showprofile', AdminStaticPageController::class .':showprofile');
$app->get('/Admin/showprofileEdit', AdminStaticPageController::class .':showprofileEdit');
$app->get('/Admin/successMessage', AdminStaticPageController::class .':successMessage');
$app->get('/Admin/thank-you-profile', AdminStaticPageController::class .':thankYouProfile');
$app->get('/Admin/thank-you-publication', AdminStaticPageController::class .':thankYouPublication');
$app->get('/Admin/banned', AdminStaticPageController::class .':banned');
 
$app->get('/Admin/PHP/banProfile', ActionController::class .':banProfile');
$app->post('/Admin/PHP/deleteProfile', ActionController::class .':deleteProfile');
$app->get('/Admin/PHP/noticeBanProfile', ActionController::class .':noticeBanProfile');
$app->get('/Admin/PHP/submitProfileEdit', ActionController::class .':submitProfileEdit');
$app->get('/Admin/PHP/ajax/countFilteredUsers', ActionController::class .':countFilteredUsers');
 
$app->run();
 

Environment & details:

Key Value
lightbox
"dataItem-j1fm6yrq"
empty
empty
empty
empty
Key Value
REDIRECT_HTTPS
"on"
REDIRECT_GEOIP_COUNTRY_CODE
"US"
REDIRECT_UNIQUE_ID
"ZiFDJDnN-FYQqTJM2eahpgAAABY"
REDIRECT_DOCROOT
"/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/public/"
REDIRECT_filter-errordocs
""
REDIRECT_STATUS
"200"
HTTPS
"on"
GEOIP_COUNTRY_CODE
"US"
UNIQUE_ID
"ZiFDJDnN-FYQqTJM2eahpgAAABY"
DOCROOT
"/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/public/"
filter-errordocs
""
HTTP_HOST
"www.komparz.tv"
HTTP_X_REAL_IP
"3.140.185.147"
HTTP_X_FORWARDED_FOR
"3.140.185.147, 3.140.185.147"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_HTTPS
"1"
HTTP_X_PROXY_IP
"10.20.6.1"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"claudebot"
HTTP_WS_GEO_COUNTRY
"US"
HTTP_MAX_FORWARDS
"7"
HTTP_X_FORWARDED_HOST
"www.komparz.tv"
HTTP_X_FORWARDED_SERVER
"www.komparz.tv"
HTTP_CONNECTION
"close"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SERVER_NAME
"www.komparz.tv"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"443"
REMOTE_ADDR
"3.140.185.147"
DOCUMENT_ROOT
"/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/public/"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/public/"
SERVER_ADMIN
"admin@websupport.sk"
SCRIPT_FILENAME
"/data/9/c/9ca0a6d6-8e91-464d-a1b3-1e1e5f306eb9/komparz.tv/web/public/index.php"
REMOTE_PORT
"47086"
REDIRECT_URL
"/muzi-komparz-28"
REDIRECT_QUERY_STRING
"lightbox=dataItem-j1fm6yrq"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
"lightbox=dataItem-j1fm6yrq"
REQUEST_URI
"/muzi-komparz-28?lightbox=dataItem-j1fm6yrq"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1713455908.36
REQUEST_TIME
1713455908
argv
array:1 [
  0 => "lightbox=dataItem-j1fm6yrq"
]
argc
1
empty
0. Whoops\Handler\PrettyPageHandler