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 2014-10-09 13:34:30

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

[Plugin][Reports v1.7.2] Errors into php-errors.log (II)

The environment

  • GLPI 0.84.7

  • Reports 1.7.2

The error message

This happens once and other, and other...

2014-10-02 12:28:22
includeLocales(applicationsbylocation_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(doublons_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(equipmentbygroups_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(equipmentbylocation_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(globalhisto_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(histohard_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(histoinst_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(infocom_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(iteminstall_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(licenses_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(licensesexpires_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(listequipmentbylocation_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(listgroups_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(location_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(pcsbyentity_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(printers_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(rules_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(searchinfocom_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(softnotinstalled_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(softversioninstallations_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(statnightticketsbypriority_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(statticketsbyentity_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(statticketsbypriority_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(transferreditems_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(zombies_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(applicationsbylocation_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(doublons_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(equipmentbygroups_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(equipmentbylocation_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(globalhisto_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(histohard_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(histoinst_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(infocom_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(iteminstall_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(licenses_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(licensesexpires_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(listequipmentbylocation_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(listgroups_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(location_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(pcsbyentity_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(printers_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(rules_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(searchinfocom_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(softnotinstalled_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(softversioninstallations_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(statnightticketsbypriority_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(statticketsbyentity_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(statticketsbypriority_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(transferreditems_report_title, reports) => not found
2014-10-02 12:28:22
includeLocales(zombies_report_title, reports) => not found

Tomás Abad

Offline

#2 2014-10-10 10:27:06

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

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Have you update the version of the plugin or it's a fresh installation?


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 2014-10-10 10:41:36

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Hello Nelly,

I'm afraid I could not help you, I don't remember it.

Regards,


Tomás Abad

Offline

#4 2014-10-10 10:46:58

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

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

In files /locales of the plugin, do you have .po and .mo files? do you have .php files?


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

#5 2014-10-10 10:47:02

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Hello Nelly,

I'm not sure but it's more probably I made a fresh installation.

Regards,


Tomás Abad

Offline

#6 2014-10-10 10:50:41

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Hello Nelly,

This is the system has,

[root@inventario locales]# pwd
/usr/local/share/glpi/plugins/reports/locales

[root@inventario locales]# ls -l
total 272
-rw-r--r--. 1 root root  5446 Sep  4  2013 da_DK.mo
-rw-r--r--. 1 root root 10867 Sep  4  2013 da_DK.po
-rw-r--r--. 1 root root  2915 May  7  2013 de_DE.mo
-rw-r--r--. 1 root root 10006 May  7  2013 de_DE.po
-rw-r--r--. 1 root root  1636 Feb  9  2014 el_GR.mo
-rw-r--r--. 1 root root  9658 Feb  9  2014 el_GR.po
-rw-r--r--. 1 root root  5071 May  7  2013 en_GB.mo
-rw-r--r--. 1 root root 10712 May  7  2013 en_GB.po
-rw-r--r--. 1 root root  5647 Feb  9  2014 es_AR.mo
-rw-r--r--. 1 root root 11105 Feb  9  2014 es_AR.po
-rw-r--r--. 1 root root  3172 May  7  2013 es_ES.mo
-rw-r--r--. 1 root root 10151 May  7  2013 es_ES.po
-rw-r--r--. 1 root root  5607 May  7  2013 fr_FR.mo
-rw-r--r--. 1 root root 11026 May  7  2013 fr_FR.po
-rw-r--r--. 1 root root  8963 May  7  2013 glpi.pot
-rw-r--r--. 1 root root  5373 Feb  9  2014 hr_HR.mo
-rw-r--r--. 1 root root 10795 Feb  9  2014 hr_HR.po
-rw-r--r--. 1 root root  2857 May  7  2013 it_IT.mo
-rw-r--r--. 1 root root 10016 May  7  2013 it_IT.po
-rw-r--r--. 1 root root  2914 May  7  2013 nl_NL.mo
-rw-r--r--. 1 root root 10031 May  7  2013 nl_NL.po
-rw-r--r--. 1 root root  5743 Sep  3  2013 pt_BR.mo
-rw-r--r--. 1 root root 11210 Sep  3  2013 pt_BR.po
-rw-r--r--. 1 root root  5424 Sep  4  2013 ro_RO.mo
-rw-r--r--. 1 root root 10836 Sep  4  2013 ro_RO.po
-rw-r--r--. 1 root root  6754 Feb  9  2014 ru_RU.mo
-rw-r--r--. 1 root root 12179 Feb  9  2014 ru_RU.po
-rw-r--r--. 1 root root  5573 Sep  3  2013 tr_TR.mo
-rw-r--r--. 1 root root 11033 Sep  3  2013 tr_TR.po

Regards,


Tomás Abad

Offline

#7 2014-10-10 11:04:15

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

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

If haven't your problem. With language do you use in GLPI?


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 2014-10-10 11:11:42

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Hello Nelly,

We use GLPI in English and Spanish.


Tomás Abad

Offline

#9 2014-10-10 12:03:35

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

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

in file es_ES.po, do you have "applicationsbylocation_report_title"?


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

#10 2014-10-10 12:30:41

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Hello Nelly,

Yes I have it.

     69 #: inc/timeintervalcriteria.class.php:67 inc/timeintervalcriteria.class.php:76
     70 msgid "Number pending"
     71 msgstr "Número pendientes"
     72 
     73 #. TRANS: The name of the report = Applications by locations and versions
     74 #: report/applicationsbylocation/applicationsbylocation.php:36
     75 msgid "applicationsbylocation_report_title"
     76 msgstr ""
     77 
     78 #: report/applicationsbylocation/applicationsbylocation.php:42
     79 msgid "Applications"
     80 msgstr "Aplicaciones"
     81 
     82 #: report/applicationsbylocation/applicationsbylocation.php:45
     83 #: report/softversioninstallations/softversioninstallations.php:43
     84 msgid "Computer status"
     85 msgstr "Estado del equipo"
     86 

Regards,

Last edited by tabad (2014-10-10 12:31:00)


Tomás Abad

Offline

#11 2014-10-10 12:42:33

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Hello Nelly,

I don't know whether this is important or not but there are a lot of lines

msgstr ""

inside that file.

Regards,


Tomás Abad

Offline

#12 2014-10-10 12:45:29

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Hello Nelly,

...and each line

2014-10-02 12:28:22
includeLocales(zombies_report_title, reports) => not found

in php-error.txt file has its equivalent into es_ES.po file

    ...
    337 #. TRANS: The name of the report = Users with no right
    338 #: report/zombies/zombies.php:36
    339 msgid "zombies_report_title"
    340 msgstr ""
    341 
    ...

Regards,


Tomás Abad

Offline

#13 2014-10-10 12:50:35

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

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

msgstr "" corresponding to a string not translated.
But in this case, you must have the title of the report in english


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

#14 2014-10-29 01:11:26

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Hello Nelly,

What is the solution for this problem, translate the plugin?

I do not want to have those entries in php-errors.txt file. It is bigger each day and with they is more and more difficult to find a problem, if someone exists.


Tomás Abad

Offline

#15 2014-10-29 17:22:58

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

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Yes the string must be translated. You can be a translator of this plugin (we use transifex https://www.transifex.com/projects/p/GL … ge/es_ES/)


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

#16 2018-03-12 15:34:31

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

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Still a problem with

GLPI 9.2.1
Reports 1.11.1

Language English and German

Offline

#17 2018-03-12 17:48:10

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

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

You post on an old thread corrected.
What is your 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

#18 2018-03-26 18:41:28

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

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

yllen wrote:

What is your problem?

The bug regported by tabad is still not fixed/the strings are still not translated.

and the link to transiflex thrown a 404.

Offline

#19 2021-03-06 00:11:20

eduardomozart
Member
Registered: 2020-10-13
Posts: 7

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Before applying the workaround below, check if there is newer version of the plug-in Additional reports available for download.

For anyone that search for this message into Google and get into this post:

This message is displayed in the

<GLPI_ROOT>\files\_log\php-errors.log

log file when GLPI debug mode is active. This message is generated by the 'includeLocales()' function of the ''<GLPI_ROOT>/plugins/reports/inc/function.php'' file. This is only an informational message and displayed only when the debug mode (Debug) of GLPI is active and can be safely ignored. However, it makes it difficult to debug the ''php-error.log'' file when the GLPI debug mode is active, in addition to taking up disk space due to the additional messages recorded in this log file.

This message is displayed because the string from the message do not have translations in certain *.mo translation files.

E.g.:

2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(statusertask_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(statusertask_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(statusertask_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(statusertask_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(statusertask_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(statusertask_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(statusertask_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(statusertask_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2021-03-05 17:51:34 [168@webserver.example.com]
includeLocales(statusertask_report_title, reports) => not found

Note that messages are displayed seven times for each string, indicating that the strings were not found in seven *.mo files. You can check which files DO NOT have the

statusertask_report_title

and

softversioninstallations_report_title

strings translated using the command:

# grep -L "softversioninstallations_report_title" /var/www/html/plugins/reports/locales/*.po
de_DE.po
el_GR.po
es_AR.po
es_ES.po
hr_HR.po
nl_NL.po
ro_RO.po

When checking the contents of the corresponding *.po file (s) (for example, de_DE.po), the strings statusertask_report_title and softversioninstallations_report_title were not included in the file.

The workaround is to add the missing strings to the * .po file(s) with empty strings, so that GLPI uses the English version of the string(s):

#. TRANS: The name of the report = Not installed important software (plural)
#: report/softversioninstallations/softversioninstallations.php:41
msgid "softversioninstallations_report_title"
msgstr ""
 
#: report/statusertask/statusertask.php:39
msgid "statusertask_report_title"
msgstr ""

If the message is being displayed in a translation file in which you have knowledge/fluency, it is preferable to contact the Additional plug-ins project owners so that you can be added to the Transifex translation page and can contribute by translating the plug-in's string (you can find the email address of those responsible in the "Members" section of the plug-in's home page). If you are not fluent in the language, you can also contact them via e-mail requesting that the missing string(s) be added to the translation file(s) so that the message does not generated in future versions of the plug-in.

You will need to regenerate the ''*.mo'' files after editing the ''*.po'' file (s) to reflect the changes:

cd /var/www/html/plugins/reports/locales
for file in "`pwd`"/*.po; do msgcat $file | msgfmt -o $(basename "$file" .po).mo -; done

You will also need to disable and UNINSTALL the Additional reports plug-in to reload the translation files. Remember to document plug-in rights (go to Configure > Plugins > Additional reports > click on the gear icon) if you’ve changed your reporting defaults permissions.

Last edited by eduardomozart (2021-03-06 00:58:13)

Offline

#20 2021-03-16 16:28:18

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

Re: [Plugin][Reports v1.7.2] Errors into php-errors.log (II)

Corrected with last version 1.14.1


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