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

Deprecated function when editing rack #17646

Closed
2 tasks done
marcel-itl opened this issue Aug 5, 2024 · 0 comments
Closed
2 tasks done

Deprecated function when editing rack #17646

marcel-itl opened this issue Aug 5, 2024 · 0 comments
Labels
Milestone

Comments

@marcel-itl
Copy link

marcel-itl commented Aug 5, 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

10.0/bugfixes branch

Bug description

I added a new rack mount under assets, named it test, and now when I access it I get a full page stacktrace of deprecated function.
Built in docker from docker-compose.yml available in branch 10.0/bugfixes, only added mariadb:latest image to compose.

Relevant log output

glpi   | [Mon Aug 05 14:14:05.072698 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/glpi/src/Ajax.php on line 778, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072722 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP Stack trace:, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072725 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP   1. {main}() /var/www/glpi/public/index.php:0, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072727 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP   2. require() /var/www/glpi/public/index.php:82, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072752 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP   3. CommonGLPI::displayStandardTab($item = class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = ['id' => 1, 'name' => 'test', 'comment' => '', 'entities_id' => 0, 'is_recursive' => 0, 'locations_id' => 0, 'serial' => '', 'otherserial' => '', 'rackmodels_id' => 0, 'manufacturers_id' => 0, 'racktypes_id' => 0, 'states_id' => 0, 'users_id_tech' => 0, 'groups_id_tech' => 0, 'width' => 0, 'height' => 0, 'depth' => 0, 'number_units' => 19, 'is_template' => 0, 'template_name' => NULL, 'is_deleted' => 0, 'dcrooms_id' => 0, 'room_orientation' => 2, 'position' => NULL, 'bgcolor' => '#fec95c', 'max_power' => 0, 'mesured_power' => 0, 'max_weight' => 0, 'date_mod' => '2024-08-05 14:07:49', 'date_creation' => '2024-08-05 14:07:49']; public $input = []; public $updates = []; public $oldvalues = []; public $dohistory = TRUE; public $history_blacklist = []; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = []; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, $tab = 'Rack$main', $withtemplate = '', $options = ['_target' => '/front/rack.form.php', 'id' => 1]) /var/www/glpi/ajax/common.tabs.php:120, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072757 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP   4. Rack->showForm($ID = 1, $options = ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => '']) /var/www/glpi/src/CommonGLPI.php:680, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072763 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP   5. Glpi\\Application\\View\\TemplateRenderer->display($template = 'pages/assets/rack.html.twig', $variables = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => '']]) /var/www/glpi/src/Rack.php:138, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072768 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP   6. Twig\\TemplateWrapper->display($context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => '']]) /var/www/glpi/src/Application/View/TemplateRenderer.php:184, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072773 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP   7. Twig\\Template->display($context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => '']], $blocks = []) /var/www/glpi/vendor/twig/twig/src/TemplateWrapper.php:45, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072782 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP   8. Twig\\Template->displayWithErrorHandling($context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => ''], '_post' => [], '_get' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => 1, 'sort' => '', 'order' => ''], '_request' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => '1']], $blocks = ['more_fields' => [0 => class __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1 { ... }, 1 => 'block_more_fields']]) /var/www/glpi/vendor/twig/twig/src/Template.php:367, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072804 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP   9. __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1->doDisplay($context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => ''], '_post' => [], '_get' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => 1, 'sort' => '', 'order' => ''], '_request' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => '1']], $blocks = ['more_fields' => [0 => class __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1 { ... }, 1 => 'block_more_fields']]) /var/www/glpi/vendor/twig/twig/src/Template.php:394, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072813 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  10. Twig\\Template->display($context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => ''], '_post' => [], '_get' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => 1, 'sort' => '', 'order' => ''], '_request' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => '1'], 'rand' => 1064497124], $blocks = ['more_fields' => [0 => class __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1 { ... }, 1 => 'block_more_fields']]) /var/www/glpi/files/_cache/templates/18/18a87ff0f8eaf6a597caf4349101278d.php:49, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072831 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  11. Twig\\Template->displayWithErrorHandling($context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => ''], '_post' => [], '_get' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => 1, 'sort' => '', 'order' => ''], '_request' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => '1'], 'rand' => 1064497124], $blocks = ['form_fields' => [0 => class __TwigTemplate_ba1155fecdcc5a6d7c6ea1cee6a9df55 { ... }, 1 => 'block_form_fields'], 'more_fields' => [0 => class __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1 { ... }, 1 => 'block_more_fields']]) /var/www/glpi/vendor/twig/twig/src/Template.php:367, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072840 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  12. __TwigTemplate_ba1155fecdcc5a6d7c6ea1cee6a9df55->doDisplay($context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => ''], '_post' => [], '_get' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => 1, 'sort' => '', 'order' => ''], '_request' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => '1'], 'rand' => 1064497124], $blocks = ['form_fields' => [0 => class __TwigTemplate_ba1155fecdcc5a6d7c6ea1cee6a9df55 { ... }, 1 => 'block_form_fields'], 'more_fields' => [0 => class __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1 { ... }, 1 => 'block_more_fields']]) /var/www/glpi/vendor/twig/twig/src/Template.php:394, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072859 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  13. Twig\\Template->displayBlock($name = 'form_fields', $context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => ''], '_post' => [], '_get' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => 1, 'sort' => '', 'order' => ''], '_request' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => '1'], 'rand' => 1775408734, 'no_header' => TRUE, 'bg' => '', 'target' => '/front/rack.form.php', 'withtemplate' => '', 'item_type' => 'Rack', 'item_has_pictures' => FALSE, 'field_options' => ['locked_fields' => [...]]], $blocks = ['form_fields' => [0 => class __TwigTemplate_ba1155fecdcc5a6d7c6ea1cee6a9df55 { ... }, 1 => 'block_form_fields'], 'more_fields' => [0 => class __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1 { ... }, 1 => 'block_more_fields']], $useBlocks = *uninitialized*, $templateContext = *uninitialized*) /var/www/glpi/files/_cache/templates/28/2838501eb95b3dd6e0dd3e5d8a885256.php:101, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072869 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  14. __TwigTemplate_ba1155fecdcc5a6d7c6ea1cee6a9df55->block_form_fields($context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => ''], '_post' => [], '_get' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => 1, 'sort' => '', 'order' => ''], '_request' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => '1'], 'rand' => 1775408734, 'no_header' => TRUE, 'bg' => '', 'target' => '/front/rack.form.php', 'withtemplate' => '', 'item_type' => 'Rack', 'item_has_pictures' => FALSE, 'field_options' => ['locked_fields' => [...]]], $blocks = ['form_fields' => [0 => class __TwigTemplate_ba1155fecdcc5a6d7c6ea1cee6a9df55 { ... }, 1 => 'block_form_fields'], 'more_fields' => [0 => class __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1 { ... }, 1 => 'block_more_fields']]) /var/www/glpi/vendor/twig/twig/src/Template.php:171, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072881 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  15. Twig\\Template->displayBlock($name = 'more_fields', $context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => ''], '_post' => [], '_get' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => 1, 'sort' => '', 'order' => ''], '_request' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => '1'], 'rand' => 1775408734, 'no_header' => TRUE, 'bg' => '', 'target' => '/front/rack.form.php', 'withtemplate' => '', 'item_type' => 'Rack', 'item_has_pictures' => FALSE, 'field_options' => ['locked_fields' => [...]], 'condition' => ['is_visible_rack' => 1], 'fk' => 'racks_id', 'dc_breadcrumbs' => [], 'type_itemtype' => 'RackType', 'type_fk' => 'racktypes_id', 'model_itemtype' => 'RackModel', 'model_fk' => 'rackmodels_id'], $blocks = ['form_fields' => [0 => class __TwigTemplate_ba1155fecdcc5a6d7c6ea1cee6a9df55 { ... }, 1 => 'block_form_fields'], 'more_fields' => [0 => class __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1 { ... }, 1 => 'block_more_fields']], $useBlocks = *uninitialized*, $templateContext = *uninitialized*) /var/www/glpi/files/_cache/templates/28/2838501eb95b3dd6e0dd3e5d8a885256.php:1126, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072892 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  16. __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1->block_more_fields($context = ['item' => class Rack { protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; public $fields = [...]; public $input = [...]; public $updates = [...]; public $oldvalues = [...]; public $dohistory = TRUE; public $history_blacklist = [...]; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = [...]; protected $fkfield = ''; protected $searchopt = FALSE; protected $usenotepad = FALSE; public $deduplicate_queued_notifications = TRUE; public $right = NULL }, 'params' => ['_target' => '/front/rack.form.php', 'id' => 1, 'withtemplate' => ''], '_post' => [], '_get' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => 1, 'sort' => '', 'order' => ''], '_request' => ['_glpi_tab' => 'Rack$main', 'withtemplate' => '', 'formoptions' => 'data-track-changes=true', '_target' => '/front/rack.form.php', '_itemtype' => 'Rack', 'id' => '1'], 'rand' => 1775408734, 'no_header' => TRUE, 'bg' => '', 'target' => '/front/rack.form.php', 'withtemplate' => '', 'item_type' => 'Rack', 'item_has_pictures' => FALSE, 'field_options' => ['locked_fields' => [...]], 'condition' => ['is_visible_rack' => 1], 'fk' => 'racks_id', 'dc_breadcrumbs' => [], 'type_itemtype' => 'RackType', 'type_fk' => 'racktypes_id', 'model_itemtype' => 'RackModel', 'model_fk' => 'rackmodels_id'], $blocks = ['form_fields' => [0 => class __TwigTemplate_ba1155fecdcc5a6d7c6ea1cee6a9df55 { ... }, 1 => 'block_form_fields'], 'more_fields' => [0 => class __TwigTemplate_5ee24301171bd7f484f11fa949c1c3e1 { ... }, 1 => 'block_more_fields']]) /var/www/glpi/vendor/twig/twig/src/Template.php:171, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072907 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  17. Glpi\\Application\\View\\Extension\\PhpExtension->call($callable = 'Ajax::updateItemOnSelectEvent', $parameters = [0 => 'dropdown_dcrooms_id1775408734', 1 => 'room_positions', 2 => '/ajax/dcroom_size.php', 3 => ['id' => '__VALUE__', 'current' => NULL, 'rand' => 1775408734]]) /var/www/glpi/files/_cache/templates/18/18a87ff0f8eaf6a597caf4349101278d.php:67, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072911 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  18. call_user_func_array:{/var/www/glpi/src/Application/View/Extension/PhpExtension.php:91}($callback = 'Ajax::updateItemOnSelectEvent', $args = [0 => 'dropdown_dcrooms_id1775408734', 1 => 'room_positions', 2 => '/ajax/dcroom_size.php', 3 => ['id' => '__VALUE__', 'current' => NULL, 'rand' => 1775408734]]) /var/www/glpi/src/Application/View/Extension/PhpExtension.php:91, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072919 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  19. Ajax::updateItemOnSelectEvent($toobserve = 'dropdown_dcrooms_id1775408734', $toupdate = 'room_positions', $url = '/ajax/dcroom_size.php', $parameters = ['id' => '__VALUE__', 'current' => NULL, 'rand' => 1775408734], $display = *uninitialized*) /var/www/glpi/src/Application/View/Extension/PhpExtension.php:91, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072922 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  20. Ajax::updateItemOnEvent($toobserve = 'dropdown_dcrooms_id1775408734', $toupdate = 'room_positions', $url = '/ajax/dcroom_size.php', $parameters = ['id' => '__VALUE__', 'current' => NULL, 'rand' => 1775408734], $events = [0 => 'change'], $minsize = -1, $buffertime = -1, $forceloadfor = [], $display = TRUE) /var/www/glpi/src/Ajax.php:521, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072926 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  21. Ajax::updateItemOnEventJsCode($toobserve = 'dropdown_dcrooms_id1775408734', $toupdate = 'room_positions', $url = '/ajax/dcroom_size.php', $parameters = ['id' => '__VALUE__', 'current' => NULL, 'rand' => 1775408734], $events = [0 => 'change'], $minsize = -1, $buffertime = -1, $forceloadfor = [], $display = FALSE) /var/www/glpi/src/Ajax.php:482, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072929 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  22. Ajax::updateItemJsCode($toupdate = 'room_positions', $url = '/ajax/dcroom_size.php', $parameters = ['id' => '__VALUE__', 'current' => NULL, 'rand' => 1775408734], $toobserve = 'dropdown_dcrooms_id1775408734', $display = FALSE) /var/www/glpi/src/Ajax.php:649, referer: http://localhost:8080/front/rack.form.php?id=1
glpi   | [Mon Aug 05 14:14:05.072931 2024] [php:notice] [pid 20:tid 20] [client 172.21.0.1:45772] PHP  23. preg_match($pattern = '/^__VALUE(\\\\d+)__$/', $subject = NULL, $matches = []) /var/www/glpi/src/Ajax.php:778, referer: http://localhost:8080/front/rack.form.php?id=1

