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 2015-12-14 14:03:56

Megachip
Member
Registered: 2014-05-02
Posts: 109

[GLPI 0.85.5][PHP 7]Network Prots Exception

On opening network ports of an asset, I've got the following error:

Fatal error: Uncaught Zend\I18n\Exception\OutOfBoundsException: Provided index 1 does not exist in plural array in /usr/share/php/Zend/I18n/Translator/Translator.php:413 Stack trace: #0 /usr/share/glpi/inc/autoload.function.php(153): Zend\I18n\Translator\Translator->translatePlural('Internet inform...', 'Internet inform...', 2, 'glpi') #1 /usr/share/glpi/inc/networkport.class.php(582): _n('Internet inform...', 'Internet inform...', 2) #2 /usr/share/glpi/inc/networkport.class.php(1122): NetworkPort::showForItem(Object(Computer)) #3 /usr/share/glpi/inc/commonglpi.class.php(455): NetworkPort::displayTabContentForItem(Object(Computer), '1', '') #4 /usr/share/glpi/ajax/common.tabs.php(87): CommonGLPI::displayStandardTab(Object(Computer), 'NetworkPort$1', '', Array) #5 {main} thrown in /usr/share/php/Zend/I18n/Translator/Translator.php on line 413

Offline

#2 2015-12-15 10:53:31

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: [GLPI 0.85.5][PHP 7]Network Prots Exception

Various PHP 7 fix are included in 0.90.1, s you need to update


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2015-12-18 14:28:16

Megachip
Member
Registered: 2014-05-02
Posts: 109

Re: [GLPI 0.85.5][PHP 7]Network Prots Exception

remi wrote:

Various PHP 7 fix are included in 0.90.1, s you need to update

No updates/fixes for the 0.85 root? ATM, can't upgrade to 0.9 cause a lot of plugins missing.

Offline

#4 2016-01-06 16:19:14

Megachip
Member
Registered: 2014-05-02
Posts: 109

Re: [GLPI 0.85.5][PHP 7]Network Prots Exception

Replaced the networkport.class.php to fix this problem. Seems there where only php7 changes.

Offline

Board footer

Powered by FluxBB