Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Exception TypeError: Unsupported operand types: int + string in /var/www/html/glpi/src/LevelAgreement.php at line 855 #16722

Closed
2 tasks done
berils opened this issue Mar 7, 2024 · 1 comment

Comments

@berils
Copy link

berils commented Mar 7, 2024

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.12

Bug description

Whenever user is trying to create ticket with selected SLA plan/time , error is producted. (Only in debug mode you can see error code)
Error showed in debug mode:
Uncaught Exception TypeError: Unsupported operand types: int + string in /var/www/html/glpi/src/LevelAgreement.php at line 855

Relevant log output

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()

Page URL

No response

Steps To reproduce

Ticket template: Time to resolve- required
Create ticket with SLA/OLA plan selected.

Your GLPI setup information

yesturday upgraded from 10.0.10 to 10.0.12

Anything else?

This is pretty important bug, as support can't create tickets as expected.
Workaround- Turn off mandatory field TTR.
When TTR is empty, ticket is created as expected.

@cedric-anne
Copy link
Member

Fixed by #16496.

@cedric-anne cedric-anne closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants