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 2021-02-10 17:03:20

pjagudo
Member
Registered: 2019-08-27
Posts: 8

php error "Invalid date"

Hi:
We have recently updated GLPI from version 0.85.5 to 9.5.3 and everything has gone very well. The problems we have encountered, we have been solving except for a php error that continually appears in ../glpi/files/_log/ php-errors.log
The error is:
[2021-02-10 14:18:03] glpiphplog.WARNING: Html::convDate() in /var/www/glpi/inc/html.class.php line 166
Invalid date 10/02/20201!  {"user":"1295@srvGLPI01"}

It is clear that 10/02/20201 is a date that will one day arrive, but it is not a date that the system expects today. wink

Can someone help me find the cause of the error? I can't know what the origin is.
What is {"user": "1295 @ srvGLPI01"}?


Thanks for your help
Best regards

Last edited by pjagudo (2021-02-10 17:08:33)

Offline

#2 2021-02-10 20:02:20

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,168

Re: php error "Invalid date"

What is {"user": "1295 @ srvGLPI01"}?

go to administration> users  and check with user having  id=1295  (it could be fusion inventory)


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#3 2021-02-11 22:33:52

oj69
Member
From: Somewhere in the cloud
Registered: 2021-02-01
Posts: 157

Re: php error "Invalid date"

Did you do the post-installation tasks as described in the installation ? There are topics about date conversations, too...

Hope this helps

Kind regards

Oliver

Offline

#4 2021-02-15 12:35:22

pjagudo
Member
Registered: 2019-08-27
Posts: 8

Re: php error "Invalid date"

LaDenrée wrote:

What is {"user": "1295 @ srvGLPI01"}?

go to administration> users  and check with user having  id=1295  (it could be fusion inventory)


Thanks for your answer.
I have been checking the configuration of the users that appear in the log and I do not find anything that can give me an idea of what the problem is.

I have compared in the glpi_users table the four users that appear in the log with other users and there are no differences that could lead to this error being reported.
Any other suggestions ?

Thanks for your help
Best regards

Offline

#5 2021-02-15 12:56:43

pjagudo
Member
Registered: 2019-08-27
Posts: 8

Re: php error "Invalid date"

oj69 wrote:

Did you do the post-installation tasks as described in the installation ? There are topics about date conversations, too...

Hope this helps

Kind regards

Oliver


Thanks for your answer.

In the update I have followed these steps:

  • sudo -u www-data php ./bin/console glpi:maintenance:enable

  • sudo -u www-data php ./bin/console glpi:system:check_requirements

  • sudo -u www-data php ./bin/console db:configure --reconfigure --db-host=srvDB01 --db-name=glpi --db-user=GLPIUser --db-password=pass

  • sudo -u www-data php ./bin/console glpi:database:update

  • sudo -u www-data php ./bin/console glpi:ldap:synchronize_users --only-update-existing

  • sudo -u www-data php ./bin/console glpi:migration:myisam_to_innodb

  • sudo -u www-data php ./bin/console glpi:migration:build_missing_timestamps

  • sudo -u www-data php ./bin/console glpi:migration:timestamps

In the migration log I do not find errors, only two warning:

  1. notices that there have been changes to the database ACL that you should review.
    New rights has been added for datacenter, you should review ACLs after update @

  2. I should create an index on the id_search_option table:
    "An index must be added in the 'id_search_option' field of the 'glpi_logs table'; but your glpi_logs table is too huge."

Any other idea ?


Thanks for your help
Best regards

Offline

#6 2021-02-27 00:23:41

oj69
Member
From: Somewhere in the cloud
Registered: 2021-02-01
Posts: 157

Re: php error "Invalid date"

I suggest you purchase Professional Support from GLPI-Network ...

Offline

Board footer

Powered by FluxBB