Error 500 Internal Server Error

GET https://aixgl.com/paymentvoucher/7/show

Exceptions

Variable "can_revert" does not exist in approval/_action_buttons.html.twig at line 53.

Exception

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#3654
  -lineno: 53
  -rawMessage: "Variable "can_revert" does not exist."
  -source: Twig\Source {#3682
    -code: """
      {# templates/approval/_action_buttons.html.twig #}\r\n
      \r\n
      {% if entity.approvalStatus == 'draft' %}\r\n
          <form method="post" action="{{ path('app_approval_submit', { moduleType: module_type, id: entity.id }) }}" class="d-inline-block ml-2">\r\n
              <input type="hidden" name="_token" value="{{ csrf_token('approval_submit') }}">\r\n
              <button type="submit" class="btn btn-primary btn-sm" onclick="return confirm('Submit for approval?')">\r\n
                  <i class="fa fa-paper-plane"></i> Submit\r\n
              </button>\r\n
          </form>\r\n
      {% endif %}\r\n
        \r\n
      {% if entity.approvalStatus == 'pending' and can_approve %}\r\n
      \r\n
          {% set step_labels = {\r\n
              'checked':  { btn: 'Mark as Checked',  icon: 'fa-check', color: 'btn btn-info' },\r\n
              'verified': { btn: 'Mark as Verified',  icon: 'fa-check', color: 'btn btn-primary' },\r\n
              'approved': { btn: 'Mark as Approved',  icon: 'fa-check', color: 'btn btn-success' },\r\n
          } %}\r\n
      \r\n
          {% set current = step_labels[entity.currentStepName] ?? { btn: 'Approve', icon: 'fa-check', color: 'btn-success' } %}\r\n
      \r\n
          <form method="post" action="{{ path('app_approval_approve', { moduleType: module_type, id: entity.id }) }}" class="d-inline-block ml-1">\r\n
              <input type="hidden" name="_token" value="{{ csrf_token('approval_approve') }}">\r\n
              <button type="submit" class="{{ current.color }} btn-sm" onclick="return confirm('{{ current.btn }}?')">\r\n
                  <i class="fa {{ current.icon }}"></i> {{ current.btn }}\r\n
              </button>\r\n
          </form>\r\n
      \r\n
          <form method="post" action="{{ path('app_approval_sendback', { moduleType: module_type, id: entity.id }) }}" class="d-inline-block ml-1">\r\n
              <input type="hidden" name="_token" value="{{ csrf_token('approval_return') }}">\r\n
              <button type="submit" class="btn btn-warning btn-sm" onclick="return confirm('Send back to previous step?')">\r\n
                  <i class="fa fa-undo"></i> Send Back\r\n
              </button>\r\n
          </form>\r\n
      \r\n
          <form method="post" action="{{ path('app_approval_reject', { moduleType: module_type, id: entity.id }) }}" class="d-inline-block ml-1">\r\n
              <input type="hidden" name="_token" value="{{ csrf_token('approval_reject') }}">\r\n
              <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('Reject this record?')">\r\n
                  <i class="fa fa-times"></i> Reject\r\n
              </button>\r\n
          </form>\r\n
      {% endif %}\r\n
      \r\n
      {% if entity.approvalStatus == 'rejected' %}\r\n
          <form method="post" action="{{ path('app_approval_submit', { moduleType: module_type, id: entity.id }) }}" class="d-inline-block ml-2">\r\n
              <input type="hidden" name="_token" value="{{ csrf_token('approval_submit') }}">\r\n
              <button type="submit" class="btn btn-primary btn-sm" onclick="return confirm('Resubmit for approval?')">\r\n
                  <i class="fa fa-redo"></i> Resubmit\r\n
              </button>\r\n
          </form>\r\n
      {% endif %}\r\n
      \r\n
      {% if entity.approvalStatus == 'approved' and can_revert %}\r\n
       <form method="post" action="{{ path('app_approval_revert', { moduleType: module_type, id: entity.id }) }}" class="d-inline-block ml-1">\r\n
              <input type="hidden" name="_token" value="{{ csrf_token('approval_revert') }}">\r\n
              <button type="submit" class="btn btn-warning btn-sm" onclick="return confirm('Send back to previous step?')">\r\n
                  <i class="fa fa-undo"></i> Revert\r\n
              </button>\r\n
      </form>\r\n
      {% endif %}
      """
    -name: "approval/_action_buttons.html.twig"
    -path: "/home/aixgrfev/public_html/templates/approval/_action_buttons.html.twig"
  }
  -phpFile: "/home/aixgrfev/public_html/var/cache/dev/twig/34/3465700e850022d7f05640fbae92b8ae.php"
  -phpLine: 156
}
  1. <i class="fa fa-redo"></i> Resubmit
  2. </button>
  3. </form>
  4. {% endif %}
  5. {% if entity.approvalStatus == 'approved' and can_revert %}
  6. <form method="post" action="{{ path('app_approval_revert', { moduleType: module_type, id: entity.id }) }}" class="d-inline-block ml-1">
  7. <input type="hidden" name="_token" value="{{ csrf_token('approval_revert') }}">
  8. <button type="submit" class="btn btn-warning btn-sm" onclick="return confirm('Send back to previous step?')">
  9. <i class="fa fa-undo"></i> Revert
  10. </button>
  1. }
  2. // line 52
  3. yield "
  4. ";
  5. // line 53
  6. if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 53, $this->source); })()), "approvalStatus", [], "any", false, false, false, 53) == "approved") && (isset($context["can_revert"]) || array_key_exists("can_revert", $context) ? $context["can_revert"] : (function () { throw new RuntimeError('Variable "can_revert" does not exist.', 53, $this->source); })()))) {
  7. // line 54
  8. yield " <form method=\"post\" action=\"";
  9. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_approval_revert", ["moduleType" => (isset($context["module_type"]) || array_key_exists("module_type", $context) ? $context["module_type"] : (function () { throw new RuntimeError('Variable "module_type" does not exist.', 54, $this->source); })()), "id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 54, $this->source); })()), "id", [], "any", false, false, false, 54)]), "html", null, true);
  10. yield "\" class=\"d-inline-block ml-1\">
  11. <input type=\"hidden\" name=\"_token\" value=\"";
