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 2022-10-07 07:54:10

hvantomas
Member
Registered: 2021-05-26
Posts: 6

Attached documents do not open

Hello everyone. After upgrading to version 10.0.3, the documents attached to the notes do not open, a new page opens with the following contents:

Please note: iconv(): An invalid character was detected in the input string in C:\wamp64\www\glpi\src\Toolbox.php on line 705
Warning: It is not possible to change the header information - the headers have already been sent (output started in C:\wamp64\www\glpi\src\Toolbox.php:705 ) in C:\wamp64\www\glpi\src\Toolbox.php on line 707
Warning: It is not possible to change the header information - the headers have already been sent (the output started in C:\wamp64\www\glpi\src\Toolbox.php:705 ) in C:\wamp64\www\glpi\src\Toolbox.php on line 709

How can this be corrected?

Last edited by hvantomas (2022-10-07 07:57:13)

Offline

#2 2022-10-07 12:06:01

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Attached documents do not open

It is probably from a plugin adding things to the output during their initialization (which happens for every request).
There was already code added to clear the output buffer before sending the file (if your PHP has "output_buffering" option enabled which it should be by default).
However, in some cases it may not have worked.
There are two patches that will add a different method in 10.0.4.

The main one:
https://github.com/glpi-project/glpi/pull/12802

A fix to avoid a warning when there is nothing to clear:
https://github.com/glpi-project/glpi/pull/12856


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB