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

MantisBT forum for users who prefer to ask and answer questions in French.

Moderators: Developer, Contributor

Post Reply
jmsoupeaux
Posts: 4
Joined: 26 Feb 2021, 13:59

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

Post 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
atrol
Site Admin
Posts: 7944
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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.
Please use Search before posting and read the Manual
jmsoupeaux
Posts: 4
Joined: 26 Feb 2021, 13:59

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

Post 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.
Post Reply