Page URL

http://[glpi_address]/front/rack.form.php

Steps To reproduce

  1. Docker-compose.yaml:
    `services:
    app:
    container_name: "glpi"
    build:
    context: ".docker/app"
    restart: "unless-stopped"
    volumes:
    • ".:/var/www/glpi:rw"
      ports:
    • "8080:80"
      extra_hosts:
    • "host.docker.internal:host-gateway"
      mysql:
      container_name: "mysql"
      image: "amd64/mariadb"
      environment:
    • MYSQL_DATABASE=glpi
    • MYSQL_PASSWORD=supersecretpassword
    • MYSQL_ROOT_PASSWORD=supersecretpassword
    • MYSQL_USER=glpi
      volumes:
    • ".:/var/lib/mysql:rw"
      ports:
    • 32806:3306/tcp`

Then docker-compose up, go through installation process. Happens for sure in pl-pl locale, didn't test in others.

  1. Logged in as glpi/glpi, added new rack with a name "test". Saved the rack.
  2. When I enter it via Assets->Rack, I receive a stacktrace.

Your GLPI setup information

No response

Anything else?

No response

trasher added a commit to trasher/glpi that referenced this issue Aug 5, 2024
@trasher trasher added the bug label Aug 5, 2024
@trasher trasher added this to the 10.0.17 milestone Aug 5, 2024
@trasher trasher changed the title Deprecated function when adding new rack under polish locale Deprecated function when editing rack Aug 5, 2024
@trasher trasher closed this as completed in 0e6327a Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants