You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Deprecated function (8192): strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/html/glpi/src/Calendar.php at line 244
#18283
Closed
2 tasks done
danielmbicalho opened this issue
Nov 11, 2024
· 4 comments
Some itil categories are presenting errors on create or solve the tickets.
Relevant log output
[2024-11-11 10:32:35] glpiphplog.NOTICE: *** PHP Deprecated function(8192):strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/html/glpi/src/Calendar.php at line 244
Backtrace :
src/Calendar.php:244 strtotime()
src/Calendar.php:544 Calendar->isHoliday()
src/LevelAgreement.php:843 Calendar->computeEndDate()
src/CommonITILObject.php:2375 LevelAgreement->computeDate()
src/Ticket.php:1615 CommonITILObject->pre_updateInDB()
src/CommonDBTM.php:1700 Ticket->pre_updateInDB()
front/ticket.form.php:90 CommonDBTM->update()
public/index.php:82 require()
Page URL
/front/ticket.form.php?id=52285
Steps To reproduce
Open the ticket
Change the situation to Solved
Click the save button
the glpi process and crash
on debug mod, shows the message:
PHP Deprecated function (8192): strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/html/glpi/src/Calendar.php at line 244
Your GLPI setup information
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
This means there is a "calendar holiday" entry in your database that does not have an end date; I wonder if that should really happens (even if it seems to be currently permitted).
As a workaround, adding an end date should do the trick.
BTW, I've just tested, and that does not seems a legit case: when creating a holiday, if you do not give an end date, it's set to start date automatically.
thank you @trasher This bug causes many problems with processes that use the calendar. I had been having problems for several months and could not find a solution. Thank you for explaining it.
Code of Conduct
Is there an existing issue for this?
Version
10.0.17
Bug description
Some itil categories are presenting errors on create or solve the tickets.
Relevant log output
Page URL
/front/ticket.form.php?id=52285
Steps To reproduce
Your GLPI setup information
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: