Exceptions
Exception
Twig\Error\ RuntimeError
in
templates/pdf/bulletin_de_salaire.html.twig
(line 133)
<tr class="table-body-th-bg">{#total en mm est de 210#}<td style="width:130px;">Bulletin de paie</td><td style="width:220px;">Période du {{ dateDebut | date('d/m/Y') }} au {{ dateFin | date('d/m/Y') }}</td><td style="width:150px;">Paiement le {{ 'now' | date('d/m/Y') }}</td><td style="width:250px;">Par {{ moyenDePaiement }}</td></tr></table><table>
in
var/cache/dev/twig/11/114b3bb8597663dc36cd35f6ff88a2b3fb80e892401e8c77bb136aa5b584d213.php
->
{closure}
(line 185)
echo " <td style=\"width:130px;\">Bulletin de paie</td>\t\t\t\t<td style=\"width:220px;\">Période du ";// line 133echo 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.', 133, $this->source); })()), "d/m/Y"), "html", null, true);echo " au ";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.', 133, $this->source); })()), "d/m/Y"), "html", null, true);echo "</td><td style=\"width:150px;\">Paiement le ";// line 134
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();}
$pdf->output($lienPhysique, 'I');return $this->render('pdf/bulletin_de_salaire.html.twig', ['boutique' => $boutique,'rubriques' => $rubriques,'userBoutique' => $userBoutique]);}/*** @Route("/{slug}/rh/rubriques-salaires", name="admin_rubriques_slaires")
in
vendor/symfony/http-kernel/HttpKernel.php
->
imprimerBulletinSalaireAction
(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:
Variable "dateDebut" does not exist.
at templates/pdf/bulletin_de_salaire.html.twig:133
at __TwigTemplate_f73c14740ba920fcfb8f3e15a2ec3705bdf463ea2cac80b8ce1a88f12e3fc037->{closure}()
(var/cache/dev/twig/11/114b3bb8597663dc36cd35f6ff88a2b3fb80e892401e8c77bb136aa5b584d213.php:185)
at __TwigTemplate_f73c14740ba920fcfb8f3e15a2ec3705bdf463ea2cac80b8ce1a88f12e3fc037->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:2298)
at App\Controller\AdminController->imprimerBulletinSalaireAction()
(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)
|