| exception |
Twig\Error\RuntimeError {#3882
-lineno: 35
-name: "admin/ecriture_comptables.html.twig"
-rawMessage: "Impossible to access an attribute ("nom") on a null variable."
-sourcePath: "/home/harmony/public_html/templates/admin/ecriture_comptables.html.twig"
-sourceCode: """
\r\n
{% extends 'dashboard_layout.html.twig' %}\r\n
\t\r\n
\t{% block title %} {{ parent() }} | {{ boutique.nom }}{% endblock %}\r\n
\t\r\n
{% block real_content %}\r\n
\r\n
<div class="container">\r\n
\t<div class="row">\r\n
<div class="col-md-10">\r\n
<div class="assie-card">\r\n
<div class="assie-card-body">\r\n
\r\n
<h3>{{ 'admin.comptabilite.ecritures_comptable' | trans }}</h3>\r\n
\t\t\t\t<hr/>\r\n
{#\r\n
\t\t\t\t<a class="btn btn-primary" href="{{ path('admin_comptabilite_nouvelle_ecriture_comptable', {'slug': boutique.slug}) }}">{{ 'admin.new' | trans }} <i class="bi bi-plus"></i></a>\r\n
#}\r\n
\t\t\t\t\r\n
<table class="table table-hover">\r\n
<thead>\r\n
<tr>\r\n
<th>{{ 'admin.comptabilite.compte' | trans }}</th>\r\n
<th>{{ 'admin.comptabilite.piece' | trans }}</th>\r\n
<th>{{ 'admin.la_date' | trans }}</th>\r\n
<th>{{ 'admin.comptabilite.libelle' | trans }}</th>\r\n
<th>{{ 'admin.comptabilite.debit' | trans }}</th>\r\n
<th>{{ 'admin.comptabilite.credit' | trans }}</th>\r\n
\r\n
</tr>\r\n
</thead>\r\n
<tbody>\r\n
{% for ecritureComptable in ecritureComptables %}\r\n
<tr>\r\n
<td><span data-bs-toggle="tooltip" title="{{ ecritureComptable.compte.nom }}">{{ ecritureComptable.compte.numero }}</span></td>\r\n
<td>{{ ecritureComptable.numeroPiece }}</td>\r\n
<td>{{ ecritureComptable.laDate | date('d/m/Y') }}</td>\r\n
<td>{{ ecritureComptable.libelleEcriture }}</td>\r\n
<td>\r\n
{% if ecritureComptable.debit > 0 %}\r\n
{{ ecritureComptable.debit | number_format(0, '', ' ') }}\r\n
{% endif %}\r\n
</td>\r\n
<td>\r\n
{% if ecritureComptable.credit > 0 %}\r\n
{{ ecritureComptable.credit | number_format(0, '', ' ') }}\r\n
{% endif %}\r\n
</td>\r\n
\r\n
</tr>\r\n
{% endfor %}\r\n
</tbody>\r\n
</table>\r\n
</div>\r\n
</div>\r\n
</div>\r\n
</div>\r\n
</div>\r\n
{% endblock real_content %}
"""
#message: "Impossible to access an attribute ("nom") on a null variable."
#code: 0
#file: "/home/harmony/public_html/templates/admin/ecriture_comptables.html.twig"
#line: 35
trace: {
/home/harmony/public_html/templates/admin/ecriture_comptables.html.twig:35 {
twig_get_attribute(Environment $env, Source $source, $object, $item, array $arguments = [], $type = 'any', $isDefinedTest = false, $ignoreStrictCheck = false, $sandboxed = false, int $lineno = -1) …
› <tr>\r
› <td><span data-bs-toggle="tooltip" title="{{ ecritureComptable.compte.nom }}">{{ ecritureComptable.compte.numero }}</span></td>\r
› <td>{{ ecritureComptable.numeroPiece }}</td>\r
}
/home/harmony/public_html/templates/admin/ecriture_comptables.html.twig:35 {
__TwigTemplate_42e430c897c05ab98c63f8d90bd203d3a8f08849632f3d9ba3e4e7570f32186f->block_real_content($context, array $blocks = []) …
› <tr>\r
› <td><span data-bs-toggle="tooltip" title="{{ ecritureComptable.compte.nom }}">{{ ecritureComptable.compte.numero }}</span></td>\r
› <td>{{ ecritureComptable.numeroPiece }}</td>\r
}
/home/harmony/public_html/vendor/twig/twig/src/Template.php:171 {
Twig\Template->displayBlock($name, array $context, array $blocks = [], $useBlocks = true, self $templateContext = null) …
› try {
› $template->$block($context, $blocks);
› } catch (Error $e) {
}
/home/harmony/public_html/templates/dashboard_layout.html.twig:234 {
__TwigTemplate_a6f93ea83a860c0daa07c2c999edfe3fbcc7dfd880b12ce056e82854b6802d8d->block_body($context, array $blocks = []) …
› <main id="main" class="main">\r
› \t{% block real_content %}\r
› \t{% endblock real_content %}\r
}
/home/harmony/public_html/vendor/twig/twig/src/Template.php:171 {
Twig\Template->displayBlock($name, array $context, array $blocks = [], $useBlocks = true, self $templateContext = null) …
› try {
› $template->$block($context, $blocks);
› } catch (Error $e) {
}
/home/harmony/public_html/templates/dashboard_layout.html.twig:232 {
__TwigTemplate_a6f93ea83a860c0daa07c2c999edfe3fbcc7dfd880b12ce056e82854b6802d8d->doDisplay(array $context, array $blocks = []) …
›
› {% block body %}\r
› \t<main id="main" class="main">\r
}
/home/harmony/public_html/vendor/twig/twig/src/Template.php:394 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
}
/home/harmony/public_html/vendor/twig/twig/src/Template.php:367 {
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
}
/home/harmony/public_html/var/cache/dev/twig/6e/6e3c0dd4a0e5531afe23d74161d7a79f80ad973ea7cfedf7ab683b81e175ffa0.php:49 {
__TwigTemplate_42e430c897c05ab98c63f8d90bd203d3a8f08849632f3d9ba3e4e7570f32186f->doDisplay(array $context, array $blocks = []) …
› $this->parent = $this->loadTemplate("dashboard_layout.html.twig", "admin/ecriture_comptables.html.twig", 2);
› $this->parent->display($context, array_merge($this->blocks, $blocks));
›
}
/home/harmony/public_html/vendor/twig/twig/src/Template.php:394 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
}
/home/harmony/public_html/vendor/twig/twig/src/Template.php:367 {
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
}
/home/harmony/public_html/vendor/twig/twig/src/Template.php:379 {
Twig\Template->render(array $context) …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
}
/home/harmony/public_html/vendor/twig/twig/src/TemplateWrapper.php:40 {
Twig\TemplateWrapper->render(array $context = []): string …
› // as it should only be used by internal code
› return $this->template->render($context, \func_get_args()[1] ?? []);
› }
}
/home/harmony/public_html/vendor/twig/twig/src/Environment.php:277 {
Twig\Environment->render($name, array $context = []): string …
› {
› return $this->load($name)->render($context);
› }
}
/home/harmony/public_html/vendor/symfony/framework-bundle/Controller/AbstractController.php:258 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView(string $view, array $parameters = []): string …
›
› return $this->container->get('twig')->render($view, $parameters);
› }
}
/home/harmony/public_html/vendor/symfony/framework-bundle/Controller/AbstractController.php:266 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render(string $view, array $parameters = [], Response $response = null): Response …
› {
› $content = $this->renderView($view, $parameters);
›
}
/home/harmony/public_html/src/Controller/AdminController.php:3362 {
App\Controller\AdminController->ecrituresEomptableAction(Request $request, Boutique $boutique) …
› \t\t 'ecritureComptables' => $ecritureComptables,\r
› \t\t 'userBoutique' => $userBoutique\r
› ]);\r
}
/home/harmony/public_html/vendor/symfony/http-kernel/HttpKernel.php:153 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
}
/home/harmony/public_html/vendor/symfony/http-kernel/HttpKernel.php:75 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
}
/home/harmony/public_html/vendor/symfony/http-kernel/Kernel.php:202 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
}
/home/harmony/public_html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
› {
› $response = $this->kernel->handle($this->request);
› $response->send();
}
/home/harmony/public_html/vendor/autoload_runtime.php:35 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/home/harmony/public_html/public/index.php:5 {
›
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
›
arguments: {
"/home/harmony/public_html/vendor/autoload_runtime.php"
}
}
}
} |