glpi-project/glpi

GLPI11 - DocumentType unexpected error when creating/editing on

Closed this issue · 1 comments

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

11-rc4

Bug description

On the document type page creating or editing one will return a twig macro error.
It can also be viewed on the detail page : http://localhost:8080/front/documenttype.form.php?id=27

Image

Relevant log output

Key "disabled" for sequence/mapping with keys "rand, width" does not exist in "components/form/fields_macros.html.twig" at line 608.
In ./templates/components/form/fields_macros.html.twig(608)
#0 ./files/_cache/11.0.0-rc4-00000000-development/templates/3c/3c6f7de2563457a570255cf8d3ee7982.php(1848): Twig\Extension\CoreExtension::getAttribute(Object(Twig\Environment), Object(Twig\Source), Array, 'disabled', Array, 'any', false, false, false, 608)
#1 ./vendor/twig/twig/src/Extension/CoreExtension.php(2106): __TwigTemplate_2bc7f74aff378e9f98b2c08c6e0977cf->{closure:__TwigTemplate_2bc7f74aff378e9f98b2c08c6e0977cf::macro_dropdownIcons():1819}()
#2 ./files/_cache/11.0.0-rc4-00000000-development/templates/3c/3c6f7de2563457a570255cf8d3ee7982.php(1819): Twig\Extension\CoreExtension::captureOutput(Object(Generator))
#3 ./files/_cache/11.0.0-rc4-00000000-development/templates/b4/b4f1ad9adcf90ad0625fe77c045b1a57.php(349): __TwigTemplate_2bc7f74aff378e9f98b2c08c6e0977cf->macro_dropdownIcons('icon', 'rm-dist.png', 'Icon', Array)
#4 ./vendor/twig/twig/src/Template.php(446): __TwigTemplate_b9e2fd7efd45e9d6b5eeceb21e6befd6->block_form_fields(Array, Array)
#5 ./files/_cache/11.0.0-rc4-00000000-development/templates/b4/b4f1ad9adcf90ad0625fe77c045b1a57.php(75): Twig\Template->yieldBlock('form_fields', Array, Array)
#6 ./vendor/twig/twig/src/Template.php(402): __TwigTemplate_b9e2fd7efd45e9d6b5eeceb21e6befd6->doDisplay(Array, Array)
#7 ./vendor/twig/twig/src/Template.php(358): Twig\Template->yield(Array, Array)
#8 ./vendor/twig/twig/src/Template.php(373): Twig\Template->display(Array)
#9 ./vendor/twig/twig/src/TemplateWrapper.php(51): Twig\Template->render(Array)
#10 ./src/Glpi/Application/View/TemplateRenderer.php(170): Twig\TemplateWrapper->render(Array)
#11 ./src/CommonDropdown.php(353): Glpi\Application\View\TemplateRenderer->render('dropdown_form.h...', Array)
#12 ./src/CommonGLPI.php(683): CommonDropdown->showForm(27, Array)
#13 ./ajax/common.tabs.php(108): CommonGLPI::displayStandardTab(Object(DocumentType), 'DocumentType$ma...', 0, Array)
#14 ./src/Glpi/Controller/LegacyFileLoadController.php(63): require('./a...')
#15 ./vendor/symfony/http-kernel/HttpKernel.php(181): Glpi\Controller\LegacyFileLoadController->__invoke(Object(Symfony\Component\HttpFoundation\Request))
#16 ./vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#17 ./vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 ./public/index.php(70): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#19 {main}

Page URL

http://localhost:8080/front/documenttype.form.php?id=27

Steps To reproduce

Go to : http://localhost:8080/front/documenttype.php

  1. Setup
  2. Dropdowns
  3. Document types

Your GLPI setup information

GLPI information
GLPI: 11.0.0-rc4-git-11.0/bugfixes-d179a91aa1 ( => /var/www/glpi)
Installation mode: GIT
Current language: en_GB
Server
Operating system: Linux 7821e3b83782 6.10.14-linuxkit #​1 SMP PREEMPT_DYNAMIC Sat May 17 08:29:19 UTC 2025 x86_64

PHP: 8.4.11 apache2handler

PHP extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, hash, iconv, json,
mbstring, SPL, session, PDO, pdo_sqlite, bz2, posix, random, Reflection, standard, SimpleXML, tokenizer, xml, xmlreader,
xmlwriter, mysqlnd, apache2handler, bcmath, Phar, exif, gd, intl, ldap, memcached, mysqli, pcntl, redis, sodium, xmlrpc, zip,
Zend OPcache, xdebug

Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
upload_max_filesize="2M" disable_functions=""

Web server: Apache/2.4.62 (Debian) (Apache/2.4.62 (Debian) Server at localhost Port 8080)

User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0

Database:

Server Software: mariadb.org binary distribution

Server Version: 11.8.3-MariaDB-ubu2404

Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

Parameters: root@db:3306/glpi

Host info: db via TCP/IP

Requirements:
PHP version (8.4.11) is supported.
OS and PHP are relying on 64 bits integers.
Sessions configuration is OK.
Allocated memory is sufficient.
Following extensions are installed: dom, fileinfo, filter, libxml, simplexml, tokenizer, xmlreader,
xmlwriter.
mysqli extension is installed
curl extension is installed
gd extension is installed
intl extension is installed
mbstring extension is installed
zlib extension is installed
bcmath extension is installed
The constant
SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
openssl extension is installed
Database engine version (11.8.3) is supported.
The log file has been created successfully.
Write access
to /var/www/glpi/files/_cache has been validated.
Write access to /var/www/glpi/files/_cron has been validated.
Write access to /var/www/glpi/files has been validated.
Write access to /var/www/glpi/files/_graphs has been validated.
Write access to /var/www/glpi/files/_lock has been validated.
Write access to /var/www/glpi/files/_pictures has been validated.
Write access to /var/www/glpi/files/_plugins has been validated.
Write access to /var/www/glpi/files/_rss has been validated.
Write access to /var/www/glpi/files/_sessions has been validated.
Write access to /var/www/glpi/files/_tmp has been validated.
Write access to /var/www/glpi/files/_uploads has been validated.

Sessions configuration is secured.
exif extension is installed
ldap extension is installed
Following extensions are installed: bz2,
Phar, zip.
Zend OPcache extension is installed
Following extensions are installed:
ctype, iconv, sodium.
Write access to
/var/www/glpi/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
GLPI_ROOT: "/var/www/glpi"
GLPI_VERSION: "11.0.0-rc4"
GLPI_SCHEMA_VERSION: "11.0.0-rc4@700b77ebd30ff508d55ffbd7154fce9a4d5aaed7"
GLPI_FILES_VERSION: "11.0.0-rc4-00000000"
GLPI_MIN_PHP: "8.2"
GLPI_MAX_PHP: "8.5"
GLPI_YEAR: "2025"
GLPI_I18N_DIR: "/var/www/glpi/locales"
GLPI_ENVIRONMENT_TYPE: "development"
GLPI_CONFIG_DIR: "/var/www/glpi/config"
GLPI_VAR_DIR: "/var/www/glpi/files"
GLPI_MARKETPLACE_DIR: "/var/www/glpi/marketplace"
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: false
GLPI_SERVERSIDE_URL_ALLOWLIST: ["^\n (http|https|feed)://
# protocol\n (\n (?:\n
(?:xn--[a-z0-9-]++\.)*+xn--[a-z0-9-]++ # a domain name using punycode\n
|\n (?:[\pL\pN\pS\pM\-\]++\.)+[\pL\pN\pM]++ # a multi-level domain
name\n |\n [a-z0-9\-\
]++
# a single-level domain name\n )\.?\n |
# or\n \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
# an IP address\n | #
or\n \[\n
(?:(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-f]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-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|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,5}(?:(?:[0-9a-f]{1,4})))?::)(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,6}(?:(?:[0-9a-f]{1,4})))?::))))\n
\] # an IPv6 address\n
)\n (?:/ (?:[\pL\pN\pS\pM\-._\
!$&'()+,;=:@]|%[0-9A-Fa-f]{2}) )* # a path\n
(?:\? (?:[\pL\pN\-._\~!$&'\\+,;=:@/?]|%[0-9A-Fa-f]{2}) )? # a query (optional)\n
$~ixuD"]
GLPI_DISALLOWED_UPLOADS_PATTERN: "/\.(php\d*|phar)$/i"
GLPI_TELEMETRY_URI: "https://telemetry.glpi-project.org"
GLPI_INSTALL_MODE: "GIT"
GLPI_NETWORK_MAIL: "glpi@teclib.com"
GLPI_NETWORK_SERVICES: "https://services.glpi-network.com"
GLPI_MARKETPLACE_ENABLE: 3
GLPI_MARKETPLACE_PRERELEASES: true
GLPI_MARKETPLACE_ALLOW_OVERRIDE: true
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: true
GLPI_USER_AGENT_EXTRA_COMMENTS: ""
GLPI_DOCUMENTATION_ROOT_URL: "https://links.glpi-project.org"
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: "1"
GLPI_LOG_LVL: "debug"
GLPI_SKIP_UPDATES: false
GLPI_STRICT_ENV: true
GLPI_AJAX_DASHBOARD: "1"
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_CENTRAL_WARNINGS: "1"
GLPI_SYSTEM_CRON: false
GLPI_TEXT_MAXSIZE: "4000"
GLPI_WEBHOOK_ALLOW_RESPONSE_SAVING: "1"
GLPI_WEBHOOK_CRA_MANDATORY: false
GLPI_ALTCHA_MODE: "interactive"
GLPI_ALTCHA_MAX_NUMBER: 50000
GLPI_ALTCHA_EXPIRATION_INTERVAL: "PT20M"
GLPI_DOC_DIR: "/var/www/glpi/files"
GLPI_CACHE_DIR: "/var/www/glpi/files/_cache"
GLPI_CRON_DIR: "/var/www/glpi/files/_cron"
GLPI_GRAPH_DIR: "/var/www/glpi/files/_graphs"
GLPI_LOCAL_I18N_DIR: "/var/www/glpi/files/_locales"
GLPI_LOCK_DIR: "/var/www/glpi/files/_lock"
GLPI_LOG_DIR: "/var/www/glpi/files/_log"
GLPI_PICTURE_DIR: "/var/www/glpi/files/_pictures"
GLPI_PLUGIN_DOC_DIR: "/var/www/glpi/files/_plugins"
GLPI_RSS_DIR: "/var/www/glpi/files/_rss"
GLPI_SESSION_DIR: "/var/www/glpi/files/_sessions"
GLPI_TMP_DIR: "/var/www/glpi/files/_tmp"
GLPI_UPLOAD_DIR: "/var/www/glpi/files/_uploads"
GLPI_INVENTORY_DIR: "/var/www/glpi/files/_inventories"
GLPI_THEMES_DIR: "/var/www/glpi/files/_themes"
GLPI_PLUGINS_DIRECTORIES: ["/var/www/glpi/marketplace","/var/www/glpi/plugins"]
GLPI_NETWORK_REGISTRATION_API_URL: "https://services.glpi-network.com/api/registration/"
GLPI_MARKETPLACE_PLUGINS_API_URI: "https://services.glpi-network.com/api/marketplace/"
SQL replicas
Not active
Notifications
Way of sending emails: PHP
Plugins list
collaborativetools   Name: Collaborative tools            Version: 1.3.0-beta5 State: Not installed
Install Method: Manual
myplugin Name: myplugin Version: 0.0.3 State: Not installed
Install Method: Manual
whatsapp Name: whatsapp Version: 0.0.1 State: Enabled
Install Method: Manual

Anything else?

No response

Fixed by #21018.