You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-03-21 14:06:48

Fufaev
Member
Registered: 2023-03-21
Posts: 2

Error migration Databases plugin to GLPI 10.0.6

Hello. I'm migrating from 9.5 to 10.0.6. I'm using the "Databases" plugin.

Updated GLPI to version 10 went without problems.

Following the instructions from the project Databases home page - _https://github.com/InfotelGLPI/databases

I execute command in console:

php /var/www/glpi/bin/console migration:databases_plugin_to_core

and getting the following error:
...
Updating profiles...
   0/11 [>--------------------------------] 0%Uncaught Exception TypeError: Argument 1 passed to Glpi\Toolbox\Sanitizer:: isNsClassOrCallableIdentifier() must be of the type string, array given, called in /var/www/glpi/src/DBmysql.php on line 1265 in /var/www/glpi/src/Toolbox/Sanitizer.php at line 224
....

How to solve this problem?

Last edited by Fufaev (2023-03-21 14:22:36)

Offline

#2 2023-03-22 12:32:44

Fufaev
Member
Registered: 2023-03-21
Posts: 2

Re: Error migration Databases plugin to GLPI 10.0.6

Solved problem. Add   
if (is_array($value)) {$value = exportArrayToDB($value);}
in line 1406 file /var/www/glpi/src/DBmysql.php

if (is_array($new_value)) {$new_value = exportArrayToDB($new_value);}
in line 251 file /var/www/glpi/src/Log.php

Last edited by Fufaev (2023-03-22 12:33:27)

Offline

Board footer

Powered by FluxBB