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-02-20 13:37:19

sparsh
Member
Registered: 2023-07-06
Posts: 15

Uncaught Exception TypeError: Unsupported operand types: int + string

I am currently using glpi 10.0.9 setup on AWS EC2 server with mysql database on AWS RDS.
I am trying to update glpi 10.0.9 to glpi 10.0.12, while setting it up everything works fine. DB Upgraded to 10.0.10, then 10.0.11, then 10.0.12.

In GLPI I am able to create Incident tickets successfully. But I am having the below error while creating Request tickets.
It's showing me blank/white screen after clicking the add button for tickets (where request -> type).


php-errors.log -
*** Uncaught Exception TypeError: Unsupported operand types: int + string in /var/www/glpi/src/LevelAgreement.php at line 855
  Backtrace :
  src/Ticket.php:449                                 LevelAgreement->computeDate()
  src/Ticket.php:1428                                Ticket->getDatasToAddSLA()
  src/Ticket.php:2027                                Ticket->slaAffect()
  src/CommonDBTM.php:1297                            Ticket->prepareInputForAdd()
  front/ticket.form.php:80                           CommonDBTM->add()
  public/index.php:82                                require()

Offline

#2 2024-03-07 08:14:43

zekaleka
Member
Registered: 2023-09-14
Posts: 28

Re: Uncaught Exception TypeError: Unsupported operand types: int + string

im facing the same issue after upgrade to 10.0.12.
Uncaught Exception TypeError: Unsupported operand types: int + string in /var/www/html/glpi/src/LevelAgreement.php at line 855



glpiphplog.CRITICAL:   *** Uncaught Exception TypeError: Unsupported operand types: int + string in /var/www/html/glpi/src/LevelAgreement.php at line 855
                                                                                                                   │  Backtrace :
                                                                                                                   │  src/Ticket.php:449                                 LevelAgreement->computeDate()
                                                                                                                   │  src/Ticket.php:1428                                Ticket->getDatasToAddSLA()
                                                                                                                   │  src/Ticket.php:2027                                Ticket->slaAffect()
                                                                                                                   │  src/CommonDBTM.php:1297                            Ticket->prepareInputForAdd()
                                                                                                                   │  front/ticket.form.php:80                           CommonDBTM->add()
                                                                                                                   │  public/index.php:82                                require()

Edit:
Runing ubuntu 22.04 ;apache;mysql;several official plugins


Edit No.2:
I found temporary workaround by disabling mandatory field SLA -> Time to resolve. When we create ticket without this field, it's working as expected.


Edit No.3: BugFix can be found @ github

Last edited by zekaleka (2024-03-07 13:45:41)

Offline

Board footer

Powered by FluxBB