glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.31k stars 1.29k forks source link

When you want to create a ticket within an entity, the capture header menu doesn't load #17250

Closed cillox54 closed 5 months ago

cillox54 commented 5 months ago

Code of Conduct

Is there an existing issue for this?

Version

10.0.15

Bug description

Log in to an entity, click on the create a ticket button in the main header menu where the opening time, category, requester, etc. are captured. It doesn't load, however, if you open the primary entity and select a requester, it allows you to create the ticket on the correct entity.

Relevant log output

No response

Page URL

No response

Steps To reproduce

  1. Log in to an entity
  2. Create a ticket ID Captura de pantalla 2024-06-05 002443

Your GLPI setup information

Operating system: Linux 4.19.150-76.ELK.el6.x86_64 #​1 SMP Wed Oct 7 01:34:10 CDT 2020 x86_64 PHP 7.4.33 litespeed (Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, SourceGuardian, Zend OPcache, apcu, bcmath, bz2, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, libxml, litespeed, mbstring, mysqli, mysqlnd, odbc, openssl, pcre, pdo_mysql, pdo_pgsql, pgsql, posix, pspell, session, soap, sockets, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib) Setup: max_execution_time="60" memory_limit="512M" post_max_size="516M" safe_mode="" session.save_handler="files" upload_max_filesize="512M" disable_functions="" Software: Apache () Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0 Server Software: MySQL Community Server - GPL Server Version: 8.0.37 Server SQL Mode: NO_ENGINE_SUBSTITUTION Parameters: Host info: via TCP/IP PHP version (7.4.33) is supported. Sessions configuration is OK. Allocated memory is sufficient. mysqli extension is installed. Following extensions are installed: dom, fileinfo, filter, libxml, json, simplexml, xmlreader, xmlwriter. curl extension is installed. gd extension is installed. intl extension is installed. zlib extension is installed. The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present. Database engine version (8.0.37) is supported. No files from previous GLPI version detected.

For security reasons, SELinux mode should be Enforcing. PHP 7.4 is no longer maintained by its community. Even if GLPI still supports this PHP version, an upgrade to a more recent PHP version is recommended. Indeed, this PHP version may contain unpatched security vulnerabilities. Web server root directory configuration is not safe as it permits access to non-public files. See installation documentation for more details. The following directories should be placed outside "" ("GLPI_VAR_DIR") You can ignore this suggestion if your web server root directory is "". Sessions configuration is secured. OS and PHP are relying on 64 bits integers. exif extension is installed. ldap extension is not present. openssl extension is installed. Following extensions are installed: bz2, Phar, zip. Zend OPcache extension is installed. Following extensions are installed: ctype, iconv, mbstring. Following extensions are not present: sodium. Write access to /marketplace has been validated. Access to timezone database (mysql) is not allowed.

GLPI_USE_CSRF_CHECK: "1" GLPI_CSRF_EXPIRES: "7200" GLPI_CSRF_MAX_TOKENS: "100" GLPI_USE_IDOR_CHECK: "1" GLPI_IDOR_EXPIRES: "7200" GLPI_ALLOW_IFRAME_IN_RICH_TEXT: false GLPI_SERVERSIDE_URL_ALLOWLIST: ["/^(https?|feed):\/\/[^@:]+(\/.*)?$/"] GLPI_TELEMETRY_URI: "https://telemetry.glpi-project.org" GLPI_INSTALL_MODE: "TARBALL" GLPI_NETWORK_MAIL: "glpi@teclib.com" GLPI_NETWORK_SERVICES: "https://services.glpi-network.com" GLPI_MARKETPLACE_ALLOW_OVERRIDE: true GLPI_MARKETPLACE_MANUAL_DOWNLOADS: true GLPI_USER_AGENT_EXTRA_COMMENTS: "" GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: "1" GLPI_AJAX_DASHBOARD: "1" GLPI_CALDAV_IMPORT_STATE: 0 GLPI_DEMO_MODE: "0" GLPI_CENTRAL_WARNINGS: "1" GLPI_TEXT_MAXSIZE: "4000" GLPI_DOC_DIR: "/files" GLPI_CACHE_DIR: "/files/_cache"

"https://services.glpi-network.com/api/registration/" GLPI_MARKETPLACE_PLUGINS_API_URI: "https://services.glpi-network.com/api/marketplace/" GLPI_I18N_DIR: "" GLPI_VERSION: "10.0.15" GLPI_SCHEMA_VERSION: "10.0.15@2eed74704cb07e0bac48b933cbd5c1c356f09629" GLPI_MARKETPLACE_PRERELEASES: false GLPI_MIN_PHP: "7.4.0" GLPI_MAX_PHP: "8.4.0" GLPI_YEAR: "2024"

Anything else?

No response

cillox54 commented 5 months ago

The solution to this problem is to disable the cost plugin.

In the version debug appear this message:

Inside the entity > assistance > create ticket

Twig Error (Twig\Error\RuntimeError): "An exception has been thrown during the rendering of a template ("Return value of PluginCostsEntity::getConfigID() must be an instance of mixed, int returned")." in template "/glpi/templates/components/itilobject/fields_panel.html.twig" at line 247

In the version debug appear this message:

Setup > General > Cost

Uncaught Exception TypeError: Return value of PluginCostsConfig::getInstance() must be an instance of mixed, instance of PluginCostsConfig returned in /glpi/marketplace/costs/inc/config.class.php at line 82