Error
Mako: 8.1.0, PHP: 8.1.27

mako\http\exceptions\NotFoundException (404)

The resource you requested could not be found. It may have been moved or deleted.

Stack Trace
Environment
Database
- Error mako\http\exceptions\NotFoundException
Location: /var/www/html/vendor/mako/framework/src/mako/http/routing/Router.php on line 256.
250
	 * @return \mako\http\routing\Route
251
	 */
252
	protected function notFoundRoute(): Route
253
	{
254
		return new Route([], '', static function (): void
255
		{
256
			throw new NotFoundException;
257
		}, 'router:404');
258
	}
259

260
	/**
261
	 * Matches and returns the appropriate route along with its parameters.
262
	 *
9 Vendor mako\http\routing\Router::mako\http\routing\{closure}()
Location: /var/www/html/vendor/mako/framework/src/mako/syringe/Container.php on line 600.
594
		{
595
			$reflection = new ReflectionMethod($callable[0], $callable[1]);
596

597
			return $callable(...$this->resolveParameters($reflection->getParameters(), $parameters, $reflection->getDeclaringClass(), $callable[1]));
598
		}
599

600
		return $callable(...$this->resolveParameters((new ReflectionFunction($callable))->getParameters(), $parameters));
601
	}
602
}
603
8 Vendor mako\syringe\Container->call()
Location: /var/www/html/vendor/mako/framework/src/mako/http/routing/Dispatcher.php on line 255.
249
	 * @param  \Closure            $action     Closure
250
	 * @param  array               $parameters Parameters
251
	 * @return \mako\http\Response
252
	 */
253
	protected function executeClosure(Closure $action, array $parameters): Response
254
	{
255
		return $this->response->setBody($this->container->call($action, $parameters));
256
	}
257

258
	/**
259
	 * Executes a controller action.
260
	 *
261
	 * @param  array|string        $action     Controller
7 Vendor mako\http\routing\Dispatcher->executeClosure()
Location: /var/www/html/vendor/mako/framework/src/mako/http/routing/Dispatcher.php on line 316.
310
		$action = $route->getAction();
311

312
		$parameters = $route->getParameters();
313

314
		if($action instanceof Closure)
315
		{
316
			return $this->executeClosure($action, $parameters);
317
		}
318

319
		return $this->executeController($action, $parameters);
320
	}
321

322
	/**
6 Vendor mako\http\routing\Dispatcher->executeAction()
Location: /var/www/html/vendor/mako/framework/src/mako/http/routing/Dispatcher.php on line 334.
328
	public function dispatch(Route $route): Response
329
	{
330
		$onion = new Onion($this->container, null, MiddlewareInterface::class);
331

332
		$this->addMiddlewareToStack($onion, [...$this->globalMiddleware, ...$route->getMiddleware()]);
333

334
		return $onion->peel(fn () => $this->executeAction($route), [$this->request, $this->response]);
335
	}
336
}
337
5 Vendor mako\http\routing\Dispatcher->mako\http\routing\{closure}()
Location: /var/www/html/vendor/mako/framework/src/mako/onion/Onion.php on line 125.
119
	protected function buildCoreClosure(object $object): Closure
120
	{
121
		return function (...$arguments) use ($object)
122
		{
123
			$callable = $object instanceof Closure ? $object : [$object, $this->method];
124

125
			return $callable(...$arguments);
126
		};
127
	}
128

129
	/**
130
	 * Builds a layer closure.
131
	 *
4 Vendor mako\onion\Onion->mako\onion\{closure}()
Location: /var/www/html/vendor/mako/framework/src/mako/onion/Onion.php on line 201.
195
		{
196
			$middleware = $this->middlewareFactory($layer, $middlewareParameters);
197

198
			$next = $this->buildLayerClosure($middleware, $next);
199
		}
200

201
		return $next(...$parameters);
202
	}
203
}
204
3 Vendor mako\onion\Onion->peel()
Location: /var/www/html/vendor/mako/framework/src/mako/http/routing/Dispatcher.php on line 334.
328
	public function dispatch(Route $route): Response
329
	{
330
		$onion = new Onion($this->container, null, MiddlewareInterface::class);
331

332
		$this->addMiddlewareToStack($onion, [...$this->globalMiddleware, ...$route->getMiddleware()]);
333

334
		return $onion->peel(fn () => $this->executeAction($route), [$this->request, $this->response]);
335
	}
336
}
337
2 Vendor mako\http\routing\Dispatcher->dispatch()
Location: /var/www/html/vendor/mako/framework/src/mako/application/web/Application.php on line 50.
44
		// Route the request
45

46
		$route = $this->container->get(Router::class)->route($request);
47

48
		// Dispatch the request and send the response
49

50
		$this->container->get(Dispatcher::class)->dispatch($route)->send();
51
	}
52
}
53
1 Vendor mako\application\web\Application->run()
Location: /var/www/html/index.php on line 10.
4

5
/**
6
 * Require init file and run the application.
7
 */
8
include __DIR__ . '/app/init.php';
9

10
Application::start(MAKO_APPLICATION_PATH)->run();
11
os Linux hbr-deployment-77846cbd4b-2pkvb 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
server time 2024-03-28 17:08:33 UTC
$_SERVER
  • HTTPS

    (2) "on"
    

  • HTTP_HOST

    (10) "histreg.no"
    

  • HTTP_X_REQUEST_ID

    (32) "e098c5dd4496a4259e5f5c5e5f97d405"
    

  • HTTP_X_REAL_IP

    (12) "128.39.57.53"
    

  • HTTP_X_FORWARDED_FOR

    (12) "128.39.57.53"
    

  • HTTP_X_FORWARDED_HOST

    (10) "histreg.no"
    

  • HTTP_X_FORWARDED_PORT

    (3) "443"
    

  • HTTP_X_FORWARDED_PROTO

    (5) "https"
    

  • HTTP_X_FORWARDED_SCHEME

    (5) "https"
    

  • HTTP_X_SCHEME

    (5) "https"
    

  • HTTP_ACCEPT

    (3) "*/*"
    

  • HTTP_USER_AGENT

    (9) "claudebot"
    

  • PATH

    (60) "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    

  • SERVER_SIGNATURE

    (71) "<address>Apache/2.4.57 (Debian) Server at histreg.no Port 80</address>\n"
    

  • SERVER_SOFTWARE

    (22) "Apache/2.4.57 (Debian)"
    

  • SERVER_NAME

    (10) "histreg.no"
    

  • SERVER_ADDR

    (12) "172.20.3.250"
    

  • SERVER_PORT

    (2) "80"
    

  • REMOTE_ADDR

    (10) "172.20.3.9"
    

  • DOCUMENT_ROOT

    (13) "/var/www/html"
    

  • REQUEST_SCHEME

    (4) "http"
    

  • CONTEXT_PREFIX

    ""
    

  • CONTEXT_DOCUMENT_ROOT

    (13) "/var/www/html"
    

  • SERVER_ADMIN

    (19) "webmaster@localhost"
    

  • SCRIPT_FILENAME

    (23) "/var/www/html/index.php"
    

  • REMOTE_PORT

    (5) "42406"
    

  • GATEWAY_INTERFACE

    (7) "CGI/1.1"
    

  • SERVER_PROTOCOL

    (8) "HTTP/1.1"
    

  • REQUEST_METHOD

    (3) "GET"
    

  • QUERY_STRING

    ""
    

  • REQUEST_URI

    (106) "/index.php/annonces/jubilee/1/http//urn.nb.no/URNNBNno-nb_digiavis_aftenposten_null_null_19530811_94_365_1"
    

  • SCRIPT_NAME

    (10) "/index.php"
    

  • PATH_INFO

    (95) "/annonces/jubilee/1/http/urn.nb.no/URNNBNno-nb_digiavis_aftenposten_null_null_19530811_94_365_1"
    

  • PATH_TRANSLATED

    (108) "/var/www/html/annonces/jubilee/1/http/urn.nb.no/URNNBNno-nb_digiavis_aftenposten_null_null_19530811_94_365_1"
    

  • PHP_SELF

    (105) "/index.php/annonces/jubilee/1/http/urn.nb.no/URNNBNno-nb_digiavis_aftenposten_null_null_19530811_94_365_1"
    

  • REQUEST_TIME_FLOAT

    1711645713.5127
    

  • REQUEST_TIME

    1711645713
    

No database connections have been established.