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 2023-10-27 09:45:56

TB1
Member
Registered: 2022-09-02
Posts: 4

Error when uploading image to ticket

Hi all,

I try to attach jpg image (4MB) to a ticket task with drag and drop and it takes very long time, and after the task creation there will be an empty task (without picture and text).
I tried this process with a smaller image (200KB) and it works.
I tried to upload the 4MB picture with "Choose files" and browse it from my PC. --It works.
So it works with browse option, but with drag&drop doesnt.

I enabled debug mode in GLPI and there is an error message at tasks with the 4MB picture.
The error message is:
PHP Deprecated function (8192): preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /web/glpi/src/RichText/RichText.php at line 352

OS: CentOS 7
Web server: Apache 2.4.6
PHP: 8.1.24
SQL: MariaDB 10.5.22

Anyone has a suggestion what do we have to do, or is it a bug?
Thanks in advance

Offline

Board footer

Powered by FluxBB