Skip to content

Location data not imported #547

@laurentlmx

Description

@laurentlmx

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.2

Plugin version

2.15.1

Bug description

I am using GLPI default installation with Docker compose.
I try to import locations (with only city, latitude, longitude fields).
Validation is said to be ok. Import report states everything's fine.
But no location appears in GLPI (meanwhile import works fine using a script shell and Rest API v1 but is slow...).

Looking in the logs, the following appears in php-errors.log :
[2025-11-18 17:12:32] glpi.WARNING: *** Warning: Undefined array key "models_id" at popup.php line 42
Backtrace :
...pi/marketplace/datainjection/front/popup.php:42
...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()

[2025-11-18 17:12:32] glpi.WARNING: *** Warning: Undefined array key "itemtype" at model.class.php line 1359
Backtrace :
...ketplace/datainjection/inc/model.class.php:1359
...ketplace/datainjection/inc/model.class.php:1426 PluginDatainjectionModel::prepareLogResults()
...pi/marketplace/datainjection/front/popup.php:42 PluginDatainjectionModel::showLogResults()
...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()

[2025-11-18 17:12:32] glpi.WARNING: *** Warning: Undefined array key "itemtype" at model.class.php line 1392
Backtrace :
...ketplace/datainjection/inc/model.class.php:1392
...ketplace/datainjection/inc/model.class.php:1426 PluginDatainjectionModel::prepareLogResults()
...pi/marketplace/datainjection/front/popup.php:42 PluginDatainjectionModel::showLogResults()
...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()

[2025-11-18 17:12:32] glpi.WARNING: *** Warning: Undefined array key "itemtype" at model.class.php line 1359
Backtrace :
...ketplace/datainjection/inc/model.class.php:1359
...ketplace/datainjection/inc/model.class.php:1426 PluginDatainjectionModel::prepareLogResults()
...pi/marketplace/datainjection/front/popup.php:42 PluginDatainjectionModel::showLogResults()
...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()

[2025-11-18 17:12:32] glpi.WARNING: *** Warning: Undefined array key "itemtype" at model.class.php line 1392
Backtrace :
...ketplace/datainjection/inc/model.class.php:1392
...ketplace/datainjection/inc/model.class.php:1426 PluginDatainjectionModel::prepareLogResults()
...pi/marketplace/datainjection/front/popup.php:42 PluginDatainjectionModel::showLogResults()
...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()

Relevant log output

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions