Symfony异常

ResourceNotFoundException NotFoundHttpException

HTTP 404 未找到

找不到路线"GET /assets/js/kcfinder/browse.php"

例外情况 2

Symfony \ Component \ Http内核 \ Exception \ NotFoundHttpException

  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->getPathInfo(), implode(', '$e->getAllowedMethods()));
  7.             throw new MethodNotAllowedHttpException($e->getAllowedMethods(), $message$e);
  8.         }
路由器监听器->onKernelRequest(目的(GetResponseEvent),“ kernel.request”, 目的(TraceableEventDispatcher)) 供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher / Debug /包装的监听器.php(第115行)
  1.         $this->called 真正;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         \call_user_func($this->listener$event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
包装的监听器->__调用(目的(GetResponseEvent),“ kernel.request”, 目的(TraceableEventDispatcher)) 供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher /EventDispatcher.php(第212行)
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             \call_user_func($listener$event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
EventDispatcher->doDispatch(数组(目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器)),“ kernel.request”, 目的(GetResponseEvent)) 供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher /EventDispatcher.php(第44行)
  1.         if (null === $event) {
  2.             $event = new Event();
  3.         }
  4.         if ($listeners $this->getListeners($eventName)) {
  5.             $this->doDispatch($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
EventDispatcher->调度(“ kernel.request”, 目的(GetResponseEvent)) 供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher / Debug /TraceableEventDispatcher.php(第143行)
  1.         try {
  2.             $this->preDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->调度er->调度($eventName$event);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
TraceableEventDispatcher->调度(“ kernel.request”, 目的(GetResponseEvent)) 供应商/ symfony / symfony / src / Symfony / Component / Http内核 /Http内核.php(第127行)
  1.     {
  2.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new GetResponseEvent($this$request$type);
  5.         $this->调度er->调度(核心Events::REQUEST$event);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
Http内核->处理原始(目的(请求), 1) 供应商/ symfony / symfony / src / Symfony / Component / Http内核 /Http内核.php(第68行)
  1.     public function 处理(请求 $request$type Http内核Interface::MASTER_REQUEST$catch 真正)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->处理原始($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e 在 stanceof 请求ExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
Http内核->处理(目的(请求), 1, 真正) 供应商/ symfony / symfony / src / Symfony / Component / Http内核 /内核.php(第200行)
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices 真正;
  4.         try {
  5.             return $this->getHttpKernel()->处理($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
核心->处理(目的(请求)) 网络/app.php(第18行)
  1. //$kernel = new AppCache($kernel);
  2. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  3. //Request::enableHttpMethodParameterOverride();
  4. $request 请求::createFromGlobals();
  5. $response $kernel->处理($request);
  6. $response->send();
  7. $kernel->terminate($request$response);
  8. 在 i_set('date.timezone''America/Los_Angeles');

Symfony \ Component \ Routing \ Exception \ ResourceNotFoundException

  1.         if ('/' === $pathinfo && !$allow) {
  2.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  3.         }
  4.         throw count($allow) ? new MethodNotAllowedException(数组_unique($allow)) : new ResourceNotFoundException();
  5.     }
  6. }
appProdDebugProjectContainerUrlMatcher->比赛('/assets/js/kcfinder/browse.php') 供应商/ symfony / symfony / src / Symfony /组件/路由/匹配器/网址匹配器.php(第95行)
  1.      */
  2.     public function 比赛Request(请求 $request)
  3.     {
  4.         $this->request $request;
  5.         $ret $this->比赛($request->getPathInfo());
  6.         $this->request null;
  7.         return $ret;
  8.     }
网址匹配器->比赛Request(目的(请求)) 供应商/ symfony / symfony / src / Symfony /组件/路由/路由器.php(第262行)
  1.         if (!$matcher 在 stanceof 请求MatcherInterface) {
  2.             // fallback to the default UrlMatcherInterface
  3.             return $matcher->比赛($request->getPathInfo());
  4.         }
  5.         return $matcher->比赛Request($request);
  6.     }
  7.     /**
  8.      * Gets the UrlMatcher 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->比赛er 在 stanceof 请求MatcherInterface) {
  5.                 $parameters $this->比赛er->比赛Request($request);
  6.             } else {
  7.                 $parameters $this->比赛er->比赛($request->getPathInfo());
  8.             }
  9.             if (null !== $this->logger) {
路由器监听器->onKernelRequest(目的(GetResponseEvent),“ kernel.request”, 目的(TraceableEventDispatcher)) 供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher / Debug /包装的监听器.php(第115行)
  1.         $this->called 真正;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         \call_user_func($this->listener$event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
包装的监听器->__调用(目的(GetResponseEvent),“ kernel.request”, 目的(TraceableEventDispatcher)) 供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher /EventDispatcher.php(第212行)
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             \call_user_func($listener$event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
EventDispatcher->doDispatch(数组(目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器), 目的(包装的监听器)),“ kernel.request”, 目的(GetResponseEvent)) 供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher /EventDispatcher.php(第44行)
  1.         if (null === $event) {
  2.             $event = new Event();
  3.         }
  4.         if ($listeners $this->getListeners($eventName)) {
  5.             $this->doDispatch($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
EventDispatcher->调度(“ kernel.request”, 目的(GetResponseEvent)) 供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher / Debug /TraceableEventDispatcher.php(第143行)
  1.         try {
  2.             $this->preDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->调度er->调度($eventName$event);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
TraceableEventDispatcher->调度(“ kernel.request”, 目的(GetResponseEvent)) 供应商/ symfony / symfony / src / Symfony / Component / Http内核 /Http内核.php(第127行)
  1.     {
  2.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new GetResponseEvent($this$request$type);
  5.         $this->调度er->调度(核心Events::REQUEST$event);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
Http内核->处理原始(目的(请求), 1) 供应商/ symfony / symfony / src / Symfony / Component / Http内核 /Http内核.php(第68行)
  1.     public function 处理(请求 $request$type Http内核Interface::MASTER_REQUEST$catch 真正)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->处理原始($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e 在 stanceof 请求ExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
Http内核->处理(目的(请求), 1, 真正) 供应商/ symfony / symfony / src / Symfony / Component / Http内核 /内核.php(第200行)
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices 真正;
  4.         try {
  5.             return $this->getHttpKernel()->处理($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
核心->处理(目的(请求)) 网络/app.php(第18行)
  1. //$kernel = new AppCache($kernel);
  2. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  3. //Request::enableHttpMethodParameterOverride();
  4. $request 请求::createFromGlobals();
  5. $response $kernel->处理($request);
  6. $response->send();
  7. $kernel->terminate($request$response);
  8. 在 i_set('date.timezone''America/Los_Angeles');

日志

没有日志消息

堆栈痕迹 2

[2/2] NotFoundHttpException

Symfony \ Component \ Http内核 \ Exception \ NotFoundHttpException:
No route found for "GET /assets/js/kcfinder/browse.php"

  at 供应商/ symfony / symfony / src / Symfony / Component / Http内核 / EventListener /RouterListener.php:139
  at Symfony \ Component \ Http内核 \ EventListener \ 路由器监听器->onKernelRequest(object(GetResponseEvent), 'kernel.request', 目的(TraceableEventDispatcher))
     (供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher / Debug /WrappedListener.php:115)
  at Symfony \ Component \ EventDispatcher \ Debug \ 包装的监听器->__invoke(object(GetResponseEvent), 'kernel.request', 目的(TraceableEventDispatcher))
     (供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher /EventDispatcher.php:212)
  at Symfony \ Component \ EventDispatcher \ EventDispatcher->doDispatch(array(object(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener)), 'kernel.request', 目的(GetResponseEvent))
     (供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher /EventDispatcher.php:44)
  at Symfony \ Component \ EventDispatcher \ EventDispatcher->dispatch('kernel.request', 目的(GetResponseEvent))
     (供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher / Debug /TraceableEventDispatcher.php:143)
  at Symfony \ Component \ EventDispatcher \ Debug \ TraceableEventDispatcher->dispatch('kernel.request', 目的(GetResponseEvent))
     (供应商/ symfony / symfony / src / Symfony / Component / Http内核 /HttpKernel.php:127)
  at Symfony \ Component \ Http内核 \ Http内核->handleRaw(object(Request), 1)
     (供应商/ symfony / symfony / src / Symfony / Component / Http内核 /HttpKernel.php:68)
  at Symfony \ Component \ Http内核 \ Http内核->handle(object(Request), 1, 真正)
     (供应商/ symfony / symfony / src / Symfony / Component / Http内核 /Kernel.php:200)
  at Symfony \ Component \ Http内核 \ 核心->handle(object(Request))
     (web/app.php:18)

                                

[1/2] ResourceNotFoundException

Symfony \ Component \ Routing \ Exception \ ResourceNotFoundException:

  at var / cache / prod /appProdDebugProjectContainerUrlMatcher.php:2112
  at appProdDebugProjectContainerUrlMatcher->match('/assets/js/kcfinder/browse.php')
     (供应商/ symfony / symfony / src / Symfony /组件/路由/匹配器/UrlMatcher.php:95)
  at Symfony \ Component \ Routing \ Matcher \ 网址匹配器->matchRequest(object(Request))
     (供应商/ symfony / symfony / src / Symfony /组件/路由/Router.php:262)
  at Symfony \ Component \ Routing \ 路由器->matchRequest(object(Request))
     (供应商/ symfony / symfony / src / Symfony / Component / Http内核 / EventListener /RouterListener.php:115)
  at Symfony \ Component \ Http内核 \ EventListener \ 路由器监听器->onKernelRequest(object(GetResponseEvent), 'kernel.request', 目的(TraceableEventDispatcher))
     (供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher / Debug /WrappedListener.php:115)
  at Symfony \ Component \ EventDispatcher \ Debug \ 包装的监听器->__invoke(object(GetResponseEvent), 'kernel.request', 目的(TraceableEventDispatcher))
     (供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher /EventDispatcher.php:212)
  at Symfony \ Component \ EventDispatcher \ EventDispatcher->doDispatch(array(object(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener), 目的(WrappedListener)), 'kernel.request', 目的(GetResponseEvent))
     (供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher /EventDispatcher.php:44)
  at Symfony \ Component \ EventDispatcher \ EventDispatcher->dispatch('kernel.request', 目的(GetResponseEvent))
     (供应商/ symfony / symfony / src / Symfony /组件/ EventDispatcher / Debug /TraceableEventDispatcher.php:143)
  at Symfony \ Component \ EventDispatcher \ Debug \ TraceableEventDispatcher->dispatch('kernel.request', 目的(GetResponseEvent))
     (供应商/ symfony / symfony / src / Symfony / Component / Http内核 /HttpKernel.php:127)
  at Symfony \ Component \ Http内核 \ Http内核->handleRaw(object(Request), 1)
     (供应商/ symfony / symfony / src / Symfony / Component / Http内核 /HttpKernel.php:68)
  at Symfony \ Component \ Http内核 \ Http内核->handle(object(Request), 1, 真正)
     (供应商/ symfony / symfony / src / Symfony / Component / Http内核 /Kernel.php:200)
  at Symfony \ Component \ Http内核 \ 核心->handle(object(Request))
     (web/app.php:18)