Error 404 Not Found

GET https://testj1.location-collective.co.uk/upload/location-photos/8622-1572251687-144606.jpg

Forwarded to ErrorController (272f14)

Exceptions

No route found for "GET https://testj1.location-collective.co.uk/upload/location-photos/8622-1572251687-144606.jpg"

Exceptions 2

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

Show exception properties
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#216
  -statusCode: 404
  -headers: []
}
  1. if ($referer = $request->headers->get('referer')) {
  2. $message .= \sprintf(' (from "%s")', $referer);
  3. }
  4. throw new NotFoundHttpException($message, $e);
  5. } catch (MethodNotAllowedException $e) {
  6. $message = \sprintf('No route found for "%s %s": Method Not Allowed (Allow: %s)', $request->getMethod(), $request->getUriForPath($request->getPathInfo()), implode(', ', $e->getAllowedMethods()));
  7. throw new MethodNotAllowedHttpException($e->getAllowedMethods(), $message, $e);
  8. }
  1. $closure = static function (...$args) use (&$listener, &$closure) {
  2. if ($listener[0] instanceof \Closure) {
  3. $listener[0] = $listener[0]();
  4. $listener[1] ??= '__invoke';
  5. }
  6. ($closure = $listener(...))(...$args);
  7. };
  8. } else {
  9. $closure = $listener instanceof WrappedListener ? $listener : $listener(...);
  10. }
  11. }
in vendor/symfony/event-dispatcher/EventDispatcher.php :: Symfony\Component\EventDispatcher\{closure} (line 206)
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. */
  2. private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response
  3. {
  4. // request
  5. $event = new RequestEvent($this, $request, $type);
  6. $this->dispatcher->dispatch($event, KernelEvents::REQUEST);
  7. if ($event->hasResponse()) {
  8. return $this->filterResponse($event->getResponse(), $request, $type);
  9. }
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. $this->boot();
  2. ++$this->requestStackSize;
  3. $this->resetServices = true;
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
Kernel->handle(object(Request)) in public/index.php (line 24)
  1. Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request = Request::createFromGlobals();
  5. $response = $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request, $response);

Symfony\Component\Routing\Exception\ ResourceNotFoundException

No routes found for "/upload/location-photos/8622-1572251687-144606.jpg/".

  1. if ($allowSchemes) {
  2. goto redirect_scheme;
  3. }
  4. }
  5. throw new ResourceNotFoundException(\sprintf('No routes found for "%s".', $pathinfo));
  6. }
  7. private function doMatch(string $pathinfo, array &$allow = [], array &$allowSchemes = []): array
  8. {
  9. $allow = $allowSchemes = [];
  1. public function matchRequest(Request $request): array
  2. {
  3. $this->request = $request;
  4. $ret = $this->match($request->getPathInfo());
  5. $this->request = null;
  6. return $ret;
  7. }
in vendor/symfony/routing/Router.php -> matchRequest (line 188)
  1. if (!$matcher instanceof RequestMatcherInterface) {
  2. // fallback to the default UrlMatcherInterface
  3. return $matcher->match($request->getPathInfo());
  4. }
  5. return $matcher->matchRequest($request);
  6. }
  7. /**
  8. * Gets the UrlMatcher or RequestMatcher instance associated with this Router.
  9. */
  1. // add attributes based on the request (routing)
  2. try {
  3. // matching a request is more powerful than matching a URL path + context, so try that first
  4. if ($this->matcher instanceof RequestMatcherInterface) {
  5. $parameters = $this->matcher->matchRequest($request);
  6. } else {
  7. $parameters = $this->matcher->match($request->getPathInfo());
  8. }
  9. $this->logger?->info('Matched route "{route}".', [
  1. $closure = static function (...$args) use (&$listener, &$closure) {
  2. if ($listener[0] instanceof \Closure) {
  3. $listener[0] = $listener[0]();
  4. $listener[1] ??= '__invoke';
  5. }
  6. ($closure = $listener(...))(...$args);
  7. };
  8. } else {
  9. $closure = $listener instanceof WrappedListener ? $listener : $listener(...);
  10. }
  11. }
in vendor/symfony/event-dispatcher/EventDispatcher.php :: Symfony\Component\EventDispatcher\{closure} (line 206)
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. */
  2. private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response
  3. {
  4. // request
  5. $event = new RequestEvent($this, $request, $type);
  6. $this->dispatcher->dispatch($event, KernelEvents::REQUEST);
  7. if ($event->hasResponse()) {
  8. return $this->filterResponse($event->getResponse(), $request, $type);
  9. }
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. $this->boot();
  2. ++$this->requestStackSize;
  3. $this->resetServices = true;
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
Kernel->handle(object(Request)) in public/index.php (line 24)
  1. Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request = Request::createFromGlobals();
  5. $response = $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request, $response);

Logs

Level Channel Message
INFO 14:34:13 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://testj1.location-collective.co.uk/_profiler/latest?panel=exception&type=request",
    "method": "GET"
}
INFO 14:34:13 deprecation User Deprecated: Support for MariaDB < 10.4 is deprecated and will be removed in DBAL 4. Consider upgrading to a more recent version of MariaDB. (AbstractMySQLDriver.php:61 called by AbstractDriverMiddleware.php:68, https://github.com/doctrine/dbal/pull/6110, package doctrine/dbal)
{
    "exception": {}
}

Stack Traces 2

[2/2] NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
No route found for "GET https://testj1.location-collective.co.uk/upload/location-photos/8622-1572251687-144606.jpg"

  at vendor/symfony/http-kernel/EventListener/RouterListener.php:149
  at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(object(RequestEvent), 'kernel.request', object(EventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:246)
  at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(object(RequestEvent), 'kernel.request', object(EventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure)), 'kernel.request', object(RequestEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/http-kernel/HttpKernel.php:159)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:182)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:24)                
[1/2] ResourceNotFoundException
Symfony\Component\Routing\Exception\ResourceNotFoundException:
No routes found for "/upload/location-photos/8622-1572251687-144606.jpg/".

  at vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70
  at Symfony\Component\Routing\Matcher\CompiledUrlMatcher->match('/upload/location-photos/8622-1572251687-144606.jpg/')
     (vendor/symfony/routing/Matcher/UrlMatcher.php:89)
  at Symfony\Component\Routing\Matcher\UrlMatcher->matchRequest(object(Request))
     (vendor/symfony/routing/Router.php:188)
  at Symfony\Component\Routing\Router->matchRequest(object(Request))
     (vendor/symfony/http-kernel/EventListener/RouterListener.php:101)
  at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(object(RequestEvent), 'kernel.request', object(EventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:246)
  at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(object(RequestEvent), 'kernel.request', object(EventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure)), 'kernel.request', object(RequestEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/http-kernel/HttpKernel.php:159)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:182)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:24)