Skip to content

Fix: additionnal fields not displayed#1167

Open
Rom1-B wants to merge 1 commit intomainfrom
support_42944
Open

Fix: additionnal fields not displayed#1167
Rom1-B wants to merge 1 commit intomainfrom
support_42944

Conversation

@Rom1-B
Copy link
Contributor

@Rom1-B Rom1-B commented Mar 24, 2026

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • It fixes !42944

Error displaying additional fields:

glpi.CRITICAL:   *** Uncaught PHP Exception Twig\Error\RuntimeError: "An exception has been thrown during the rendering of a template ("Call to a member function find() on false") in "components/form/buttons.html.twig" at line 40." at buttons.html.twig line 40
  Backtrace :
  ./templates/components/form/buttons.html.twig:40
  ./vendor/twig/twig/src/Template.php:358            Twig\Template->yield()
  ./vendor/twig/twig/src/Template.php:373            Twig\Template->display()
  ./vendor/twig/twig/src/TemplateWrapper.php:51      Twig\Template->render()
  .../twig/twig/src/Extension/CoreExtension.php:1518 Twig\TemplateWrapper->render()
  ...tes/5d/5dcc69edb5f222b81b1acc7f4597465c.php:153 Twig\Extension\CoreExtension::include()
  ./vendor/twig/twig/src/Template.php:402            __TwigTemplate_4467dc81fd0bdecaabb758d8acd3dc7d->doDisplay()
  ...ates/0d/0d7959f196bb263eb87b71bb43f34507.php:52 Twig\Template->yield()
  ./vendor/twig/twig/src/Template.php:402            __TwigTemplate_71284a0256b260995ed83a7447ed93f8->doDisplay()
  ./vendor/twig/twig/src/Template.php:358            Twig\Template->yield()
  ./vendor/twig/twig/src/TemplateWrapper.php:61      Twig\Template->display()
  .../Glpi/Application/View/TemplateRenderer.php:188 Twig\TemplateWrapper->display()
  ./src/Glpi/Asset/Asset.php:405                     Glpi\Application\View\TemplateRenderer->display()
  ./src/CommonGLPI.php:708                           Glpi\Asset\Asset->showForm()
  ./ajax/common.tabs.php:108                         CommonGLPI::displayStandardTab()
  ...Glpi/Controller/LegacyFileLoadController.php:64 require()
  ./vendor/symfony/http-kernel/HttpKernel.php:181    Glpi\Controller\LegacyFileLoadController->__invoke()
  ./vendor/symfony/http-kernel/HttpKernel.php:76     Symfony\Component\HttpKernel\HttpKernel->handleRaw()
  ./vendor/symfony/http-kernel/Kernel.php:197        Symfony\Component\HttpKernel\HttpKernel->handle()
  ./public/index.php:71                              Symfony\Component\HttpKernel\Kernel->handle()
  Previous: Call to a member function find() on false
  ./marketplace/fields/inc/field.class.php:1154
  ./marketplace/fields/inc/field.class.php:891       PluginFieldsField::prepareHtmlFields()
  ./marketplace/fields/inc/field.class.php:991       PluginFieldsField::showDomContainer()
  ./src/Plugin.php:1826                              PluginFieldsField::showForTab()
  ...plication/View/Extension/PluginExtension.php:74 Plugin::doHook()
  ...ates/4a/4a7d2d8224fafa3a988952a5eea1b312.php:61 Glpi\Application\View\Extension\PluginExtension->callPluginHook()
  ./vendor/twig/twig/src/Template.php:402            __TwigTemplate_e44f15ee8878b27a6c536d3f6e6501f0->doDisplay()
  ./vendor/twig/twig/src/Template.php:358            Twig\Template->yield()
  ./vendor/twig/twig/src/Template.php:373            Twig\Template->display()
  ./vendor/twig/twig/src/TemplateWrapper.php:51      Twig\Template->render()
  .../twig/twig/src/Extension/CoreExtension.php:1518 Twig\TemplateWrapper->render()
  ...tes/5d/5dcc69edb5f222b81b1acc7f4597465c.php:153 Twig\Extension\CoreExtension::include()
  ./vendor/twig/twig/src/Template.php:402            __TwigTemplate_4467dc81fd0bdecaabb758d8acd3dc7d->doDisplay()
  ...ates/0d/0d7959f196bb263eb87b71bb43f34507.php:52 Twig\Template->yield()
  ./vendor/twig/twig/src/Template.php:402            __TwigTemplate_71284a0256b260995ed83a7447ed93f8->doDisplay()
  ./vendor/twig/twig/src/Template.php:358            Twig\Template->yield()
  ./vendor/twig/twig/src/TemplateWrapper.php:61      Twig\Template->display()
  .../Glpi/Application/View/TemplateRenderer.php:188 Twig\TemplateWrapper->display()
  ./src/Glpi/Asset/Asset.php:405                     Glpi\Application\View\TemplateRenderer->display()
  ./src/CommonGLPI.php:708                           Glpi\Asset\Asset->showForm()
  ./ajax/common.tabs.php:108                         CommonGLPI::displayStandardTab()
  ...Glpi/Controller/LegacyFileLoadController.php:64 require()
  ./vendor/symfony/http-kernel/HttpKernel.php:181    Glpi\Controller\LegacyFileLoadController->__invoke()
  ./vendor/symfony/http-kernel/HttpKernel.php:76     Symfony\Component\HttpKernel\HttpKernel->handleRaw()
  ./vendor/symfony/http-kernel/Kernel.php:197        Symfony\Component\HttpKernel\HttpKernel->handle()
  ./public/index.php:71                              Symfony\Component\HttpKernel\Kernel->handle()

Screenshots (if appropriate):

@Rom1-B Rom1-B requested a review from stonebuzz March 24, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants