Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.5 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Autosync between OCS and GLPI - error

Hi

Instaled server linux Debian "jessie/oldstable" with OCS and GLPI.
:/# ocsinventory-agent -version
Ocsinventory unified agent for UNIX, Linux and MacOSX (2.0.5)

APACHE
Server version: Apache/2.4.10 (Debian)
Server built:   Sep 20 2017 04:37:43

PHP
PHP Version 5.6.30-0+deb8u1
PERL
5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-gnu-thread-multi

MYSQL
MySQL version 5.5.57

I created a script into CRON job, to automatically update the database of GLPI
#cron job GLPI
# 5 * * * * /usr/bin/php /var/www/html/glpi/plugins/ocsinventoryng/scripts/run.php --thread_nbr=2 --server_id=1

and everything worked well until the update server, now I do not know which library to raise or lower to make it OK

now i have error:
[code]
"Output from command /usr/bin/php /var/www/html/glpi/plugins/ocsinventoryng/scripts/run.php --thread_nbr=2 --server_id=1 .."
PHP Fatal error:  Uncaught exception 'Zend\I18n\Exception\RuntimeException' with message 'Plural rule of merging text domain is not compatible with the current one' in /var/www/html/glpi/lib/Zend/I18n/Translator/TextDomain.php:101
Stack trace:
#0 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(698): Zend\I18n\Translator\TextDomain->merge(Object(Zend\I18n\Translator\TextDomain))
#1 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(572): Zend\I18n\Translator\Translator->loadMessagesFromFiles('glpi', 'pl_PL')
#2 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(440): Zend\I18n\Translator\Translator->loadMessages('glpi', 'pl_PL')
#3 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(354): Zend\I18n\Translator\Translator->getTranslatedMessage('Characteristics', 'pl_PL', 'glpi')
#4 /var/www/html/glpi/inc/autoload.function.php(93): Zend\I18n\Translator\Translator->translate('Characteristics', 'glpi')
#5 /var/www/html/glpi/inc/commondbtm.class.php(3085): __('Characteristics')
#6 /var/www/html/glpi/ in /var/www/html/glpi/lib/Zend/I18n/Translator/TextDomain.php on line 101
PHP Fatal error:  Uncaught exception 'Zend\I18n\Exception\RuntimeException' with message 'Plural rule of merging text domain is not compatible with the current one' in /var/www/html/glpi/lib/Zend/I18n/Translator/TextDomain.php:101
Stack trace:
#0 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(698): Zend\I18n\Translator\TextDomain->merge(Object(Zend\I18n\Translator\TextDomain))
#1 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(572): Zend\I18n\Translator\Translator->loadMessagesFromFiles('glpi', 'pl_PL')
#2 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(440): Zend\I18n\Translator\Translator->loadMessages('glpi', 'pl_PL')
#3 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(354): Zend\I18n\Translator\Translator->getTranslatedMessage('Characteristics', 'pl_PL', 'glpi')
#4 /var/www/html/glpi/inc/autoload.function.php(93): Zend\I18n\Translator\Translator->translate('Characteristics', 'glpi')
#5 /var/www/html/glpi/inc/commondbtm.class.php(3085): __('Characteristics')
#6 /var/www/html/glpi/ in /var/www/html/glpi/lib/Zend/I18n/Translator/TextDomain.php on line 101
PHP Fatal error:  Uncaught exception 'Zend\I18n\Exception\RuntimeException' with message 'Plural rule of merging text domain is not compatible with the current one' in /var/www/html/glpi/lib/Zend/I18n/Translator/TextDomain.php:101
Stack trace:
#0 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(698): Zend\I18n\Translator\TextDomain->merge(Object(Zend\I18n\Translator\TextDomain))
#1 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(572): Zend\I18n\Translator\Translator->loadMessagesFromFiles('glpi', 'pl_PL')
#2 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(440): Zend\I18n\Translator\Translator->loadMessages('glpi', 'pl_PL')
#3 /var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php(354): Zend\I18n\Translator\Translator->getTranslatedMessage('Characteristics', 'pl_PL', 'glpi')
#4 /var/www/html/glpi/inc/autoload.function.php(93): Zend\I18n\Translator\Translator->translate('Characteristics', 'glpi')
#5 /var/www/html/glpi/inc/commondbtm.class.php(3085): __('Characteristics')
#6 /var/www/html/glpi/ in /var/www/html/glpi/lib/Zend/I18n/Translator/TextDomain.php on line 101
[/code]
TexDomain.php
[code]
97 public function merge(TextDomain $textDomain)
98    {
99        if ($this->hasPluralRule() && $textDomain->hasPluralRule()) {
100            if ($this->getPluralRule()->getNumPlurals() !== $textDomain->getPluralRule()->getNumPlurals()) {
101               throw new Exception\RuntimeException('Plural rule of merging text domain is not compatible with the cu$
102            }
103        } elseif ($textDomain->hasPluralRule()) {
104            $this->setPluralRule($textDomain->getPluralRule());

[/code]

however, when i put ocsng_fullsync.php into the browser, works very well

http://mil-net-ocs/glpi/plugins/ocsinventoryng/scripts/ocsng_fullsync.php

Thread #-1: import computers from server: 'OCS' Thread #-1: 71 computer(s) ....................................................................... Thread #-1: done!!

Need your assistance to resolve the issue that I am facing.

Thanks

James
asked in OCS Inventory NG server for Unix by (120 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...