fusioninventory / fusioninventory-for-glpi

FusionInventory plugin for GLPI
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
362 stars 150 forks source link

FusioninventoryInventoryRuleImportCollection - error with glpi #3156

Open caresseduvisage opened 3 years ago

caresseduvisage commented 3 years ago

Hello,

I have the following error message when I am in "rules" on glpi. So I can't select the rules for : FusioninventoryInventoryRuleImportCollection

b Notice: Undefined offset: 1 in C:\wamp64\www\glpi\plugins\fusioninventory\inc\inventoryruleimportcollection.class.php on line 187

{main}( ) ...\rule.php:0 PluginFusioninventoryInventoryRuleImportCollection->getRuleClassName( ) ...\rule.php:54[/b]

Thanks,

pauloricardotech commented 3 years ago

Estou enfrentando o mesmo problema, uso o GLPI 5.5.5 + a ultima versão disponível do glpi,

conseguiu resolver?

ddurieux commented 3 years ago

Version of plugin? Version of GLPI?

pauloricardotech commented 3 years ago

Version of plugin:FusionInventory 9.5+3.0 Version of GLPI: 5.5.5

O plugin recebe as informações, mas as mesmas não são importadas para ATIVOS no glpi, veja os prints abaixo

Captura de Tela 2021-04-24 às 19 24 26

Captura de Tela 2021-04-24 às 19 24 45

caresseduvisage commented 3 years ago

Version of glpi : 9.5.5 and fusion : 9.5 +3.0. I use wamp with php 7.3 and mysql compatible version for GLPI

GabinSMD commented 3 years ago

Hello, I am currently experiencing the same problem on GLPI version 9.5.5 with Fusion Inventory 9.5+3.0. The base of GLPI that I use: MariaDB 10.5.10 PHP 7.4.20 Apache 2.4.48

The sql and php logs of GLPI do not give any information about this problem. Would someone have a solution?

pauloricardotech commented 3 years ago

Resolvi mudando o esquema de entidades, acontece que o fusion estava importando os dados para a entidade máxima, deixando as entidades filhas sem acesso ao dados inventariados.

Em qua., 16 de jun. de 2021 às 07:58, Gabin SIMOND @.***> escreveu:

Hello, I am currently experiencing the same problem on GLPI version 9.5.5 with Fusion Inventory 9.5+3.0. The base of GLPI that I use: MariaDB 10.5.10 PHP 7.4.20 Apache 2.4.48

The sql and php logs of GLPI do not give any information about this problem. Would someone have a solution?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fusioninventory/fusioninventory-for-glpi/issues/3156#issuecomment-862282114, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATXD7U5C7JBHFHYJLR7VHG3TTB7TXANCNFSM43OEBAVQ .

GabinSMD commented 3 years ago

Resolvi mudando o esquema de entidades, acontece que o fusion estava importando os dados para a entidade máxima, deixando as entidades filhas sem acesso ao dados inventariados. Em qua., 16 de jun. de 2021 às 07:58, Gabin SIMOND @.***> escreveu: Hello, I am currently experiencing the same problem on GLPI version 9.5.5 with Fusion Inventory 9.5+3.0. The base of GLPI that I use: MariaDB 10.5.10 PHP 7.4.20 Apache 2.4.48 The sql and php logs of GLPI do not give any information about this problem. Would someone have a solution? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#3156 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATXD7U5C7JBHFHYJLR7VHG3TTB7TXANCNFSM43OEBAVQ .

Thank you very much for your answer. Being French, the translation is a bit wrong. Could you make me some screenshots of the configuration to do to fix this error?

Priif commented 3 years ago

Edit : l'erreur semble se trouver dans la fonction getRuleClassName() de la page inventoryruleimportcollection.class.php.

A la place de if(debug_backtrace()[1]['function'] == 'getRuleListCriteria') {

j'ai mis : $dbt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2); $caller = $dbt[1]['function'] ?? null; if($caller == 'getRuleListCriteria') {

Il n'y a plus d'erreur suite à ce changement. Est-ce une solution ?

Merci !

iq2y Bonjour,

GLPI 9.5.5 + fusion 9.5+3.0 Apache/2.4.47 PHP/7.4.19 MySQL/5.7.33

Même problème. Malgré mes recherches, 0 solution trouvée...

Tous les pré-requis sont OK (sauf CAS qui n'est pas installé).

J'ai essayé de nettoyer les entités en ne laissant qu'une seule mais le problème persiste...

J'ai installé une instance vierge de GLPI ainsi que FI et le problème est toujours présent.


Hi,

Despite my research, 0 solution found...

All prerequisites are OK (except CAS which is not installed).

I tried to clean the entities by leaving only one but the problem persists...

I installed a new GLPI and Fusioninventory empty of any data, the problem is still there.

MilanCornado commented 2 years ago

Check commit 248651d6c0a820e860393cf1187f98e754f3b74c , the file was changed two weeks ago and fixed the issue for me. Hope it helps!