in vendor/twig/twig/src/Template.php -> doDisplay (line 411)
  1. $context += $this->env->getGlobals();
  2. $blocks = array_merge($this->blocks, $blocks);
  3. try {
  4. $this->ensureSecurityChecked();
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
in vendor/twig/twig/src/Template.php -> display (line 381)
  1. ob_start();
  2. } else {
  3. ob_start(static function () { return ''; });
  4. }
  5. try {
  6. $this->display($context);
  7. } catch (\Throwable $e) {
  8. while (ob_get_level() > $level) {
  9. ob_end_clean();
  10. }
  1. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  1. }
  2. return '';
  3. }
  4. return $loaded->render($variables);
  5. } finally {
  6. if ($isSandboxed && !$alreadySandboxed) {
  7. $sandbox->disableSandbox();
  8. }
  9. }
  1. // line 87
  2. yield Twig\Extension\CoreExtension::include($this->env, $context, "approval/_status_badge.html.twig", ["entity" => (isset($context["payment_voucher"]) || array_key_exists("payment_voucher", $context) ? $context["payment_voucher"] : (function () { throw new RuntimeError('Variable "payment_voucher" does not exist.', 87, $this->source); })())]);
  3. yield "
  4. ";
  5. // line 88
  6. yield Twig\Extension\CoreExtension::include($this->env, $context, "approval/_action_buttons.html.twig", ["entity" => // line 89
  7. (isset($context["payment_voucher"]) || array_key_exists("payment_voucher", $context) ? $context["payment_voucher"] : (function () { throw new RuntimeError('Variable "payment_voucher" does not exist.', 89, $this->source); })()), "module_type" => "payment_voucher", "can_approve" => // line 91
  8. (isset($context["can_approve"]) || array_key_exists("can_approve", $context) ? $context["can_approve"] : (function () { throw new RuntimeError('Variable "can_approve" does not exist.', 91, $this->source); })())]);
  9. // line 92
  10. yield "
  11. </div>
