Page 1 of 1

mantisbt v2.24.4 - date(): Argument #2 ($timestamp) must be of type ?int, string given

Posted: 05 Mar 2021, 18:26
by jmsoupeaux
Bonjour,

je suis en cours d'upgrade de mantisbt de la version 1.2.15 vers la version 2.24.4 et lorsque je passe en modification sur des fiches j'ai le message suivant :
date(): Argument #2 ($timestamp) must be of type ?int, string given
C:\inetpub\wwwroot\mantisbtprod-new\core\date_api.php: 242: - - - - date()
C:\inetpub\wwwroot\mantisbtprod-new\core\cfdefs\cfdef_standard.php: 500: - - - - print_date_selection_set()
C:\inetpub\wwwroot\mantisbtprod-new\core\custom_field_api.php: 1429: - - - - cfdef_input_date()
C:\inetpub\wwwroot\mantisbtprod-new\bug_update_page.php: 713: - - - - print_custom_field_input()

Lorsque je crée une nouvelle fiche je peux la valider ça se passe bien mais dès que je passe en modification et que je valide j'ai ce message d'erreur.

Voici les versions que j'ai côté mantisbt/mysql et php :
- windows 2016 server
- mantisbt 2.24.2
- PHP 8.0.2
- IIS 7
- MySQL 8.0.22

Re: mantisbt v2.24.4 - date(): Argument #2 ($timestamp) must be of type ?int, string given

Posted: 06 Mar 2021, 03:26
by atrol
Should be fixed starting from 2.24.5 https://mantisbt.org/bugs/view.php?id=27928
If not, use PHP 7.4 for the moment.

Re: mantisbt v2.24.4 - date(): Argument #2 ($timestamp) must be of type ?int, string given

Posted: 17 Mar 2021, 11:22
by jmsoupeaux
Thanks for your informations.
I have installed mantisbt 2.24.5 it's ok no error when i update matis.

I have setup PHP 7.3.