uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
Open Software License 3.0
9.17k stars 464 forks source link

Impossible to access an attribute ("createdAt") on a null variable. #781

Open nathonline opened 1 month ago

nathonline commented 1 month ago

Hello guys,

I m stuck with this bug. Could you help me please

Regards

Bug report

Issue Description

Currently I added in cron the mailbox in order to check through the command-line : php bin/console uvdesk:refresh-mailbox administratif@creches-newbees.fr

When I go to the tickets list and I click on a specific ticket the error appears.

Preconditions

1. UV Desk 1.2
2. Ubuntu Server 24.04.1 LTS

Actual result

Twig\Error\ RuntimeError in vendor/uvdesk/core-framework/Resources/views/ticket.html.twig (line 413) in var/cache/dev/twig/23/23a188f4de1ece90f412d57cfb0c49fb.php :: getAttribute (line 598) in vendor/twig/twig/src/Template.php -> block_pageContent (line 437) in var/cache/dev/twig/87/87a43bb11db9d6cb00e214c64a46101d.php -> yieldBlock (line 400) in vendor/twig/twig/src/Template.php -> block_pageWrapper (line 437) in var/cache/dev/twig/87/87a43bb11db9d6cb00e214c64a46101d.php -> yieldBlock (line 263) in vendor/twig/twig/src/Template.php -> doDisplay (line 393) in var/cache/dev/twig/23/23a188f4de1ece90f412d57cfb0c49fb.php -> yield (line 56) in vendor/twig/twig/src/Template.php -> doDisplay (line 393) in vendor/twig/twig/src/Template.php -> yield (line 349) in vendor/twig/twig/src/Template.php -> display (line 364) in vendor/twig/twig/src/TemplateWrapper.php -> render (line 35) in vendor/twig/twig/src/Environment.php -> render (line 306) in vendor/symfony/framework-bundle/Controller/AbstractController.php -> render (line 258) in vendor/symfony/framework-bundle/Controller/AbstractController.php -> renderView (line 266) in vendor/uvdesk/core-framework/Controller/Ticket.php -> render (line 152) in vendor/symfony/http-kernel/HttpKernel.php -> loadTicket (line 163) in vendor/symfony/http-kernel/HttpKernel.php -> handleRaw (line 75) in vendor/symfony/http-kernel/Kernel.php -> handle (line 202) in vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php -> handle (line 35) in vendor/autoload_runtime.php -> run (line 35) require_once('/var/www/html/support/vendor/autoload_runtime.php') in public/index.php (line 5)

<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
    return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
papnoisanjeev commented 10 hours ago

https://github.com/uvdesk/core-framework/commit/64e607387f65546b85d47c1f58f64d0d31c0d93c