Exceptions
Exception
Twig\Error\ RuntimeError
in
templates/pdf/point_par_client.html.twig
(line 173)
</td></tr></table><table class="table" border="0" style="margin-top: 10px"><tr><td><u><h4>Point de {{ client.nom }} de {{ dateDebut | date('d/m/Y') }} Ã {{ dateFin | date('d/m/Y') }}</h4></u></td></tr></table><table class="table-body" border="0" style="width: 100%"><tr><th class="table-head-th-bg" width="60">{{ 'admin.number' | trans }}</th>
in
var/cache/dev/twig/40/40dcd5ab8a84c1972fea5815b330093fc22b85d3fb8f3c7f145ff9fe1f29712d.php
twig_get_attribute
(line 257)
</table><table class=\"table\" border=\"0\" style=\"margin-top: 10px\"><tr><td><u><h4>Point de ";// line 173echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 173, $this->source); })()), "nom", [], "any", false, false, false, 173), "html", null, true);echo " de ";echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["dateDebut"]) || array_key_exists("dateDebut", $context) ? $context["dateDebut"] : (function () { throw new RuntimeError('Variable "dateDebut" does not exist.', 173, $this->source); })()), "d/m/Y"), "html", null, true);echo " Ã ";echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["dateFin"]) || array_key_exists("dateFin", $context) ? $context["dateFin"] : (function () { throw new RuntimeError('Variable "dateFin" does not exist.', 173, $this->source); })()), "d/m/Y"), "html", null, true);echo "</h4></u></td>
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 394)
}protected function displayWithErrorHandling(array $context, array $blocks = []){try {$this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
vendor/twig/twig/src/Template.php
->
displayWithErrorHandling
(line 367)
return $this->blocks;}public function display(array $context, array $blocks = []){$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));}public function render(array $context){$level = ob_get_level();
in
vendor/twig/twig/src/Template.php
->
display
(line 379)
ob_start();} else {ob_start(function () { return ''; });}try {$this->display($context);} catch (\Throwable $e) {while (ob_get_level() > $level) {ob_end_clean();}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 40)
public function render(array $context = []): string{// using func_get_args() allows to not expose the blocks argument// as it should only be used by internal codereturn $this->template->render($context, \func_get_args()[1] ?? []);}public function display(array $context = []){// using func_get_args() allows to not expose the blocks argument
in
vendor/twig/twig/src/Environment.php
->
render
(line 277)
* @throws SyntaxError When an error occurred during compilation* @throws RuntimeError When an error occurred during rendering*/public function render($name, array $context = []): string{return $this->load($name)->render($context);}/*** Displays a template.*
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
render
(line 258)
{if (!$this->container->has('twig')) {throw new \LogicException('You cannot use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');}return $this->container->get('twig')->render($view, $parameters);}/*** Renders a view.*/
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
renderView
(line 266)
/*** Renders a view.*/protected function render(string $view, array $parameters = [], Response $response = null): Response{$content = $this->renderView($view, $parameters);if (null === $response) {$response = new Response();}
'boutique' => $boutique,'client' => $client,'invoices' => $invoices,'dateDebut' => $dateDebut,'dateFin' => $dateFin,'userBoutique' => $userBoutique,]);}//Proposals/**
in
vendor/symfony/http-kernel/HttpKernel.php
->
imprimerPointParClientAction
(line 153)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;}public function run(): int{$response = $this->kernel->handle($this->request);$response->send();if ($this->kernel instanceof TerminableInterface) {$this->kernel->terminate($this->request, $response);}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Stack Trace
|
RuntimeError
|
|---|
Twig\Error\RuntimeError:
Impossible to access an attribute ("nom") on a null variable.
at templates/pdf/point_par_client.html.twig:173
at twig_get_attribute()
(var/cache/dev/twig/40/40dcd5ab8a84c1972fea5815b330093fc22b85d3fb8f3c7f145ff9fe1f29712d.php:257)
at __TwigTemplate_017c58eabc1fe602cbe3f9a67e5e5fd933252c89b5222af2759cbe0745026eb0->doDisplay()
(vendor/twig/twig/src/Template.php:394)
at Twig\Template->displayWithErrorHandling()
(vendor/twig/twig/src/Template.php:367)
at Twig\Template->display()
(vendor/twig/twig/src/Template.php:379)
at Twig\Template->render()
(vendor/twig/twig/src/TemplateWrapper.php:40)
at Twig\TemplateWrapper->render()
(vendor/twig/twig/src/Environment.php:277)
at Twig\Environment->render()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:258)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:266)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
(src/Controller/AdminController.php:1206)
at App\Controller\AdminController->imprimerPointParClientAction()
(vendor/symfony/http-kernel/HttpKernel.php:153)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:35)
at require_once('/home/harmony/public_html/vendor/autoload_runtime.php')
(public/index.php:5)
|