Page 1 of 1

php7.1 compatibility?

Posted: 26 Oct 2017, 05:36
by emmanuelcohen
When I am trying to add a task, I get a 500.

The log says:

Code: Select all

[Wed Oct 25 20:47:51.024795 2017] [php7:error] [pid 25678] [client 10.32.7.74:49337] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function GTime::__construct(), 0 passed in /home/comtools/websites/soplanning/www/process/xajax_server.php on line 1467 and at least 5 expected in /home/comtools/websites/soplanning/includes/class_gtime.inc:9\nStack trace:\n#0 /home/comtools/websites/soplanning/www/process/xajax_server.php(1467): GTime->__construct()\n#1 /home/comtools/websites/soplanning/includes/xajax.inc(994): submitFormPeriode('0', 'inventory', Array, '25/10/2017', 'false', '', '', '00:00:00', '', '', 'false', 'false', '', '', '', '', '1', '1', '1', '1', '1', 'false', 'en_cours', '', '', 'non', 'GLPI', '', '', '', 'true')\n#2 /home/comtools/websites/soplanning/includes/xajax.inc(652): xajax->_callFunction('submitFormPerio...', Array)\n#3 /home/comtools/websites/soplanning/www/process/xajax_server.php(2385): xajax->processRequests()\n#4 {main}\n  thrown in /home/comtools/websites/soplanning/includes/class_gtime.inc on line 9, referer: http://comtools001.infra.mckay-brothers.com/taches.php
Is soplanning compatible with php7.1 or only php7 ?
Thanks

Re: php7.1 compatibility?

Posted: 26 Oct 2017, 07:59
by soplanning
Hello
In theory, it is compatible with 7.1 too
Regarding the error, there's no difference on this function in those versions.

Anyway, we'll dig and will find the issue, maybe a specific case.
Will be fixed in next release.
best regards