-
Notifications
You must be signed in to change notification settings - Fork 74
Description
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
GLPI Version
11.0.1
Plugin version
1.22.1
Bug description
When creating any block, the following error appears:
MySQL query error: Data too long for column 'language' at row 1 (1406) in SQL query "INSERT INTO glpi_plugin_fields_labeltranslations (itemtype, items_id, language, label) VALUES ('PluginFieldsContainer', '14', 'es_419', 'test')".
In ./src/DBmysql.php(371)
#0 ./src/DBmysql.php(1327): DBmysql->doQuery()
#1 ./src/CommonDBTM.php(775): DBmysql->insert()
#2 ./src/CommonDBTM.php(1380): CommonDBTM->addToDB()
#3 ./marketplace/fields/inc/labeltranslation.class.php(114): CommonDBTM->add()
#4 ./marketplace/fields/inc/container.class.php(709): PluginFieldsLabelTranslation::createForItem()
#5 ./src/CommonDBTM.php(1396): PluginFieldsContainer->post_addItem()
#6 ./marketplace/fields/front/container.form.php(43): CommonDBTM->add()
#7 ./src/Glpi/Controller/LegacyFileLoadController.php(64): require('...')
#8 ./vendor/symfony/http-kernel/HttpKernel.php(181): Glpi\Controller\LegacyFileLoadController->__invoke()
#9 ./vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#10 ./vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle()
#11 ./public/index.php(70): Symfony\Component\HttpKernel\Kernel->handle()
#12 {main}
However, This block is finally created.
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
database migrated from GLPI 10.0.20 -> 11.0.0 -> 11.0.1
Anything else?
When I changed the name of the entity, the error no longer occurred.