InfotelGLPI/mydashboard

My GLPI doesnt open after extracting mydashboard into plugins folders

Closed this issue · 11 comments

My GLPI doenst open when I extract mydashboard in the pugins folder.
GLPI Version 9.1

[Tue Oct 25 21:22:59.441949 2016] [:error] [pid 1483] [client 89.248.172.90:46808] PHP Fatal error: Uncaught Zend\\I18n\\Exception\\ParseException: Unknown or invalid$nvalid parser rule: nplurals=INTEGER; plural=EXPRESSION; in /var/www/glpi/vendor/zendframework/zend-i18n/src/Translator/Plural/Rule.php:194\nStack trace:\n#0 /var/ww$var/www/glpi/vendor/zendframework/zend-i18n/src/Translator/Loader/Gettext.php(149): Zend\\I18n\\Translator\\Plural\\Rule::fromString(' nplurals=INTEG...')\n#1 /var/ww$var/www/glpi/vendor/zendframework/zend-i18n/src/Translator/Loader/Gettext.php(149): Zend\\I18n\\Translator\\Plural\\Rule::fromString(' nplurals=INTEG...')\n#1 /var/wwvar/www/glpi/vendor/zendframework/zend-i18n/src/Translator/Translator.php(700): Zend\\I18n\\Translator\\Loader\\Gettext->load('en_GB', '/var/www/glpi/p...')\n#2 /var//var/www/glpi/vendor/zendframework/zend-i18n/src/Translator/Translator.php(572): Zend\\I18n\\Translator\\Translator->loadMessagesFromFiles('mydashboard', 'en_GB')\n#B')\n#3 /var/www/glpi/vendor/zendframework/zend-i18n/src/Translator/Translator.php(440): Zend\\I18n\\Translator\\Translator->loadMessages('mydashboard', 'en_GB')\n#4 )\n#4 /var/www/glpi/vendor/zendframework/zend-i18n/src/Translator/Translator.php(354): Zend\\I18n\\Translator\\Translator->getTranslatedMessage('My Dashboard', 'en_GB'en_GB', 'mydashboard')\n#5 /va in /var/www/glpi/vendor/zendframework/zend-i18n/src/Translator/Plural/Rule.php on line 194

tsmr commented

Which version of plugins have you download ?

Oh, I'm sorry, I forget to mention, it's version 1.3.0

tsmr commented

I cannot replicate... :(

Whare are your languages loaded into GLPI & preferences ?

How can I check this?
It's on the default folder, i haven't changed. My GLPI installation is new.

tsmr commented

You are in English on interface ?

Yes

Same Problem here, i have upgraded to GLPI 9.1 (before 0.90.5) and extracted the "mydashboard 1.3.0 into plugin Folder after this my GLPI crashed and under Plugins (if GLPI is running) there are no plugins seen.

It's a plurality problem in the translation files. I will take a look and try to locate it.

The problem is the plural return in event.class.php line 37 - there's nothing defined in glpi.pot or the language files for it.

tsmr commented

I replicate :) - i will push a fix as soon as possible
(Change en_GB.po file - drop line "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" & generate .mo)
Duplicate #9