in vendor/twig/twig/src/Template.php -> block_body (line 456)
  1. }
  2. if (null !== $template) {
  3. try {
  4. $template->ensureSecurityChecked();
  5. yield from $template->$block($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($template->getSourceContext());
  9. }
  1. \t\t\t\t<div class=\"app-main__outer\">
  2. <div class=\"app-main__inner\">
  3. <!-- Here layout -->
  4. ";
  5. // line 381
  6. yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
  7. // line 384
  8. yield "\t\t\t\t\t
  9. \t\t\t\t\t \t
  10. \t\t\t\t\t<!-- Here layout --> \t\t\t\t\t
in vendor/twig/twig/src/Template.php -> doDisplay (line 411)
  1. $context += $this->env->getGlobals();
  2. $blocks = array_merge($this->blocks, $blocks);
  3. try {
  4. $this->ensureSecurityChecked();
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "payment_voucher/show.html.twig"));
  3. $this->parent = $this->load("template.html.twig", 1);
  4. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  5. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  6. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 411)
  1. $context += $this->env->getGlobals();
  2. $blocks = array_merge($this->blocks, $blocks);
  3. try {
  4. $this->ensureSecurityChecked();
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
in vendor/twig/twig/src/Template.php -> display (line 381)
  1. ob_start();
  2. } else {
  3. ob_start(static function () { return ''; });
  4. }
  5. try {
  6. $this->display($context);
  7. } catch (\Throwable $e) {
  8. while (ob_get_level() > $level) {
  9. ob_end_clean();
  10. }
  1. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  1. * @throws SyntaxError When an error occurred during compilation
  2. * @throws RuntimeError When an error occurred during rendering
  3. */
  4. public function render($name, array $context = []): string
  5. {
  6. return $this->load($name)->render($context);
  7. }
  8. /**
  9. * Displays a template.
  10. *
  1. if (null !== $block) {
  2. return $this->container->get('twig')->load($view)->renderBlock($block, $parameters);
  3. }
  4. return $this->container->get('twig')->render($view, $parameters);
  5. }
  6. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  7. {
  8. $content = $this->doRenderView($view, $block, $parameters, $method);
  1. return $this->container->get('twig')->render($view, $parameters);
  2. }
  3. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  4. {
  5. $content = $this->doRenderView($view, $block, $parameters, $method);
  6. $response ??= new Response();
  7. if (200 === $response->getStatusCode()) {
  8. foreach ($parameters as $v) {
  9. if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
  1. * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2. * Forms found in parameters are auto-cast to form views.
  3. */
  4. protected function render(string $view, array $parameters = [], ?Response $response = null): Response
  5. {
  6. return $this->doRender($view, null, $parameters, $response, __FUNCTION__);
  7. }
  8. /**
  9. * Renders a block in a view.
  10. *
AbstractController->render() in src/Controller/PaymentVoucherController.php (line 133)
  1. $configs = $entityManager->getRepository(ApprovalWorkflowConfig::class)->findBy(
  2. ['moduleType' => 'payment_voucher', 'isActive' => true],
  3. ['level' => 'ASC']
  4. );
  5. return $this->render('payment_voucher/show.html.twig', [
  6. 'payment_voucher' => $paymentVoucher,
  7. 'can_approve' => $approvalService->canUserAct($paymentVoucher, $this->getUser()),
  8. 'workflow_configs' => $configs,
  9. 'approval_logs' => $approvalService->getHistory($paymentVoucher),
  1. $this->dispatcher->dispatch($event, KernelEvents::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, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. $response->send(false);
  7. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
  8. fastcgi_finish_request();
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/home/aixgrfev/public_html/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 12:58:45 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "f744ea"
    },
    "request_uri": "https://aixgl.com/_profiler/f744ea",
    "method": "GET"
}
DEBUG 12:58:45 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
DEBUG 12:58:45 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
DEBUG 12:58:45 event Notified event "kernel.request" to listener "Symfony\Bridge\Doctrine\Middleware\IdleConnection\Listener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection\\Listener::onKernelRequest"
}
DEBUG 12:58:45 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
DEBUG 12:58:45 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
DEBUG 12:58:45 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
DEBUG 12:58:45 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
DEBUG 12:58:45 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
DEBUG 12:58:45 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
DEBUG 12:58:45 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
INFO 12:58:45 deprecation User Deprecated: In ORM 3.0, the AttributeDriver will report fields for the classes where they are declared. This may uncover invalid mapping configurations. To opt into the new mode today, set the "reportFieldsWhereDeclared" constructor parameter to true. (AttributeDriver.php:77 called by App_KernelDevDebugContainer.php:1413, https://github.com/doctrine/orm/pull/10455, package doctrine/orm)
{
    "exception": {}
}
INFO 12:58:45 doctrine Connecting with parameters {params}
{
    "params": {
        "driver": "pdo_mysql",
        "idle_connection_ttl": 600,
        "host": "127.0.0.1",
        "port": 3306,
        "user": "aixgrfev_erp_user",
        "password": "<redacted>",
        "driverOptions": [],
        "defaultTableOptions": [],
        "dbname": "aixgrfev_erp_db",
        "serverVersion": "8.0.31",
        "charset": "utf8mb4"
    }
}
DEBUG 12:58:45 doctrine Executing query: SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.mobile_no AS mobile_no_4, t0.email AS email_5, t0.fsc AS fsc_6, t0.weight_perkg AS weight_perkg_7, t0.covid_charge_applicable AS covid_charge_applicable_8, t0.weight_perkg_rate AS weight_perkg_rate_9, t0.first_url AS first_url_10, t0.last_url AS last_url_11, t0.logo AS logo_12, t0.created_at AS created_at_13, t0.modified_at AS modified_at_14, t0.rate_type AS rate_type_15, t0.expedite AS expedite_16, t0.sro AS sro_17, t0.sro_charge AS sro_charge_18, t0.zone_rate_type AS zone_rate_type_19, t0.import_zone_rate_type AS import_zone_rate_type_20, t0.import_country_rate_type AS import_country_rate_type_21, t0.export_country_rate AS export_country_rate_22, t0.import_country_rate AS import_country_rate_23, t0.courier_master_rate AS courier_master_rate_24, t0.courier_type AS courier_type_25, t0.master_weight_perkg AS master_weight_perkg_26, t0.master_weight_perkg_rate AS master_weight_perkg_rate_27, t0.created_by_id AS created_by_id_28, t0.modified_by_id AS modified_by_id_29, t0.user_company_id AS user_company_id_30, t0.account_name_id AS account_name_id_31, t0.expense_account_name_id AS expense_account_name_id_32 FROM courier t0
{
    "sql": "SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.mobile_no AS mobile_no_4, t0.email AS email_5, t0.fsc AS fsc_6, t0.weight_perkg AS weight_perkg_7, t0.covid_charge_applicable AS covid_charge_applicable_8, t0.weight_perkg_rate AS weight_perkg_rate_9, t0.first_url AS first_url_10, t0.last_url AS last_url_11, t0.logo AS logo_12, t0.created_at AS created_at_13, t0.modified_at AS modified_at_14, t0.rate_type AS rate_type_15, t0.expedite AS expedite_16, t0.sro AS sro_17, t0.sro_charge AS sro_charge_18, t0.zone_rate_type AS zone_rate_type_19, t0.import_zone_rate_type AS import_zone_rate_type_20, t0.import_country_rate_type AS import_country_rate_type_21, t0.export_country_rate AS export_country_rate_22, t0.import_country_rate AS import_country_rate_23, t0.courier_master_rate AS courier_master_rate_24, t0.courier_type AS courier_type_25, t0.master_weight_perkg AS master_weight_perkg_26, t0.master_weight_perkg_rate AS master_weight_perkg_rate_27, t0.created_by_id AS created_by_id_28, t0.modified_by_id AS modified_by_id_29, t0.user_company_id AS user_company_id_30, t0.account_name_id AS account_name_id_31, t0.expense_account_name_id AS expense_account_name_id_32 FROM courier t0"
}
DEBUG 12:58:45 doctrine Executing query: SELECT count(s0_.id) AS sclr_0 FROM shipment s0_ LEFT JOIN user u1_ ON s0_.created_by_id = u1_.id WHERE s0_.accepted = 0
{
    "sql": "SELECT count(s0_.id) AS sclr_0 FROM shipment s0_ LEFT JOIN user u1_ ON s0_.created_by_id = u1_.id WHERE s0_.accepted = 0"
}
DEBUG 12:58:45 doctrine Executing query: SELECT t0.id AS id_1, t0.name AS name_2, t0.step AS step_3 FROM tracking_status t0
{
    "sql": "SELECT t0.id AS id_1, t0.name AS name_2, t0.step AS step_3 FROM tracking_status t0"
}
DEBUG 12:58:45 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
DEBUG 12:58:45 event Notified event "kernel.controller" to listener "App\Twig\TwigGlobalSubscriber::injectGlobalVariables".
{
    "event": "kernel.controller",
    "listener": "App\\Twig\\TwigGlobalSubscriber::injectGlobalVariables"
}
DEBUG 12:58:45 event Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
DEBUG 12:58:45 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\IsSignatureValidAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\IsSignatureValidAttributeListener::onKernelControllerArguments"
}
DEBUG 12:58:45 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsCsrfTokenValidAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsCsrfTokenValidAttributeListener::onKernelControllerArguments"
}
DEBUG 12:58:45 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsGrantedAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsGrantedAttributeListener::onKernelControllerArguments"
}
DEBUG 12:58:45 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\CacheAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\CacheAttributeListener::onKernelControllerArguments"
}
DEBUG 12:58:45 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}
DEBUG 12:58:45 doctrine Executing query: SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.mobile_no AS mobile_no_4, t0.email AS email_5, t0.fsc AS fsc_6, t0.weight_perkg AS weight_perkg_7, t0.covid_charge_applicable AS covid_charge_applicable_8, t0.weight_perkg_rate AS weight_perkg_rate_9, t0.first_url AS first_url_10, t0.last_url AS last_url_11, t0.logo AS logo_12, t0.created_at AS created_at_13, t0.modified_at AS modified_at_14, t0.rate_type AS rate_type_15, t0.expedite AS expedite_16, t0.sro AS sro_17, t0.sro_charge AS sro_charge_18, t0.zone_rate_type AS zone_rate_type_19, t0.import_zone_rate_type AS import_zone_rate_type_20, t0.import_country_rate_type AS import_country_rate_type_21, t0.export_country_rate AS export_country_rate_22, t0.import_country_rate AS import_country_rate_23, t0.courier_master_rate AS courier_master_rate_24, t0.courier_type AS courier_type_25, t0.master_weight_perkg AS master_weight_perkg_26, t0.master_weight_perkg_rate AS master_weight_perkg_rate_27, t0.created_by_id AS created_by_id_28, t0.modified_by_id AS modified_by_id_29, t0.user_company_id AS user_company_id_30, t0.account_name_id AS account_name_id_31, t0.expense_account_name_id AS expense_account_name_id_32 FROM courier t0
{
    "sql": "SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.mobile_no AS mobile_no_4, t0.email AS email_5, t0.fsc AS fsc_6, t0.weight_perkg AS weight_perkg_7, t0.covid_charge_applicable AS covid_charge_applicable_8, t0.weight_perkg_rate AS weight_perkg_rate_9, t0.first_url AS first_url_10, t0.last_url AS last_url_11, t0.logo AS logo_12, t0.created_at AS created_at_13, t0.modified_at AS modified_at_14, t0.rate_type AS rate_type_15, t0.expedite AS expedite_16, t0.sro AS sro_17, t0.sro_charge AS sro_charge_18, t0.zone_rate_type AS zone_rate_type_19, t0.import_zone_rate_type AS import_zone_rate_type_20, t0.import_country_rate_type AS import_country_rate_type_21, t0.export_country_rate AS export_country_rate_22, t0.import_country_rate AS import_country_rate_23, t0.courier_master_rate AS courier_master_rate_24, t0.courier_type AS courier_type_25, t0.master_weight_perkg AS master_weight_perkg_26, t0.master_weight_perkg_rate AS master_weight_perkg_rate_27, t0.created_by_id AS created_by_id_28, t0.modified_by_id AS modified_by_id_29, t0.user_company_id AS user_company_id_30, t0.account_name_id AS account_name_id_31, t0.expense_account_name_id AS expense_account_name_id_32 FROM courier t0"
}
DEBUG 12:58:45 doctrine Executing query: SELECT count(s0_.id) AS sclr_0 FROM shipment s0_ LEFT JOIN user u1_ ON s0_.created_by_id = u1_.id WHERE s0_.accepted = 0
{
    "sql": "SELECT count(s0_.id) AS sclr_0 FROM shipment s0_ LEFT JOIN user u1_ ON s0_.created_by_id = u1_.id WHERE s0_.accepted = 0"
}
DEBUG 12:58:45 doctrine Executing query: SELECT t0.id AS id_1, t0.name AS name_2, t0.step AS step_3 FROM tracking_status t0
{
    "sql": "SELECT t0.id AS id_1, t0.name AS name_2, t0.step AS step_3 FROM tracking_status t0"
}
DEBUG 12:58:45 doctrine Executing query: SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.mobile_no AS mobile_no_4, t0.email AS email_5, t0.fsc AS fsc_6, t0.weight_perkg AS weight_perkg_7, t0.covid_charge_applicable AS covid_charge_applicable_8, t0.weight_perkg_rate AS weight_perkg_rate_9, t0.first_url AS first_url_10, t0.last_url AS last_url_11, t0.logo AS logo_12, t0.created_at AS created_at_13, t0.modified_at AS modified_at_14, t0.rate_type AS rate_type_15, t0.expedite AS expedite_16, t0.sro AS sro_17, t0.sro_charge AS sro_charge_18, t0.zone_rate_type AS zone_rate_type_19, t0.import_zone_rate_type AS import_zone_rate_type_20, t0.import_country_rate_type AS import_country_rate_type_21, t0.export_country_rate AS export_country_rate_22, t0.import_country_rate AS import_country_rate_23, t0.courier_master_rate AS courier_master_rate_24, t0.courier_type AS courier_type_25, t0.master_weight_perkg AS master_weight_perkg_26, t0.master_weight_perkg_rate AS master_weight_perkg_rate_27, t0.created_by_id AS created_by_id_28, t0.modified_by_id AS modified_by_id_29, t0.user_company_id AS user_company_id_30, t0.account_name_id AS account_name_id_31, t0.expense_account_name_id AS expense_account_name_id_32 FROM courier t0
{
    "sql": "SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.mobile_no AS mobile_no_4, t0.email AS email_5, t0.fsc AS fsc_6, t0.weight_perkg AS weight_perkg_7, t0.covid_charge_applicable AS covid_charge_applicable_8, t0.weight_perkg_rate AS weight_perkg_rate_9, t0.first_url AS first_url_10, t0.last_url AS last_url_11, t0.logo AS logo_12, t0.created_at AS created_at_13, t0.modified_at AS modified_at_14, t0.rate_type AS rate_type_15, t0.expedite AS expedite_16, t0.sro AS sro_17, t0.sro_charge AS sro_charge_18, t0.zone_rate_type AS zone_rate_type_19, t0.import_zone_rate_type AS import_zone_rate_type_20, t0.import_country_rate_type AS import_country_rate_type_21, t0.export_country_rate AS export_country_rate_22, t0.import_country_rate AS import_country_rate_23, t0.courier_master_rate AS courier_master_rate_24, t0.courier_type AS courier_type_25, t0.master_weight_perkg AS master_weight_perkg_26, t0.master_weight_perkg_rate AS master_weight_perkg_rate_27, t0.created_by_id AS created_by_id_28, t0.modified_by_id AS modified_by_id_29, t0.user_company_id AS user_company_id_30, t0.account_name_id AS account_name_id_31, t0.expense_account_name_id AS expense_account_name_id_32 FROM courier t0"
}
DEBUG 12:58:45 doctrine Executing query: SELECT count(s0_.id) AS sclr_0 FROM shipment s0_ LEFT JOIN user u1_ ON s0_.created_by_id = u1_.id WHERE s0_.accepted = 0
{
    "sql": "SELECT count(s0_.id) AS sclr_0 FROM shipment s0_ LEFT JOIN user u1_ ON s0_.created_by_id = u1_.id WHERE s0_.accepted = 0"
}
DEBUG 12:58:45 doctrine Executing query: SELECT t0.id AS id_1, t0.name AS name_2, t0.step AS step_3 FROM tracking_status t0
{
    "sql": "SELECT t0.id AS id_1, t0.name AS name_2, t0.step AS step_3 FROM tracking_status t0"
}

Stack Trace

RuntimeError
Twig\Error\RuntimeError:
Variable "can_revert" does not exist in "approval/_action_buttons.html.twig" at line 53.

  at templates/approval/_action_buttons.html.twig:53
  at __TwigTemplate_7d357de74611482810895bf7e44f5d9e->{closure}()
     (var/cache/dev/twig/34/3465700e850022d7f05640fbae92b8ae.php:156)
  at __TwigTemplate_7d357de74611482810895bf7e44f5d9e->doDisplay()
     (vendor/twig/twig/src/Template.php:411)
  at Twig\Template->yield()
     (vendor/twig/twig/src/Template.php:366)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:381)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Extension/CoreExtension.php:1522)
  at Twig\Extension\CoreExtension::include()
     (var/cache/dev/twig/13/13e76705afce30703aa59184609f32a5.php:249)
  at __TwigTemplate_444756087846c9474bc3b77b2c913739->block_body()
     (vendor/twig/twig/src/Template.php:456)
  at Twig\Template->yieldBlock()
     (var/cache/dev/twig/0c/0cd4d3528f776a8733bec379e89e020c.php:514)
  at __TwigTemplate_c65cab50cfaa5da8698048991e647cf1->doDisplay()
     (vendor/twig/twig/src/Template.php:411)
  at Twig\Template->yield()
     (var/cache/dev/twig/13/13e76705afce30703aa59184609f32a5.php:54)
  at __TwigTemplate_444756087846c9474bc3b77b2c913739->doDisplay()
     (vendor/twig/twig/src/Template.php:411)
  at Twig\Template->yield()
     (vendor/twig/twig/src/Template.php:366)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:381)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:333)
  at Twig\Environment->render()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:467)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:472)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:284)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (src/Controller/PaymentVoucherController.php:133)
  at App\Controller\PaymentVoucherController->show()
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:193)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:34)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/home/aixgrfev/public_html/vendor/autoload_runtime.php')
     (public/index.php:5)