Skip to content

Error updating the fields plugin during migration to GLPI 11.0.2 #1073

@rean1mat0r

Description

@rean1mat0r

My actions and results

  1. Made a database dump
  2. I transferred the database dump, GLPI 10 files, and the /var/lib/glpi folder to another server.
  3. Updated GLPI to 11
  4. Copied the new versions of the GenericObject and Fields plugins to the "marketplace" folder (my plugins live there for some reason). Manually applied the suggested fix Fix(core): fix bad SQL table used for GO migration #1070
  5. Activated Genericobject
  6. In the Ubuntu terminal, I executed "sudo -u www-data php bin/console migration:utf8mb4" and "sudo -u www-data php bin/console migration:unsigned_keys" (This requires GLPI11 on the main page)
  7. I went to the plugins page and clicked Update on the Fields plugin. I got an error in the logs:

[2025-11-04 13:02:03] glpi.CRITICAL: *** Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load class "PluginFieldsGlpicustomassetusedsystemassetusadditinfo" from the global namespace. Did you forget a "use" statement?" at container.class.php line 761 Backtrace : ./marketplace/fields/inc/container.class.php:761 ./marketplace/fields/inc/container.class.php:464 PluginFieldsContainer::create() ./marketplace/fields/hook.php:87 PluginFieldsContainer::installUserData() ./src/Plugin.php:1160 plugin_fields_install() ./front/plugin.form.php:60 Plugin->install() ...Glpi/Controller/LegacyFileLoadController.php:64 require() ./vendor/symfony/http-kernel/HttpKernel.php:181 Glpi\Controller\LegacyFileLoadController->__invoke() ./vendor/symfony/http-kernel/HttpKernel.php:76 Symfony\Component\HttpKernel\HttpKernel->handleRaw() ./vendor/symfony/http-kernel/Kernel.php:197 Symfony\Component\HttpKernel\HttpKernel->handle() ./public/index.php:70 Symfony\Component\HttpKernel\Kernel->handle()

At this moment, in the Debug GLPI mode, the inscription "MySQL tables installation" appears on the page at the top

In the log file /var/log/glpi/migration_to_1.22.2.log:

2025-11-04 13:45:42 [6@Server-ITSM]
0 seconds for "Updating glpi_plugin_fields_fields"
2025-11-04 13:45:42 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_computeradddescriptions
2025-11-04 13:45:43 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_printermeddevcontoprints
2025-11-04 13:45:43 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_printermeddevcontoprints
2025-11-04 13:45:44 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_printermeddevcontoprints
2025-11-04 13:45:44 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_printermeddevcontoprints
2025-11-04 13:45:44 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_computermeddevconneceteds
2025-11-04 13:45:45 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_computermeddevconneceteds
2025-11-04 13:45:45 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_printerprintersupplieslasers
2025-11-04 13:45:45 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_printerprintersupplieslasers
2025-11-04 13:45:46 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_fields
2025-11-04 13:45:46 [6@Server-ITSM]
Change of the database layout - glpi_plugin_fields_labeltranslations
2025-11-04 13:45:46 [6@Server-ITSM]
Update to 1.22.2 version completed.
2025-11-04 13:45:46 [6@Server-ITSM]
4 seconds for "Fix fields names"
2025-11-04 13:45:46 [6@Server-ITSM]
Update to 1.22.2 version completed.
2025-11-04 13:45:46 [6@Server-ITSM]
0 seconds for "Regenerate containers files"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions