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 2018-06-23 09:48:10

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

Reports spamming log file for missing translations every minute

AFAIK it happens on any new reports version on any new glpi version.

2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(applicationsbylocation_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(globalhisto_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(iteminstall_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(listequipmentbylocation_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(printers_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(searchinfocom_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(softnotinstalled_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(statnightticketsbypriority_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(statticketsbyentity_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(statticketsbypriority_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(transferreditems_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(zombies_report_title, reports) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(deliveryinfos_report_title, order) => not found
2018-06-23 09:41:01 [@glpi.rent24.com]
includeLocales(orderdelivery_report_title, order) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(applicationsbylocation_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(globalhisto_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(iteminstall_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(listequipmentbylocation_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(printers_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(searchinfocom_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(softnotinstalled_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(softversioninstallations_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(statnightticketsbypriority_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(statticketsbyentity_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(statticketsbypriority_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(transferreditems_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(zombies_report_title, reports) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(deliveryinfos_report_title, order) => not found
2018-06-23 09:42:01 [@glpi.rent24.com]
includeLocales(orderdelivery_report_title, order) => not found

Offline

#2 2020-02-11 21:49:17

AndiFo
Member
Registered: 2020-02-11
Posts: 1

Re: Reports spamming log file for missing translations every minute

Hello Megachip,

I've the same issue at plugin-version 1.13.1.

The problem is a not right translated po/mo-File in my case. I've isolated the spammer, the function includeLocales (filepath plugins/reports/inc/function.php) is checking if the translated word the same as the report_name. In my case (language de) it is. The quick solution is simply, just commend out the lines 84 und 85 at function includeLocales:

      if ($LANG['plugin_'.$plugin][$report_name] == $report_name.'_report_title') {
//         Toolbox::logInFile('php-errors',
//                            "includeLocales($name, $plugin) => not found\n");
      }

Offline

Board footer

Powered by FluxBB