Skip to content

Plugin - Fields cannot delete item form trashbin #1058

Closed

Description

@barte91

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

GLPI Version

GLPI 11.0.1

Plugin version

1.22.1

Bug description

I put an item (network devices) in trashbin, then I try to delete it but I've a "unexpected error occured"
If I disable plugin "Additional Fileds" all works fine and I'm able to delete it

Relevant log output

[2025-10-22 14:29:08] glpi.WARNING:   *** Warning: Cannot modify header information - headers already sent at Html.php line 2066
  Backtrace :
  ./src/Html.php:2066
  ./src/Html.php:1049                                Html::header_nocache()
  ./src/Html.php:1639                                Html::includeHeader()
  :                                                  Html::header()
  .../Application/View/Extension/PhpExtension.php:93 call_user_func_array()
  ...ates/c3/c3760421e834628092381d631e836c51.php:45 Glpi\Application\View\Extension\PhpExtension->call()
  ./vendor/twig/twig/src/Template.php:402            __TwigTemplate_7d049c4572ec1db2067e44416901e019->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()
  .../Glpi/Application/View/TemplateRenderer.php:170 Twig\TemplateWrapper->render()
  ./src/Glpi/Controller/AbstractController.php:68    Glpi\Application\View\TemplateRenderer->render()
  ./src/Glpi/Controller/ErrorController.php:177      Glpi\Controller\AbstractController->render()
  ./vendor/symfony/http-kernel/HttpKernel.php:181    Glpi\Controller\ErrorController->__invoke()
  ./vendor/symfony/http-kernel/HttpKernel.php:76     Symfony\Component\HttpKernel\HttpKernel->handleRaw()
  ...http-kernel/EventListener/ErrorListener.php:117 Symfony\Component\HttpKernel\HttpKernel->handle()
  ...ymfony/event-dispatcher/EventDispatcher.php:260 Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
  ...ymfony/event-dispatcher/EventDispatcher.php:220 Symfony\Component\EventDispatcher\EventDispatcher::{closure:Symfony\Component\EventDispatcher\EventDispatcher::optimizeListeners():255}()
  ...symfony/event-dispatcher/EventDispatcher.php:56 Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
  ./vendor/symfony/http-kernel/HttpKernel.php:239    Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
  ./vendor/symfony/http-kernel/HttpKernel.php:132    Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
  ...rnel/EventListener/DebugHandlersListener.php:84 Symfony\Component\HttpKernel\HttpKernel->terminateWithException()
  ...ndor/symfony/error-handler/ErrorHandler.php:538 Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::{closure:Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure():78}()
  ./src/Glpi/Error/ErrorHandler.php:227              Symfony\Component\ErrorHandler\ErrorHandler->handleException()
  :                                                  Glpi\Error\ErrorHandler->handleException()

Page URL

No response

Steps To reproduce

  1. Put item in trashbin
  2. Delete permanently and remove devices

Your GLPI setup information

No response

Anything else?

No response

Activity

  1. stonebuzz commented on Oct 24, 2025

    @stonebuzz
    Contributor

    Can you try this

    #1057

    and then (if not working) this

    #1024

  2. barte91 commented on Oct 24, 2025

    @barte91
    Author

    Hi @stonebuzz

    I do the #1057 and now is OK!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions