Error when trying to close ticket after updating to 1.21.8
Hello all,
- Issue:
After updating the plugin to the lastest version (1.21.8), I cannot solve any ticket or even associate it to my name. Any action result in the error:
Uncaught Exception TypeError: Glpi\Toolbox\Sanitizer::isNsClassOrCallableIdentifier(): Argument #1 ($value) must be of type string, array given, called in /var/www/html/glpi/src/DBmysql.php on line 1318 in /var/www/html/glpi/src/Toolbox/Sanitizer.php at line 228
Already disabled all the other plugins to test any incompatibility. Using the outdated version (1.21.4, in my environment), everything works like a charm in 10.0.14.
I also tried to recreate the container files, but didn't work as well.
- Steps to reproduce:
I have only make some test on my DEV environment. After updating the GLPI to the 10.0.14 version and update the plugin, the issue appears. Rollback the version of the plugin did not solve the issue.
-- Upgrade from 10.0.10 to 10.0.14 -- Upgrade the plugin from 1.21.4 to 1.21.8
- Logs:
[2024-06-10 18:40:59] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: Glpi\Toolbox\Sanitizer::isNsClassOrCallableIdentifier(): Argument #1 ($value) must be of
type string, array given, called in /var/www/html/glpi/src/DBmysql.php on line 1318 in /var/www/html/glpi/src/Toolbox/Sanitizer.php at line 228
Backtrace :
src/DBmysql.php:1318 Glpi\Toolbox\Sanitizer::isNsClassOrCallableIdentifier()
src/DBmysql.php:1356 DBmysql::quoteValue()
src/DBmysql.php:1381 DBmysql->buildInsert()
src/CommonDBTM.php:729 DBmysql->insert()
src/CommonDBTM.php:1342 CommonDBTM->addToDB()
marketplace/fields/inc/container.class.php:1225 CommonDBTM->add()
marketplace/fields/inc/container.class.php:1650 PluginFieldsContainer->updateFieldsValues()
src/Plugin.php:1680 PluginFieldsContainer::preItemUpdate()
src/CommonDBTM.php:1610 Plugin::doHook()
src/ITILSolution.php:327 CommonDBTM->update()
src/CommonDBTM.php:1343 ITILSolution->post_addItem()
front/itilsolution.form.php:63 CommonDBTM->add()
public/index.php:82 require()
-
GLPI Version 10.0.14
-
Server Settings
Operating system: Linux glpi-795dc56fcf-t6nzc 5.15.0-1061-azure #70-Ubuntu SMP Wed Apr 3 02:05:58 UTC 2024 x86_64
PHP 8.2.12 apache2handler (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, bz2, calendar, ctype,
curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, igbinary, imap, intl, json, ldap, libxml, mbstring,
mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, random, readline, redis, session, shmop, sockets, sodium, standard, sysvmsg,
sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
upload_max_filesize="2M" disable_functions=""
Software: Apache/2.4.56 (Debian) (Apache/2.4.56 (Debian) Server at glpi-dev.cebrace.com.br Port 80
)
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: Source distribution
Server Version: 8.0.36
Server SQL Mode: STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO
Parameters: [email protected]/glpi-dev2
Host info: mysql-cebrace-qas-001.mysql.database.azure.com via TCP/IP
PHP version (8.2.12) is supported.PHP version (8.2.12) is supported.
Sessions configuration is OK.Sessions configuration is OK.
Allocated memory is sufficient.Allocated memory is sufficient.
mysqli extension is installed.mysqli extension is installed.
Following extensions are installed: dom, fileinfo, filter, libxml, json, simplexml, xmlreader, xmlwriter.Following extensions are installed: dom, fileinfo, filter, libxml, json, simplexml, xmlreader, xmlwriter.
curl extension is installed.curl extension is installed.
gd extension is installed.gd extension is installed.
intl extension is installed.intl extension is installed.
zlib extension is installed.zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (8.0.36) is supported.Database engine version (8.0.36) is supported.
No files from previous GLPI version detected.No files from previous GLPI version detected.
The log file has been created successfully.The log file has been created successfully.
Write access to /var/www/html/glpi/files/_cache has been validated. Write access to /var/www/html/glpi/files/_cron has been validated. Write access to /var/www/html/glpi/files has been validated. Write access to /var/www/html/glpi/files/_dumps has been validated. Write access to /var/www/html/glpi/files/_graphs has been validated. Write access to /var/www/html/glpi/files/_lock has been validated. Write access to /var/www/html/glpi/files/_pictures has been validated. Write access to /var/www/html/glpi/files/_plugins has been validated. Write access to /var/www/html/glpi/files/_rss has been validated. Write access to /var/www/html/glpi/files/_sessions has been validated. Write access to /var/www/html/glpi/files/_tmp has been validated. Write access to /var/www/html/glpi/files/_uploads has been validated.Write access to /var/www/html/glpi/files/_cache has been validated.
Write access to /var/www/html/glpi/files/_cron has been validated.
Write access to /var/www/html/glpi/files has been validated.
Write access to /var/www/html/glpi/files/_dumps has been validated.
Write access to /var/www/html/glpi/files/_graphs has been validated.
Write access to /var/www/html/glpi/files/_lock has been validated.
Write access to /var/www/html/glpi/files/_pictures has been validated.
Write access to /var/www/html/glpi/files/_plugins has been validated.
Write access to /var/www/html/glpi/files/_rss has been validated.
Write access to /var/www/html/glpi/files/_sessions has been validated.
Write access to /var/www/html/glpi/files/_tmp has been validated.
Write access to /var/www/html/glpi/files/_uploads has been validated.
Web server root directory configuration seems safe.Web server root directory configuration seems safe.
PHP directive "session.cookie_httponly" should be set to "on" to prevent client-side script to access cookie values.PHP directive "session.cookie_httponly" should be set to "on" to prevent client-side script to access cookie values.
OS and PHP are relying on 64 bits integers.OS and PHP are relying on 64 bits integers.
exif extension is installed.exif extension is installed.
ldap extension is installed.ldap extension is installed.
openssl extension is installed.openssl extension is installed.
Following extensions are installed: bz2, Phar, zip.Following extensions are installed: bz2, Phar, zip.
Zend OPcache extension is installed.Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /var/www/html/glpi/marketplace has been validated.Write access to /var/www/html/glpi/marketplace has been validated.
Access to timezone database (mysql) is not allowed.Access to timezone database (mysql) is not allowed.
- Plugin List:
fields Name: Additional Fields Version: 1.21.8 State: Enabled
Install Method: Marketplace
behaviors Name: Comportamentos Version: 2.7.3 State: Installed / not activated
Install Method: Marketplace
connections Name: Connections Version: 10.0.0 State: Installed / not activated
Install Method: Marketplace
addressing Name: Endereçamento IP Version: 3.0.2 State: Installed / not activated
Install Method: Marketplace
escalade Name: Escalonamento Version: 2.9.6 State: Installed / not activated
Install Method: Marketplace
formcreator Name: Form Creator Version: 2.13.9 State: Installed / not activated
Install Method: Marketplace
gantt Name: gantt Version: 1.1.0 State: Installed / not activated
Install Method: Marketplace
genericobject Name: Gerenciamento de objetos Version: 2.14.9 State: Installed / not activated
Install Method: Marketplace
glpiinventory Name: GLPI Inventory Version: 1.3.5 State: Installed / not activated
Install Method: Marketplace
datainjection Name: Importação de dados Version: 2.13.5 State: Installed / not activated
Install Method: Marketplace
manufacturersimports Name: Importação de fornecedores Version: 3.0.8 State: Installed / not activated
Install Method: Marketplace
releases Name: Liberações Version: 2.0.3 State: Not installed
Install Method: Marketplace
timelineticket Name: Linha do tempo dos chamados Version: 10.0+1.1 State: To update
Install Method: Marketplace
mailanalyzer Name: Mail Analyzer Version: 3.1.1 State: Installed / not activated
Install Method: Manual
moreticket Name: Mais Chamados Version: 1.7.3 State: Not installed
Install Method: Marketplace
mreporting Name: Mais Relatórios Version: 1.8.6 State: To update
Install Method: Marketplace
satisfaction Name: Mais satisfação Version: 1.6.2 State: Installed / not activated
Install Method: Marketplace
trademark Name: Marca Comercial Version: 1.3.0 State: Installed / not activated
Install Method: Manual
metademands Name: Meta-Demands Version: 3.3.3 State: Installed / not activated
Install Method: Marketplace
metabase Name: Metabase Version: 1.3.3 State: Not installed
Install Method: Marketplace
mydashboard Name: Meu Painel Version: 2.1.5 State: Not installed
Install Method: Marketplace
oauthimap Name: Oauth IMAP Version: 1.4.3 State: Installed / not activated
Install Method: Marketplace
onetimesecret Name: OneTimeSecret Version: 2.0.0 State: Not installed
Install Method: Marketplace
dashboard Name: Painel Version: 1.0.2 State: Installed / not activated
Install Method: Manual
singlesignon Name: Single Sign-on Version: 1.3.3 State: Enabled
Install Method: Manual
treeview Name: Tree view Version: 1.10.2 State: Installed / not activated
Install Method: Marketplace
vip Name: VIP Version: 1.8.2 State: Installed / not activated
Install Method: Marketplace
webhook Name: Webhooks Version: 1.0.14 State: Not installed
Install Method: Marketplace
- Libraries:
htmlawed/htmlawed version 1.2.14 in (/var/www/html/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.8.0 in (/var/www/html/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/var/www/html/glpi/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.6.2 in (/var/www/html/glpi/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/var/www/html/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/html/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/var/www/html/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/var/www/html/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/var/www/html/glpi/vendor/sabre/http/lib)
sabre/uri in (/var/www/html/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/var/www/html/glpi/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/var/www/html/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/var/www/html/glpi/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/var/www/html/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/var/www/html/glpi/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/var/www/html/glpi/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/var/www/html/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/var/www/html/glpi/vendor/symfony/console)
scssphp/scssphp in (/var/www/html/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/var/www/html/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/var/www/html/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/var/www/html/glpi/vendor/rlanvin/php-rrule/src)
ramsey/uuid in (/var/www/html/glpi/vendor/ramsey/uuid/src)
psr/log in (/var/www/html/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/var/www/html/glpi/vendor/psr/simple-cache/src)
psr/cache in (/var/www/html/glpi/vendor/psr/cache/src)
league/csv in (/var/www/html/glpi/vendor/league/csv/src)
mexitek/phpcolors in (/var/www/html/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/var/www/html/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/var/www/html/glpi/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/var/www/html/glpi/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/var/www/html/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/var/www/html/glpi/vendor/paragonie/sodium_compat/src)
symfony/cache in (/var/www/html/glpi/vendor/symfony/cache)
html2text/html2text in (/var/www/html/glpi/vendor/html2text/html2text/src)
symfony/css-selector in (/var/www/html/glpi/vendor/symfony/css-selector)
symfony/dom-crawler in (/var/www/html/glpi/vendor/symfony/dom-crawler)
twig/twig in (/var/www/html/glpi/vendor/twig/twig/src)
twig/string-extra in (/var/www/html/glpi/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 not found
symfony/polyfill-php81 not found
symfony/polyfill-php82 in (/var/www/html/glpi/vendor/symfony/polyfill-php82)
league/oauth2-client in (/var/www/html/glpi/vendor/league/oauth2-client/src/Provider)
league/oauth2-google in (/var/www/html/glpi/vendor/league/oauth2-google/src/Provider)
thenetworg/oauth2-azure in (/var/www/html/glpi/vendor/thenetworg/oauth2-azure/src/Provider)
phpCas version 1.3.8 in (/usr/share/php/CAS/source)