Pecee \ SimpleRouter \ Exceptions \ NotFoundHttpException (404)
Route not found: "/links.php/" Pecee\SimpleRouter\Exceptions\NotFoundHttpException thrown with message "Route not found: "/links.php/"" Stacktrace: #3 Pecee\SimpleRouter\Exceptions\NotFoundHttpException in /var/www/aikonia/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php:420 #2 Pecee\SimpleRouter\Router:routeRequest in /var/www/aikonia/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php:322 #1 Pecee\SimpleRouter\Router:start in /var/www/aikonia/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/SimpleRouter.php:63 #0 Pecee\SimpleRouter\SimpleRouter:start in /var/www/aikonia/html/index.php:104
Stack frames (4)
3
Pecee\SimpleRouter\Exceptions\NotFoundHttpException
/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php420
2
Pecee\SimpleRouter\Router routeRequest
/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php322
1
Pecee\SimpleRouter\Router start
/vendor/pecee/simple-router/src/Pecee/SimpleRouter/SimpleRouter.php63
0
Pecee\SimpleRouter\SimpleRouter start
/index.php104
/var/www/aikonia/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php
            $this->handleException($e);
        }
 
        if ($methodNotAllowed === true) {
            $message = sprintf('Route "%s" or method "%s" not allowed.', $this->request->getUrl()->getPath(), $this->request->getMethod());
            $this->handleException(new NotFoundHttpException($message, 403));
        }
 
        if (\count($this->request->getLoadedRoutes()) === 0) {
            $rewriteUrl = $this->request->getRewriteUrl();
 
            if ($rewriteUrl !== null) {
                $message = sprintf('Route not found: "%s" (rewrite from: "%s")', $rewriteUrl, $this->request->getUrl()->getPath());
            } else {
                $message = sprintf('Route not found: "%s"', $this->request->getUrl()->getPath());
            }
 
            $this->debug($message);
 
            return $this->handleException(new NotFoundHttpException($message, 404));
        }
 
        return null;
    }
 
    /**
     * Handle route-rewrite
     *
     * @param string $key
     * @param string $url
     * @return string|null
     * @throws HttpException
     * @throws \Exception
     */
    protected function handleRouteRewrite($key, string $url): ?string
    {
        /* If the request has changed */
        if ($this->request->hasPendingRewrite() === false) {
            return null;
        }
/var/www/aikonia/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php
     * @throws \Exception
     */
    public function start(): ?string
    {
        $this->debug('Router starting');
 
        $this->fireEvents(EventHandler::EVENT_INIT);
 
        $this->loadRoutes();
 
        if ($this->csrfVerifier !== null) {
            $this->fireEvents(EventHandler::EVENT_RENDER_CSRF, [
                'csrfVerifier' => $this->csrfVerifier,
            ]);
 
            /* Verify csrf token for request */
            $this->csrfVerifier->handle($this->request);
        }
 
        $output = $this->routeRequest();
 
        $this->fireEvents(EventHandler::EVENT_LOAD, [
            'loadedRoutes' => $this->getRequest()->getLoadedRoutes(),
        ]);
 
        $this->debug('Routing complete');
 
        return $output;
    }
 
    /**
     * Routes the request
     *
     * @return string|null
     * @throws HttpException
     * @throws \Exception
     */
    public function routeRequest(): ?string
    {
        $this->debug('Routing request');
/var/www/aikonia/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/SimpleRouter.php
     */
    protected static $response;
 
    /**
     * Router instance
     * @var Router
     */
    protected static $router;
 
    /**
     * Start routing
     *
     * @throws \Pecee\SimpleRouter\Exceptions\NotFoundHttpException
     * @throws \Pecee\Http\Middleware\Exceptions\TokenMismatchException
     * @throws HttpException
     * @throws \Exception
     */
    public static function start(): void
    {
        echo static::router()->start();
    }
 
    /**
     * Start the routing an return array with debugging-information
     *
     * @return array
     */
    public static function startDebug(): array
    {
        $routerOutput = null;
 
        try {
            ob_start();
            static::router()->setDebugEnabled(true)->start();
            $routerOutput = ob_get_contents();
            ob_end_clean();
        } catch (\Exception $e) {
        }
 
        // Try to parse library version
/var/www/aikonia/html/index.php
        // ABOUT
        SimpleRouter::get('/about', 'About@index')->setName('about');
        SimpleRouter::get('/cast', 'About@index')->setName('about');
        
        // LINKS
        SimpleRouter::get('/links', 'Links@index')->setName('links');
    });
 
    // API
    SimpleRouter::group(['prefix' => '/api', 'namespace' => 'library\controllers'], function()
    {
        // PAGE
        SimpleRouter::post('/buffer/post', 'Page@post')->setName('postbuffer');
        SimpleRouter::post('/page/images', 'Page@getImages')->setName('getimages');
        
        // COMMENT
        SimpleRouter::post('/comment/post', 'Comment@post')->setName('postcomment');
    });
    
    SimpleRouter::start();
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER www-data
HOME /var/www
PATH_TRANSLATED redirect:/index.php/links.php
PATH_INFO /links.php
SCRIPT_NAME /index.php
REQUEST_URI /links.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/2.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /links.php
REMOTE_PORT 56514
SCRIPT_FILENAME /var/www/aikonia/html/index.php
SERVER_ADMIN hello@aikoniacomic.com
CONTEXT_DOCUMENT_ROOT /var/www/aikonia/html
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/aikonia/html
REMOTE_ADDR 3.95.233.107
SERVER_PORT 443
SERVER_ADDR 159.203.44.17
SERVER_NAME aikoniacomic.com
SERVER_SOFTWARE Apache/2.4.54 (Ubuntu)
SERVER_SIGNATURE <address>Apache/2.4.54 (Ubuntu) Server at aikoniacomic.com Port 443</address>
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
HTTP_HOST aikoniacomic.com
HTTP_REFERER http://aikoniacomic.com/links.php
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
proxy-nokeepalive 1
SSL_TLS_SNI aikoniacomic.com
HTTPS on
H2_STREAM_TAG 261-3
H2_STREAM_ID 3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH off
H2PUSH off
HTTP2 on
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI aikoniacomic.com
REDIRECT_HTTPS on
REDIRECT_H2_STREAM_TAG 261-3
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH off
REDIRECT_H2PUSH off
REDIRECT_HTTP2 on
FCGI_ROLE RESPONDER
PHP_SELF /index.php/links.php
REQUEST_TIME_FLOAT 1710832071.6625
REQUEST_TIME 1710832071
empty
0. Whoops\Handler\PrettyPageHandler