glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.21k stars 1.29k forks source link

Error in the right panel of tickets #18023

Open LucianaCabrera opened 1 week ago

LucianaCabrera commented 1 week ago

Code of Conduct

Is there an existing issue for this?

Version

10.0.16

Bug description

Error in the right panel of tickets, Whenever I move to another entity, the right ticket panel disappears and I get the following error: Twig Error (Twig\Error\RuntimeError): "An exception was thrown during rendering of a template ('Empty inputs are not allowed')." in template "/var/www/glpi/templates/components/itilobject/fields_panel.html.twig" on line 216

Relevant log output

[``](url)

Screenshot_20241007_101344

I have cleared the rm-rf template cache inside the files/

I have run the command bin/console glpi:cache:clear but there were no changes

[2024-10-17 18:58:54] glpiphplog.CRITICAL: *** Twig Error (Twig\Error\RuntimeError): "An exception has been thrown during the rendering of a template ("Empty IN are not allowed")." in template "/var/www/html/glpi/templates/components/itilobject/fields_panel.html.twig" at line 209 Backtrace : vendor/twig/twig/src/Template.php:367 Twig\Template->displayWithErrorHandling() vendor/twig/twig/src/Template.php:379 Twig\Template->display() vendor/twig/twig/src/TemplateWrapper.php:38 Twig\Template->render() .../twig/twig/src/Extension/CoreExtension.php:1347 Twig\TemplateWrapper->render() ...tes/2e/2e1acab12523aa17a00f919c92637dc6.php:152 twig_include() vendor/twig/twig/src/Template.php:394 __TwigTemplate_b00fc822dd5619998d19e5ea023413b4->doDisplay() vendor/twig/twig/src/Template.php:367 Twig\Template->displayWithErrorHandling() vendor/twig/twig/src/TemplateWrapper.php:45 Twig\Template->display() src/Application/View/TemplateRenderer.php:184 Twig\TemplateWrapper->display() src/Ticket.php:4433 Glpi\Application\View\TemplateRenderer->display() src/CommonGLPI.php:680 Ticket->showForm() ajax/common.tabs.php:120 CommonGLPI::displayStandardTab() public/index.php:82 require()

root@PC-Luciana:/var/www/html/glpi/files/_log#

LucianaCabrera commented 1 day ago

I have a database where this error that was mentioned some time ago is replicated in different versions, I cannot pass it through GitHub since it is a client database, could you contact me please?

stonebuzz commented 1 day ago

Hi @LucianaCabrera

To address this, you can try resetting the entity caches by running the following SQL query:

UPDATE glpi_entities SET ancestors_cache = null, sons_cache = null;

This query clears potential cache issues that might be affecting entity-related data display.

Best regards

LucianaCabrera commented 1 day ago

Perfect, it works, thanks ^^!

stonebuzz commented 1 day ago

@cedric-anne

We need to add this SQL query when we run php bon/console cache:clear to be sure that MySQL "cache" is unset !