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 2024-01-08 20:21:12

Team_work
Member
Registered: 2024-01-08
Posts: 2

Massive action blank screen while trying to sent ticket to trash

Hey guys I have created a ticket and was updating with a few images. Hey guys, I created a ticket and was updating it with a few images. The ticket seemed to become too 'heavy,' and the screen was taking a longer time to load. So, I decided to delete it, but when I tried to send it to the trash, I got a blank screen. With glpi/front/massiveaction.php

I checked the debug log and get this:

[2024-01-08 18:13:22] glpiphplog.NOTICE:   *** PHP Deprecated function (8192): preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/glpi/vendor/html2text/html2text/src/Html2Text.php at line 375
  Backtrace :
  vendor/html2text/html2text/src/Html2Text.php:375   preg_replace_callback()
  vendor/html2text/html2text/src/Html2Text.php:356   Html2Text\Html2Text->converter()
  vendor/html2text/html2text/src/Html2Text.php:345   Html2Text\Html2Text->doConvert()
  vendor/html2text/html2text/src/Html2Text.php:292   Html2Text\Html2Text->convert()
  src/RichText/RichText.php:141                      Html2Text\Html2Text->getText()
  src/NotificationTemplate.php:540                   Glpi\RichText\RichText::getTextFromHtml()
  src/NotificationTemplate.php:291                   NotificationTemplate::getDataForPlainText()
  src/NotificationEventAbstract.php:122              NotificationTemplate->getTemplateByLanguage()
  src/NotificationEvent.php:187                      NotificationEventAbstract::raise()
  src/Ticket.php:740                                 NotificationEvent::raiseEvent()
  src/CommonDBTM.php:2067                            Ticket->pre_deleteItem()
  src/MassiveAction.php:1433                         CommonDBTM->delete()
  src/MassiveAction.php:1414                         MassiveAction::processMassiveActionsForOneItemtype()
  src/MassiveAction.php:1392                         MassiveAction->processForSeveralItemtypes()
  front/massiveaction.php:59                         MassiveAction->process()
 

Can someone help me?
GLPI Version: GLPI 10.0.8

Offline

#2 2024-01-08 23:32:01

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

Re: Massive action blank screen while trying to sent ticket to trash

Were the images inside the ticket description itself or attached separately? GLPI probably ran into the limit of the "pcre.backtrack_limit" PHP configuration option when trying to place that description into the notification. You can try increasing this PHP option or temporarily disable the "Delete ticket" notification.


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

#3 2024-01-09 16:06:20

Team_work
Member
Registered: 2024-01-08
Posts: 2

Re: Massive action blank screen while trying to sent ticket to trash

Hello!
It was attached. Disabling the delete notification worked, thanks!
Just for curiosity, how i increase this "pcre.backtrack_limit"?

Offline

#4 2024-01-09 16:22:05

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

Re: Massive action blank screen while trying to sent ticket to trash

You should search for how to do this for your specific OS and web server as the configuration file could exist in different locations.
For example, on Debian/Ubuntu/Mint with Apache, the relevant config file is "/etc/php/8.1/apache2/php.ini" for PHP 8.1.
After changing the value for the option, you will need to restart the web server process (Apache in this case) for the config changes to be used.


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