Skip to content

Report 2.0.2 Glpi 11.0.6 Problems #38

Description

@leoetlea

Hello tanks for the new 2.0.2
They have two problems

First problem :
Setup / Plugins / Configure
Change right
plugins/reports/front/report.form.php
on update
[2026-04-27 07:52:19] glpi.WARNING: *** User Warning: XML error Start tag expected, '<' not found at line 1. at AbstractRequest.php line 385
Backtrace :
<REPLY> <ERROR>XML not well formed!</ERROR> </REPLY>

Change in
add line 37
$_SERVER['PHP_SELF']="/glpi/plugins/reports/front/report.form.php";

before lines
Html::header(
__('Reports plugin configuration', 'reports'),
$_SERVER['PHP_SELF'],
'config',
'plugins'
);

Second problem :
"Number equipments by location" for example

Search module
[2026-04-27 07:21:34] glpi.CRITICAL: *** Uncaught PHP Exception RuntimeException: "Unknown output type: -3" at SearchEngine.php line 128

File src/Dropdown.php lines : 2793-2796
$values['-' . Search::PDF_OUTPUT_LANDSCAPE] = __('All pages in landscape PDF');
$values['-' . Search::PDF_OUTPUT_PORTRAIT] = __('All pages in portrait PDF');
$values['-' . Search::CSV_OUTPUT] = __('All pages in CSV');
$values['-' . Search::ODS_OUTPUT] = __('All pages as Open Document format (.ods)');
$values['-' . Search::XLSX_OUTPUT] = __('All pages as Office Open XML (.xlsx)');

remove '-'.
$values[Search::PDF_OUTPUT_LANDSCAPE] = __('All pages in landscape PDF');
$values[Search::PDF_OUTPUT_PORTRAIT] = __('All pages in portrait PDF');
$values[Search::CSV_OUTPUT] = __('All pages in CSV');
$values[Search::ODS_OUTPUT] = __('All pages as Open Document format (.ods)');
$values[Search::XLSX_OUTPUT] = __('All pages as Office Open XML (.xlsx)');

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions