Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to link computers #366

Open
CireSacud26 opened this issue Sep 14, 2023 · 1 comment
Open

Unable to link computers #366

CireSacud26 opened this issue Sep 14, 2023 · 1 comment

Comments

@CireSacud26
Copy link

Hi,

Since GLPI upgrade to 10.0.9, OCS Inventory plugin is no more able to link existing computers between GLPI database and OCS database.
Logs show:
glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "field" in G:\src\RuleImportEntity.php at line 153
Backtrace :
rc\Rule.php:2603 RuleImportEntity->displayAdditionalRuleCondition()
rc\RuleCollection.php:1698 Rule->displayCriteriaSelectPattern()
ront\rulesengine.test.php:74 RuleCollection->showRulesEnginePreviewCriteriasForm()
ublic\index.php:82 require()

Note that computer sync is functionnal.

GLPI version : 10.0.9
OCS Inventory plugin version : 2.0.4

Regards,
Eric

@BorisNovg
Copy link

Same problem!

GLPI version : 10.0.15
OCS Inventory plugin version : 2.0.4 (and last master too)

Home - Administration - Rules - Rules for assigning an item to an entity:
ocs1
ocs2

In glpi 9.5.6:
ocs3

php-errors.log (on click to "Unavailable"):

[2024-06-03 16:43:40] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "field" in /usr/share/glpi/src/RuleImportEntity.php at line 157
Backtrace :
src/Rule.php:2644 RuleImportEntity->displayAdditionalRuleCondition()
ajax/rulecriteriavalue.php:53 Rule->displayCriteriaSelectPattern()
public/index.php:82 require()

[2024-06-03 16:43:40] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "field" in /usr/share/glpi/src/RuleImportEntity.php at line 169
Backtrace :
src/Rule.php:2644 RuleImportEntity->displayAdditionalRuleCondition()
ajax/rulecriteriavalue.php:53 Rule->displayCriteriaSelectPattern()
public/index.php:82 require()

Table glpi_rulecriterias in field criteria:
MACHINE_NAME
IPADDRESS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants