Symfony Exception

TypeError LoaderError InvalidArgumentException

HTTP 500 Internal Server Error

Unable to find template "" (looked into: /srv/moonshot/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /srv/moonshot/app/Resources/views, /srv/moonshot/templates, /srv/moonshot/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form).

Exceptions 3

InvalidArgumentException

  1.         }
  2.         try {
  3.             return $this->environment->load((string) $name)->unwrap();
  4.         } catch (LoaderError $e) {
  5.             throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
  6.         }
  7.     }
  8. }
  1.      *
  2.      * @throws Error if something went wrong like a thrown exception while rendering the template
  3.      */
  4.     public function render($name, array $parameters = [])
  5.     {
  6.         return $this->load($name)->render($parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.                 $engine $view->getEngine() ?: $this->defaultEngine;
  2.                 $template->set('engine'$engine);
  3.             }
  4.         }
  5.         return $this->templating->render($template$data);
  6.     }
  7.     /**
  8.      * @deprecated since 2.8
  9.      *
  1.      */
  2.     private function initResponse(View $view$format)
  3.     {
  4.         $content null;
  5.         if ($this->isFormatTemplating($formatfalse)) {
  6.             $content $this->renderTemplate($view$formatfalse);
  7.         } elseif ($this->serializeNull || null !== $view->getData()) {
  8.             $data $this->getDataFromView($view);
  9.             if ($data instanceof FormInterface && $data->isSubmitted() && !$data->isValid()) {
  10.                 $view->getContext()->setAttribute('status_code'$this->failedValidationCode);
  1.         if ($location) {
  2.             return $this->createRedirectResponse($view$location$format);
  3.         }
  4.         $response $this->initResponse($view$format);
  5.         if (!$response->headers->has('Content-Type')) {
  6.             $mimeType $request->attributes->get('media_type');
  7.             if (null === $mimeType) {
  8.                 $mimeType $request->getMimeType($format);
  1.         if (isset($this->customHandlers[$format])) {
  2.             return call_user_func($this->customHandlers[$format], $this$view$request$format);
  3.         }
  4.         return $this->createResponse($view$request$format);
  5.     }
  6.     /**
  7.      * @param string $location
  8.      * @param string $format
  1.             $view $this->createView($exception$code$templateData$request$this->showException);
  2.         } else {
  3.             $view $this->createViewFromThrowable($exception$code$templateData$request$this->showException);
  4.         }
  5.         $response $this->viewHandler->handle($view);
  6.         return $response;
  7.     }
  8.     /**
  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.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) 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.         $exception $event->getThrowable();
  2.         $request $this->duplicateRequest($exception$event->getRequest());
  3.         try {
  4.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  5.         } catch (\Exception $e) {
  6.             $f FlattenException::createFromThrowable($e);
  7.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.             }
  2.             $this->dispatcher->removeListener(KernelEvents::CONTROLLER_ARGUMENTS$controllerArgsListener);
  3.         };
  4.         $this->dispatcher->addListener(KernelEvents::CONTROLLER_ARGUMENTS$controllerArgsListener, -100);
  5.         $this->exceptionListener->onKernelException($event);
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  9.      */
  1.                     $closure = static function (...$args) use (&$listener, &$closure) {
  2.                         if ($listener[0] instanceof \Closure) {
  3.                             $listener[0] = $listener[0]();
  4.                             $listener[1] = $listener[1] ?? '__invoke';
  5.                         }
  6.                         ($closure = \Closure::fromCallable($listener))(...$args);
  7.                     };
  8.                 } else {
  9.                     $closure $listener instanceof \Closure || $listener instanceof WrappedListener $listener : \Closure::fromCallable($listener);
  10.                 }
  11.             }
  1.     {
  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.      * @param object     $event     The event object to pass to the event handlers/listeners
  2.      */
  3.     protected function callListeners(iterable $listenersstring $eventName$event)
  4.     {
  5.         if ($event instanceof Event) {
  6.             $this->doDispatch($listeners$eventName$event);
  7.             return;
  8.         }
  9.         $stoppable $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.     {
  2.         if (!$request $request ?: $this->requestStack->getMasterRequest()) {
  3.             throw $exception;
  4.         }
  5.         $response $this->handleThrowable($exception$requestself::MASTER_REQUEST);
  6.         $response->sendHeaders();
  7.         $response->sendContent();
  8.         $this->terminate($request$response);
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/ErrorHandler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 592)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 return $exceptionHandler($exception);
  6.             }
  7.             $handlerException $handlerException ?: $exception;
  8.         } catch (\Throwable $handlerException) {
  9.         }
  10.         if ($exception === $handlerException && null === $this->exceptionHandler) {
ErrorHandler->handleException(object(TypeError))

Twig\Error\ LoaderError

Unable to find template "" (looked into: /srv/moonshot/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /srv/moonshot/app/Resources/views, /srv/moonshot/templates, /srv/moonshot/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form).

  1.         if (!$throw) {
  2.             return false;
  3.         }
  4.         throw new LoaderError($this->errorCache[$name]);
  5.     }
  6.     private function normalizeName($name)
  7.     {
  8.         return preg_replace('#/{2,}#''/'str_replace('\\''/', (string) $name));
  1.             return $this->cache[$logicalName];
  2.         }
  3.         $file null;
  4.         try {
  5.             $file parent::findTemplate($logicalName);
  6.         } catch (LoaderError $e) {
  7.             $twigLoaderException $e;
  8.             // for BC
  9.             try {
  1.         return new Source(file_get_contents($path), $name$path);
  2.     }
  3.     public function getCacheKey($name)
  4.     {
  5.         if (null === ($path $this->findTemplate($name)) || false === $path) {
  6.             return '';
  7.         }
  8.         $len = \strlen($this->rootPath);
  9.         if (=== strncmp($this->rootPath$path$len)) {
  10.             return substr($path$len);
  1.      *
  2.      * @internal
  3.      */
  4.     public function getTemplateClass($name$index null)
  5.     {
  6.         $key $this->getLoader()->getCacheKey($name).$this->optionsHash;
  7.         return $this->templateClassPrefix.hash(\PHP_VERSION_ID 80100 'sha256' 'xxh128'$key).(null === $index '' '___'.$index);
  8.     }
  9.     /**
  1.      *
  2.      * @internal
  3.      */
  4.     public function loadTemplate($name$index null)
  5.     {
  6.         return $this->loadClass($this->getTemplateClass($name), $name$index);
  7.     }
  8.     /**
  9.      * @internal
  10.      */
  1.             @trigger_error('Passing a \Twig\Template instance to '.__METHOD__.' is deprecated since Twig 2.7.0, use \Twig\TemplateWrapper instead.', \E_USER_DEPRECATED);
  2.             return new TemplateWrapper($this$name);
  3.         }
  4.         return new TemplateWrapper($this$this->loadTemplate($name));
  5.     }
  6.     /**
  7.      * Loads a template internal representation.
  8.      *
  1.         if ($name instanceof Template) {
  2.             return $name;
  3.         }
  4.         try {
  5.             return $this->environment->load((string) $name)->unwrap();
  6.         } catch (LoaderError $e) {
  7.             throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
  8.         }
  9.     }
  10. }
  1.      *
  2.      * @throws Error if something went wrong like a thrown exception while rendering the template
  3.      */
  4.     public function render($name, array $parameters = [])
  5.     {
  6.         return $this->load($name)->render($parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.                 $engine $view->getEngine() ?: $this->defaultEngine;
  2.                 $template->set('engine'$engine);
  3.             }
  4.         }
  5.         return $this->templating->render($template$data);
  6.     }
  7.     /**
  8.      * @deprecated since 2.8
  9.      *
  1.      */
  2.     private function initResponse(View $view$format)
  3.     {
  4.         $content null;
  5.         if ($this->isFormatTemplating($formatfalse)) {
  6.             $content $this->renderTemplate($view$formatfalse);
  7.         } elseif ($this->serializeNull || null !== $view->getData()) {
  8.             $data $this->getDataFromView($view);
  9.             if ($data instanceof FormInterface && $data->isSubmitted() && !$data->isValid()) {
  10.                 $view->getContext()->setAttribute('status_code'$this->failedValidationCode);
  1.         if ($location) {
  2.             return $this->createRedirectResponse($view$location$format);
  3.         }
  4.         $response $this->initResponse($view$format);
  5.         if (!$response->headers->has('Content-Type')) {
  6.             $mimeType $request->attributes->get('media_type');
  7.             if (null === $mimeType) {
  8.                 $mimeType $request->getMimeType($format);
  1.         if (isset($this->customHandlers[$format])) {
  2.             return call_user_func($this->customHandlers[$format], $this$view$request$format);
  3.         }
  4.         return $this->createResponse($view$request$format);
  5.     }
  6.     /**
  7.      * @param string $location
  8.      * @param string $format
  1.             $view $this->createView($exception$code$templateData$request$this->showException);
  2.         } else {
  3.             $view $this->createViewFromThrowable($exception$code$templateData$request$this->showException);
  4.         }
  5.         $response $this->viewHandler->handle($view);
  6.         return $response;
  7.     }
  8.     /**
  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.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) 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.         $exception $event->getThrowable();
  2.         $request $this->duplicateRequest($exception$event->getRequest());
  3.         try {
  4.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  5.         } catch (\Exception $e) {
  6.             $f FlattenException::createFromThrowable($e);
  7.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.             }
  2.             $this->dispatcher->removeListener(KernelEvents::CONTROLLER_ARGUMENTS$controllerArgsListener);
  3.         };
  4.         $this->dispatcher->addListener(KernelEvents::CONTROLLER_ARGUMENTS$controllerArgsListener, -100);
  5.         $this->exceptionListener->onKernelException($event);
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  9.      */
  1.                     $closure = static function (...$args) use (&$listener, &$closure) {
  2.                         if ($listener[0] instanceof \Closure) {
  3.                             $listener[0] = $listener[0]();
  4.                             $listener[1] = $listener[1] ?? '__invoke';
  5.                         }
  6.                         ($closure = \Closure::fromCallable($listener))(...$args);
  7.                     };
  8.                 } else {
  9.                     $closure $listener instanceof \Closure || $listener instanceof WrappedListener $listener : \Closure::fromCallable($listener);
  10.                 }
  11.             }
  1.     {
  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.      * @param object     $event     The event object to pass to the event handlers/listeners
  2.      */
  3.     protected function callListeners(iterable $listenersstring $eventName$event)
  4.     {
  5.         if ($event instanceof Event) {
  6.             $this->doDispatch($listeners$eventName$event);
  7.             return;
  8.         }
  9.         $stoppable $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.     {
  2.         if (!$request $request ?: $this->requestStack->getMasterRequest()) {
  3.             throw $exception;
  4.         }
  5.         $response $this->handleThrowable($exception$requestself::MASTER_REQUEST);
  6.         $response->sendHeaders();
  7.         $response->sendContent();
  8.         $this->terminate($request$response);
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/ErrorHandler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 592)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 return $exceptionHandler($exception);
  6.             }
  7.             $handlerException $handlerException ?: $exception;
  8.         } catch (\Throwable $handlerException) {
  9.         }
  10.         if ($exception === $handlerException && null === $this->exceptionHandler) {
ErrorHandler->handleException(object(TypeError))

TypeError

Argument 1 passed to Aqarmap\Bundle\ListingBundle\Model\PropertyTypeChildren::setArea() must be of the type int, null given, called in /srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Service/V4/CompoundDetailService.php on line 93

  1.     /**
  2.      *
  3.      * @return int
  4.      */
  5.     public function setArea(int $area)
  6.     {
  7.         $this->area $area;
  8.         return $this;
  9.     }
  1.     public function createPropertyTypeChildrenObject($propertyTypeChildData)
  2.     {
  3.         $propertyTypeChildren = new PropertyTypeChildren();
  4.         $propertyTypeChildren->setId($propertyTypeChildData['id']);
  5.         $propertyTypeChildren->setPrice($propertyTypeChildData['price'] ?? );
  6.         $propertyTypeChildren->setArea($propertyTypeChildData['area']);
  7.         
  8.         return $propertyTypeChildren;
  9.     }
  10.     /**
CompoundDetailService->createPropertyTypeChildrenObject(array('id' => 186619, 'price' => null, 'area' => null, 'propertyTypeId' => 1, 'propertyTypeTitle' => 'Apartments')) in /srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Service/V4/CompoundDetailService.php (line 69)
  1.         $propertyTypeResults = [];
  2.         foreach($propertyTypeChildrenData as $propertyTypeChildData) {
  3.             
  4.             $title $propertyTypeChildData['propertyTypeTitle'];
  5.             $propertyTypeChildren $this->createPropertyTypeChildrenObject($propertyTypeChildData);
  6.             
  7.             if (isset($propertyTypeResults[$title])) {
  8.                 $propertyTypeDetails $this->mergePropertyTypeChildrens($propertyTypeResults$title$propertyTypeChildren);
  9.             } else {
  10.                 $propertyTypeDetails $this->createPropertyTypeDetailObject($propertyTypeChildData$propertyTypeChildren);
CompoundDetailService->getPropertyTypeUnitsChildrens(object(Listing), 2, 'en') in /srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Controller/ListingController.php (line 550)
  1.             );
  2.             $this->compoundDetailService->getPropertyTypeUnitsChildrens($listingListingSections::FOR_SALE$request->getLocale());
  3.             $resaleUnitsPaginated $listing->getPropertyTypeChildren();
  4.             $this->compoundDetailService->getPropertyTypeUnitsChildrens($listingListingSections::FOR_RENT$request->getLocale());
  5.             $rentUnitsPaginated $listing->getPropertyTypeChildren();
  6.         }
  7.         $userAgent $request->cookies->get('user-agent');
  8.         $mobileDetection =  $this->mobileDetectionService->mobileDetection($request$return);
  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.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) 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.     }
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MASTER_REQUEST$catch);
  6.         // we don't implement the stale-if-error on Requests, which is nonetheless part of the RFC
  7.         if (null !== $entry && \in_array($response->getStatusCode(), [500502503504])) {
  8.             if (null === $age $entry->headers->getCacheControlDirective('stale-if-error')) {
  9.                 $age $this->options['stale_if_error'];
  1.     protected function forward(Request $request$raw falseResponse $entry null)
  2.     {
  3.         $this->getKernel()->boot();
  4.         $this->getKernel()->getContainer()->set('cache'$this);
  5.         return parent::forward($request$raw$entry);
  6.     }
  7.     /**
  8.      * Returns an array of options to customize the Cache configuration.
  9.      *
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('if_modified_since');
  3.         $subRequest->headers->remove('if_none_match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MASTER_REQUEST === $type) {
HttpCache->handle(object(Request)) in /srv/moonshot/public/index.php (line 63)
  1.     Request::HEADER_X_FORWARDED_AWS_ELB
  2. );
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

Stack Traces 3

[3/3] InvalidArgumentException

InvalidArgumentException:
Unable to find template "" (looked into: /srv/moonshot/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /srv/moonshot/app/Resources/views, /srv/moonshot/templates, /srv/moonshot/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form).

  at /srv/moonshot/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php:137
  at Symfony\Bridge\Twig\TwigEngine->load(null)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php:54)
  at Symfony\Bridge\Twig\TwigEngine->render(null, array('raw_exception' => object(TypeError), 'exception' => object(FlattenException), 'status' => 'error', 'status_code' => 500, 'status_text' => 'Internal Server Error', 'currentContent' => '', 'logger' => object(Logger)))
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:372)
  at FOS\RestBundle\View\ViewHandler->renderTemplate(object(View), 'html', false)
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:446)
  at FOS\RestBundle\View\ViewHandler->initResponse(object(View), 'html')
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:423)
  at FOS\RestBundle\View\ViewHandler->createResponse(object(View), object(Request), 'html')
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:309)
  at FOS\RestBundle\View\ViewHandler->handle(object(View))
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/Controller/ExceptionController.php:67)
  at FOS\RestBundle\Controller\ExceptionController->showAction(object(Request), object(TypeError), object(Logger))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:146)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 2)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 2, false)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php:59)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException(object(ExceptionEvent))
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/EventListener/ExceptionListener.php:81)
  at FOS\RestBundle\EventListener\ExceptionListener->onKernelException(object(ExceptionEvent), 'kernel.exception', object(EventDispatcher))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:304)
  at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(object(ExceptionEvent), 'kernel.exception', object(EventDispatcher))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure)), 'kernel.exception', object(ExceptionEvent))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure)), 'kernel.exception', object(ExceptionEvent))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:207)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(TypeError), object(Request), 1)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:100)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(TypeError), object(Request))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php:116)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(TypeError))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/ErrorHandler/ErrorHandler.php:592)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(TypeError))                

[2/3] LoaderError

Twig\Error\LoaderError:
Unable to find template "" (looked into: /srv/moonshot/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /srv/moonshot/app/Resources/views, /srv/moonshot/templates, /srv/moonshot/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form).

  at /srv/moonshot/vendor/twig/twig/src/Loader/FilesystemLoader.php:250
  at Twig\Loader\FilesystemLoader->findTemplate('')
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php:82)
  at Symfony\Bundle\TwigBundle\Loader\FilesystemLoader->findTemplate('')
     (/srv/moonshot/vendor/twig/twig/src/Loader/FilesystemLoader.php:150)
  at Twig\Loader\FilesystemLoader->getCacheKey('')
     (/srv/moonshot/vendor/twig/twig/src/Environment.php:299)
  at Twig\Environment->getTemplateClass('')
     (/srv/moonshot/vendor/twig/twig/src/Environment.php:381)
  at Twig\Environment->loadTemplate('')
     (/srv/moonshot/vendor/twig/twig/src/Environment.php:359)
  at Twig\Environment->load('')
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php:135)
  at Symfony\Bridge\Twig\TwigEngine->load(null)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php:54)
  at Symfony\Bridge\Twig\TwigEngine->render(null, array('raw_exception' => object(TypeError), 'exception' => object(FlattenException), 'status' => 'error', 'status_code' => 500, 'status_text' => 'Internal Server Error', 'currentContent' => '', 'logger' => object(Logger)))
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:372)
  at FOS\RestBundle\View\ViewHandler->renderTemplate(object(View), 'html', false)
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:446)
  at FOS\RestBundle\View\ViewHandler->initResponse(object(View), 'html')
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:423)
  at FOS\RestBundle\View\ViewHandler->createResponse(object(View), object(Request), 'html')
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/View/ViewHandler.php:309)
  at FOS\RestBundle\View\ViewHandler->handle(object(View))
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/Controller/ExceptionController.php:67)
  at FOS\RestBundle\Controller\ExceptionController->showAction(object(Request), object(TypeError), object(Logger))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:146)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 2)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 2, false)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php:59)
  at Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException(object(ExceptionEvent))
     (/srv/moonshot/vendor/friendsofsymfony/rest-bundle/EventListener/ExceptionListener.php:81)
  at FOS\RestBundle\EventListener\ExceptionListener->onKernelException(object(ExceptionEvent), 'kernel.exception', object(EventDispatcher))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:304)
  at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(object(ExceptionEvent), 'kernel.exception', object(EventDispatcher))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure)), 'kernel.exception', object(ExceptionEvent))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure)), 'kernel.exception', object(ExceptionEvent))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ExceptionEvent), 'kernel.exception')
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:207)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable(object(TypeError), object(Request), 1)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:100)
  at Symfony\Component\HttpKernel\HttpKernel->terminateWithException(object(TypeError), object(Request))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php:116)
  at Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::Symfony\Component\HttpKernel\EventListener\{closure}(object(TypeError))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/ErrorHandler/ErrorHandler.php:592)
  at Symfony\Component\ErrorHandler\ErrorHandler->handleException(object(TypeError))                

[1/3] TypeError

TypeError:
Argument 1 passed to Aqarmap\Bundle\ListingBundle\Model\PropertyTypeChildren::setArea() must be of the type int, null given, called in /srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Service/V4/CompoundDetailService.php on line 93

  at /srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Model/PropertyTypeChildren.php:65
  at Aqarmap\Bundle\ListingBundle\Model\PropertyTypeChildren->setArea(null)
     (/srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Service/V4/CompoundDetailService.php:93)
  at Aqarmap\Bundle\ListingBundle\Service\V4\CompoundDetailService->createPropertyTypeChildrenObject(array('id' => 186619, 'price' => null, 'area' => null, 'propertyTypeId' => 1, 'propertyTypeTitle' => 'Apartments'))
     (/srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Service/V4/CompoundDetailService.php:69)
  at Aqarmap\Bundle\ListingBundle\Service\V4\CompoundDetailService->getPropertyTypeUnitsChildrens(object(Listing), 2, 'en')
     (/srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Controller/ListingController.php:550)
  at Aqarmap\Bundle\ListingBundle\Controller\ListingController->readAction(object(Request), object(Listing))
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:146)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, true)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/SubRequestHandler.php:85)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(AppKernel), object(Request), 1, true)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:471)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true, null)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php:55)
  at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward(object(Request), true)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:444)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:344)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true)
     (/srv/moonshot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:222)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request))
     (/srv/moonshot/public/index.php:63)