https://51.159.55.97/public/index.php/

Exceptions

Invalid method override "__CONSTRUCT".

Exceptions 2

Symfony\Component\HttpKernel\Exception\ BadRequestHttpException

  1.     private function setCurrentRequest(Request $request null) {
  2.         if (null !== $request) {
  3.             try {
  4.                 $this->context->fromRequest($request);
  5.             } catch (\UnexpectedValueException $e) {
  6.                 throw new BadRequestHttpException($e->getMessage(), $e$e->getCode());
  7.             }
  8.         }
  9.     }
  10.     /**
  1.     }
  2.     public function onKernelRequest(GetResponseEvent $event) {
  3.         $request $event->getRequest();
  4.         $this->setCurrentRequest($request);
  5.         if ($request->attributes->has('_controller')) {
  6.             // routing is already done
  7.             return;
  8.         }
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     protected function doDispatch($listeners$eventNameEvent $event) {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  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.     }
  1.         try {
  2.             $this->preDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($eventName$event);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.     private function handleRaw(Request $requestint $type self::MASTER_REQUEST) {
  2.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new GetResponseEvent($this$request$type);
  5.         $this->dispatcher->dispatch(KernelEvents::REQUEST$event);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
  1.      */
  2.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true) {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  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() in public/index.php (line 28)
  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. // // LG 20220802 pour tests
  7. // if (file_exists("/home/luc/partage_win10/Poubelle/")) {
  8. //     $jsonfile = "/home/luc/partage_win10/Poubelle/comparePasswords.txt";
  9. // } else if (file_exists("/var/www/html/PAA/Recette/var/log/")) {

Symfony\Component\HttpFoundation\Exception\ SuspiciousOperationException

Invalid method override "__CONSTRUCT".

  1.         if (\in_array($method, ['GET''HEAD''POST''PUT''DELETE''CONNECT''OPTIONS''PATCH''PURGE''TRACE'], true)) {
  2.             return $this->method $method;
  3.         }
  4.         if (!preg_match('/^[A-Z]++$/D'$method)) {
  5.             throw new SuspiciousOperationException(sprintf('Invalid method override "%s".'$method));
  6.         }
  7.         return $this->method $method;
  8.     }
  1.      * @return $this
  2.      */
  3.     public function fromRequest(Request $request) {
  4.         $this->setBaseUrl($request->getBaseUrl());
  5.         $this->setPathInfo($request->getPathInfo());
  6.         $this->setMethod($request->getMethod());
  7.         $this->setHost($request->getHost());
  8.         $this->setScheme($request->getScheme());
  9.         $this->setHttpPort($request->isSecure() ? $this->httpPort $request->getPort());
  10.         $this->setHttpsPort($request->isSecure() ? $request->getPort() : $this->httpsPort);
  11.         $this->setQueryString($request->server->get('QUERY_STRING'''));
  1.     }
  2.     private function setCurrentRequest(Request $request null) {
  3.         if (null !== $request) {
  4.             try {
  5.                 $this->context->fromRequest($request);
  6.             } catch (\UnexpectedValueException $e) {
  7.                 throw new BadRequestHttpException($e->getMessage(), $e$e->getCode());
  8.             }
  9.         }
  10.     }
  1.     }
  2.     public function onKernelRequest(GetResponseEvent $event) {
  3.         $request $event->getRequest();
  4.         $this->setCurrentRequest($request);
  5.         if ($request->attributes->has('_controller')) {
  6.             // routing is already done
  7.             return;
  8.         }
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.     protected function doDispatch($listeners$eventNameEvent $event) {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             $listener($event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
  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.     }
  1.         try {
  2.             $this->preDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($eventName$event);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.     private function handleRaw(Request $requestint $type self::MASTER_REQUEST) {
  2.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new GetResponseEvent($this$request$type);
  5.         $this->dispatcher->dispatch(KernelEvents::REQUEST$event);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
  1.      */
  2.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true) {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  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() in public/index.php (line 28)
  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. // // LG 20220802 pour tests
  7. // if (file_exists("/home/luc/partage_win10/Poubelle/")) {
  8. //     $jsonfile = "/home/luc/partage_win10/Poubelle/comparePasswords.txt";
  9. // } else if (file_exists("/var/www/html/PAA/Recette/var/log/")) {

Stack Traces 2

[2/2] BadRequestHttpException

Symfony\Component\HttpKernel\Exception\BadRequestHttpException:
Invalid method override "__CONSTRUCT".

  at vendor/symfony/http-kernel/EventListener/RouterListener.php:82
  at Symfony\Component\HttpKernel\EventListener\RouterListener->setCurrentRequest()
     (vendor/symfony/http-kernel/EventListener/RouterListener.php:100)
  at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:108)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:203)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:43)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:135)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:121)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:65)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:190)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:28)

[1/2] SuspiciousOperationException

Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException:
Invalid method override "__CONSTRUCT".

  at vendor/symfony/http-foundation/Request.php:1190
  at Symfony\Component\HttpFoundation\Request->getMethod()
     (vendor/symfony/routing/RequestContext.php:55)
  at Symfony\Component\Routing\RequestContext->fromRequest()
     (vendor/symfony/http-kernel/EventListener/RouterListener.php:80)
  at Symfony\Component\HttpKernel\EventListener\RouterListener->setCurrentRequest()
     (vendor/symfony/http-kernel/EventListener/RouterListener.php:100)
  at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:108)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:203)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:43)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:135)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:121)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:65)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:190)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:28)