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 2017-09-20 12:48:51

james_cole
Member
Registered: 2017-09-20
Posts: 7

automatic synchronization - PHP Fatal error

Hi everyone

I have problem with automatic synchronization between OCS and GLPI. this problem is since updating debian to debian jessie 8.7

 cat /etc/debian_version
8.7

version of GLPI, OCS, and Kernel

GLPI 0.90
Operating system: Linux xxxxxx 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64
OCS ver 2.0.5

to the synchronization i use plugin " OCS Inventory NG    1.2.1    GPLv2+"
if i use manually synchro, then works perfect

Statistics of the OCSNG link 
Computers imported	                0
Computers synchronized	        2
Computers linked	                0
Computers not updated	        0
Computers don't check any rule	0
Duplikaty komputerów	        0
Computers whose import is refused by a rule	0


beefore update, crone job details:

/usr/bin/php5 /var/www/html/glpi/plugins/ocsinventoryng/scripts/run.php --thread_nbr=2 --server_id=1

logs : ocsng_fullsync.log

Tue, 28 Mar 2017 12:05:01 +0200 /var/www/html/glpi/plugins/ocsinventoryng/scripts/run.php started
	Manage delete items in OCS server #1: "OCS"
27691 Started
27692 Started
=====================================================
	Thread #1: starting (1/2)
	Thread #1: import computers from server: 'OCS'
	Thread #1: 0 computer(s)
	Thread #1: done!!
=====================================================
27691 ended, waiting for 1 running thread
=====================================================
	Thread #2: starting (2/2)
	Thread #2: import computers from server: 'OCS'
	Thread #2: 2 computer(s)
..	Thread #2: done!!
=====================================================
27692 ended, waiting for 0 running thread
Tue, 28 Mar 2017 12:05:01 +0200 /var/www/html/glpi/plugins/ocsinventoryng/scripts/run.php ended

after update

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

any ideas?

thx

Offline

#2 2017-09-25 17:48:26

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: automatic synchronization - PHP Fatal error

I think you have two lib Zend on your server


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2017-09-26 08:44:15

james_cole
Member
Registered: 2017-09-20
Posts: 7

Re: automatic synchronization - PHP Fatal error

hmm, I searched the server

:~$ sudo find / -name Translator.php

/var/www/html/glpi/lib/Zend/I18n/Translator/Translator.php

and found only one file "Translator.php"

Offline

#4 2017-09-26 09:24:30

james_cole
Member
Registered: 2017-09-20
Posts: 7

Re: automatic synchronization - PHP Fatal error

~$ sudo dpkg -l |grep zlib
ii  zlib1g:amd64                   1:1.2.8.dfsg-2+b1                  amd64        compression library - runtime

Offline

#5 2017-09-26 10:04:29

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: automatic synchronization - PHP Fatal error

A read an other time your log.
You have a problem of translation of text "Characteristics" for Polish language.
In glpi/locales/pl_PL.po have you this translation?
If yes, try to clean your cache


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#6 2017-09-26 12:10:46

james_cole
Member
Registered: 2017-09-20
Posts: 7

Re: automatic synchronization - PHP Fatal error

i cleaned the cache, but still is the same error"

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

Offline

#7 2017-09-27 18:54:17

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: automatic synchronization - PHP Fatal error

Restart your Apache to clean all caches


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#8 2017-09-28 09:07:18

james_cole
Member
Registered: 2017-09-20
Posts: 7

Re: automatic synchronization - PHP Fatal error

still is the same error ....

~$ sudo /etc/init.d/apache2 restart

[ ok ] Restarting apache2 (via systemctl): apache2.service.
:~$ sudo /etc/init.d/apache2 status
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─forking.conf
   Active: active (running) since czw 2017-09-28 09:01:36 CEST; 4s ago
  Process: 1649 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 402 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
  Process: 1671 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/apache2.service
           ├─1687 /usr/sbin/apache2 -k start
           ├─1691 /usr/sbin/apache2 -k start
           ├─1692 /usr/sbin/apache2 -k start
           ├─1693 /usr/sbin/apache2 -k start
           ├─1694 /usr/sbin/apache2 -k start
           └─1695 /usr/sbin/apache2 -k start

wrz 28 09:01:35 mil-net-ocs systemd[1]: Starting LSB: Apache2 web server...
wrz 28 09:01:36 mil-net-ocs apache2[1671]: Starting web server: apache2.
wrz 28 09:01:36 mil-net-ocs systemd[1]: Started LSB: Apache2 web server.

Offline

#9 2017-09-28 09:11:34

james_cole
Member
Registered: 2017-09-20
Posts: 7

Re: automatic synchronization - PHP Fatal error

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

Offline

#10 2017-09-28 09:20:53

james_cole
Member
Registered: 2017-09-20
Posts: 7

Re: automatic synchronization - PHP Fatal error

in the GLPI plugins is new OCS Inventory NG, i'll install, and we will see

http://plugins.glpi-project.org/#/plugin/ocsinventoryng

 Version 1.3.2 

my current plugin OCS is 1.2.1

Offline

#11 2017-09-28 13:12:42

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: automatic synchronization - PHP Fatal error

I have sometime this error on in my centOS and the command service httpd restart solves the problem


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

Board footer

Powered by FluxBB