Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[main] deprecated htmlspecialchars error in setup > general > assistance (planning dropdowns) #17933

Open
2 tasks done
flegastelois opened this issue Sep 25, 2024 · 0 comments
Milestone

Comments

@flegastelois
Copy link
Member

flegastelois commented Sep 25, 2024

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

Version

main

Bug description

front/config.form.php > Assistance tab > "Limit of the schedules for planning" dropdowns.

[2024-09-25 14:02:36] glpiphplog.INFO:   *** PHP Deprecated function (8192): htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /www/glpi-core/main/htdocs/src/Dropdown.php at line 2308
  Backtrace :
  src/Dropdown.php:2308                              htmlspecialchars()
  src/Dropdown.php:1580                              Dropdown::showFromArray()
  :                                                  Dropdown::showHours()
  .../Application/View/Extension/PhpExtension.php:91 call_user_func_array()
  ...es/85/858ef281925101dbc1f9a7bee22da4e5.php:1976 Glpi\Application\View\Extension\PhpExtension->call()
  .../twig/twig/src/Extension/CoreExtension.php:1919 __TwigTemplate_ce9da0a3a722f5ababa00f7437c3ff27->{closure}()
  ...es/85/858ef281925101dbc1f9a7bee22da4e5.php:1973 Twig\Extension\CoreExtension::captureOutput()
  .../twig/twig/src/Extension/CoreExtension.php:1919 __TwigTemplate_ce9da0a3a722f5ababa00f7437c3ff27->{closure}()
  ...es/85/858ef281925101dbc1f9a7bee22da4e5.php:1933 Twig\Extension\CoreExtension::captureOutput()
  .../twig/twig/src/Extension/CoreExtension.php:1293 __TwigTemplate_ce9da0a3a722f5ababa00f7437c3ff27->macro_dropdownHoursField()
  ...ates/0d/0d9f7b1f090925f4856910540e74bf77.php:76 Twig\Extension\CoreExtension::callMacro()
  .../twig/twig/src/Extension/CoreExtension.php:1919 __TwigTemplate_76cf77bfaf131aa5103c0aed3ce4d43d->{closure}()
  ...ates/0d/0d9f7b1f090925f4856910540e74bf77.php:71 Twig\Extension\CoreExtension::captureOutput()
  vendor/twig/twig/src/Template.php:437              __TwigTemplate_76cf77bfaf131aa5103c0aed3ce4d43d->block_config_fields()
  ...ates/21/215a65ca6d065fd44c0a3f140b6c17da.php:68 Twig\Template->yieldBlock()
  vendor/twig/twig/src/Template.php:393              __TwigTemplate_0c51b1aea3bb967921c6f458701d0ce3->doDisplay()
  ...ates/0d/0d9f7b1f090925f4856910540e74bf77.php:54 Twig\Template->yield()
  vendor/twig/twig/src/Template.php:393              __TwigTemplate_76cf77bfaf131aa5103c0aed3ce4d43d->doDisplay()
  vendor/twig/twig/src/Template.php:349              Twig\Template->yield()
  vendor/twig/twig/src/TemplateWrapper.php:42        Twig\Template->display()
  src/Glpi/Application/View/TemplateRenderer.php:185 Twig\TemplateWrapper->display()
  src/Config.php:608                                 Glpi\Application\View\TemplateRenderer->display()
  src/Config.php:1440                                Config->showFormHelpdesk()
  src/CommonGLPI.php:665                             Config::displayTabContentForItem()
  ajax/common.tabs.php:110                           CommonGLPI::displayStandardTab()
  ...Glpi/Controller/LegacyFileLoadController.php:58 require()
  vendor/symfony/http-kernel/HttpKernel.php:101      Glpi\Controller\LegacyFileLoadController->Glpi\Controller\{closure}()
  ...ymfony/http-foundation/StreamedResponse.php:106 Symfony\Component\HttpKernel\HttpKernel::Symfony\Component\HttpKernel\{closure}()
  vendor/symfony/http-foundation/Response.php:423    Symfony\Component\HttpFoundation\StreamedResponse->sendContent()
  public/index.php:58                                Symfony\Component\HttpFoundation\Response->send()

image

Relevant log output

No response

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

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

No branches or pull requests

1 participant