Error A route matching "pageLink=browse.gapmapping&vname=PX020202_Measured_Birthweight_Average_Pound&vid=PX020202040200" could not be found.
* @throws \Cake\Routing\Exception\MissingRouteException When a route cannot be handled |
|
*/ |
|
public static function parseRequest(ServerRequest $request): array |
|
{ |
|
return static::$_collection->parseRequest($request); |
|
} |
|
|
|
/** |
|
* Set current request instance. |
Router::setRequest($request); |
|
$params = (array)$request->getAttribute('params', []); |
|
$middleware = []; |
|
if (empty($params['controller'])) { |
|
$params = Router::parseRequest($request) + $params; |
|
if (isset($params['_middleware'])) { |
|
$middleware = $params['_middleware']; |
|
} |
|
$route = $params['_route']; |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
} |
|
|
|
$assetFile = $this->_getAssetFile($url); |
|
if ($assetFile === null || !is_file($assetFile)) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$file = new SplFileInfo($assetFile); |
|
$modifiedTime = $file->getMTime(); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
try { |
|
return $handler->handle($request); |
|
} catch (RedirectException $exception) { |
|
return $this->handleRedirect($exception); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
$this->queue = $queue; |
|
$this->queue->rewind(); |
|
$this->fallbackHandler = $fallbackHandler; |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
} |
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
|
|
$response = $this->runner->run($middleware, $request, $this->app); |
|
|
|
if ($request instanceof ServerRequest) { |
|
$request->getSession()->close(); |
|
} |
// Bind your application to the server. |
|
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application and emit the response. |
|
$server->emit($server->run()); |
|
|
None of the currently connected routes match the provided parameters. Add a matching route to config/routes.php
Template | Defaults | Options |
---|---|---|
/pages/* | [
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
] |
[
'_ext' => [
],
'routeClass' => 'Cake\Routing\Route\Route',
] |
/pageLink | [
'controller' => 'Protocols',
'action' => 'index',
'plugin' => null,
] |
[
'persist' => true,
'routeClass' => 'Cake\Routing\Route\RedirectRoute',
'_ext' => [
],
] |
/debug-kit/toolbar/clear-cache | [
'controller' => 'Toolbar',
'action' => 'clearCache',
'plugin' => 'DebugKit',
] |
[
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/toolbar/* | [
'controller' => 'Requests',
'action' => 'view',
'plugin' => 'DebugKit',
] |
[
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/panels/view/latest-history | [
'controller' => 'Panels',
'action' => 'latestHistory',
'plugin' => 'DebugKit',
] |
[
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/panels/view/* | [
'controller' => 'Panels',
'action' => 'view',
'plugin' => 'DebugKit',
] |
[
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/panels/* | [
'controller' => 'Panels',
'action' => 'index',
'plugin' => 'DebugKit',
] |
[
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/mail-preview/sent/{panel}/{id} | [
'action' => 'sent',
'controller' => 'MailPreview',
'plugin' => 'DebugKit',
] |
[
'pass' => [
(int) 0 => 'panel',
(int) 1 => 'id',
],
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/mail-preview/preview | [
'action' => 'email',
'controller' => 'MailPreview',
'plugin' => 'DebugKit',
] |
[
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/mail-preview/preview/* | [
'action' => 'email',
'controller' => 'MailPreview',
'plugin' => 'DebugKit',
] |
[
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/mail-preview | [
'action' => 'index',
'controller' => 'MailPreview',
'plugin' => 'DebugKit',
] |
[
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/dashboard/reset | [
'controller' => 'Dashboard',
'action' => 'reset',
'_method' => 'POST',
'plugin' => 'DebugKit',
] |
[
'_name' => null,
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/dashboard | [
'controller' => 'Dashboard',
'action' => 'index',
'_method' => 'GET',
'plugin' => 'DebugKit',
] |
[
'_name' => null,
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit/composer/check-dependencies | [
'controller' => 'Composer',
'action' => 'checkDependencies',
'plugin' => 'DebugKit',
] |
[
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/debug-kit | [
'controller' => 'Dashboard',
'action' => 'index',
'_method' => 'GET',
'plugin' => 'DebugKit',
] |
[
'_name' => null,
'_ext' => [
(int) 0 => 'json',
],
'routeClass' => 'Cake\Routing\Route\DashedRoute',
] |
/cross-domain-browser | [
'controller' => 'MeshTermsProtocols',
'action' => 'index',
'plugin' => null,
] |
[
'_ext' => [
],
'routeClass' => 'Cake\Routing\Route\Route',
] |
/ | [
'controller' => 'Pages',
'action' => 'display',
(int) 0 => 'home',
'plugin' => null,
] |
[
'_ext' => [
],
'routeClass' => 'Cake\Routing\Route\Route',
] |
/{controller} | [
'action' => 'index',
'plugin' => null,
] |
[
'routeClass' => 'Cake\Routing\Route\DashedRoute',
'_ext' => [
],
] |
/{controller}/{action}/* | [
'plugin' => null,
'action' => 'index',
] |
[
'routeClass' => 'Cake\Routing\Route\DashedRoute',
'_ext' => [
],
] |
If you want to customize this error message, create templates/Error/missing_route.php