Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Notice: Undefined property: TheatreCore\Repository\SpectaclesRepository::$zone_recherche

Exception

ErrorException

  1.         $this->initialize();
  2.         $scope debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS2)[1]['class'] ?? null;
  3.         return (function () use ($name) {
  4.             return $this->$name;
  5.         })->bindTo($this$scope)();
  6.     }
  7.     public function __isset(string $name): bool
  8.     {
  1.         $scope debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS2)[1]['class'] ?? null;
  2.         return (function () use ($name) {
  3.             return $this->$name;
  4.         })->bindTo($this$scope)();
  5.     }
  6.     public function __isset(string $name): bool
  7.     {
  8.         $this->initialize();
  1.     public function setZoneRecherche($zone)
  2.     {
  3.         if (!$zone) {
  4.             unset($this->zone_recherche['zip']);
  5.         } else {
  6.             $this->zone_recherche['zip'] = $zone;
  7.         }
  8.     }
  9.     // }}}
SpectaclesRepository->setZoneRecherche() in /home/web/theatre-contemporain.net/dev/src/Controller/TextesController.php (line 210)
  1.             $params_sql['special']['text']['language'] = array('NOT IN' => array('fr'));
  2.         }
  3.         if(!empty($params_sql['special']['area'])) {
  4.             $this->context['view']->area_active true;
  5.             $this->spectacles->setZoneRecherche($this->getZoneRecherche($params_sql['special']['area'])); // définir la zone de recherche
  6.         }
  7.         $this->context['view']->nb_textes_total $this->spectacles->countListSpectacles($params_sql);
  8.         $params_sql['params']['limit'] = array($this->getLimitStart(),$this->perPage);
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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.     }
  1.     Debug::enable();
  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);

Stack Trace

ErrorException
ErrorException:
Notice: Undefined property: TheatreCore\Repository\SpectaclesRepository::$zone_recherche

  at /home/web/theatre-contemporain.net/dev/vendor/doctrine/doctrine-bundle/Repository/LazyServiceEntityRepository.php:54
  at TheatreCore\Repository\SpectaclesRepository->Doctrine\Bundle\DoctrineBundle\Repository\{closure}()
     (/home/web/theatre-contemporain.net/dev/vendor/doctrine/doctrine-bundle/Repository/LazyServiceEntityRepository.php:55)
  at Doctrine\Bundle\DoctrineBundle\Repository\LazyServiceEntityRepository->__get()
     (/home/web/theatre-contemporain.net/dev/vendor/theatre/core/src/Repository/SpectaclesRepository.php:2554)
  at TheatreCore\Repository\SpectaclesRepository->setZoneRecherche()
     (/home/web/theatre-contemporain.net/dev/src/Controller/TextesController.php:210)
  at App\Controller\TextesController->action_affiche()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/home/web/theatre-contemporain.net/dev/public/index.php:20)