Dear,
When i try to have reports ( Gantt planning ) and select main projet i've got red box with :
ERROR : foreach() argument must be of type array|object, null given
in jsonPlanning_pdf.php
at line 359
log : 2023-12-05 08:45:59.395 ** ERROR ** [V11.0.2] ERROR **
2023-12-05 08:45:59.395 ** ERROR ** [V11.0.2] on file '/var/www/projeqtor/tool/jsonPlanning.php' at line (947)
2023-12-05 08:45:59.396 ** ERROR ** [V11.0.2] cause = foreach() argument must be of type array|object, null given
2023-12-05 08:46:04.124 ** ERROR ** [V11.0.2] ERROR **
2023-12-05 08:46:04.124 ** ERROR ** [V11.0.2] on file '/var/www/projeqtor/tool/jsonPlanning.php' at line (947)
2023-12-05 08:46:04.125 ** ERROR ** [V11.0.2] cause = foreach() argument must be of type array|object, null given
2023-12-05 08:46:25.453 ** ERROR ** [V11.0.2] ERROR **
2023-12-05 08:46:25.454 ** ERROR ** [V11.0.2] on file '/var/www/projeqtor/tool/jsonPlanning.php' at line (947)
2023-12-05 08:46:25.454 ** ERROR ** [V11.0.2] cause = foreach() argument must be of type array|object, null given
2023-12-05 08:46:29.910 ** ERROR ** [V11.0.2] ERROR **
2023-12-05 08:46:29.910 ** ERROR ** [V11.0.2] on file '/var/www/projeqtor/tool/jsonPlanning_pdf.php' at line (359)
2023-12-05 08:46:29.910 ** ERROR ** [V11.0.2] cause = foreach() argument must be of type array|object, null given
If i select single project, it was working yesterday, but emplty screen today : nothing.
LR
Hello
Check your resource. There is apparently a problem with an unnamed resource on the project to display.
We are working on a patch for the next version
I cheched and add name for all ressources and user but it seems to be the same.
after reboot and clear cache? we never know ?! ![]()
You can try and add initals to your resources or change display for resources to names instead of initials.
This will avoid the code that generates the error as it occurs when generating initials from name.
reboot done and cache clear ... all is the same !!!
nothing happen when i click on view and if i click on pdf :
red box with
ERROR : foreach() argument must be of type array|object, null given
in jsonPlanning_pdf.php
at line 359
I try with "initial" on all resources (one missing) , view alway display nothing but pdf work on some project but not all some with red display
LR
Strange, it works under EDGE vs Chrome !
But only for single project, if i select master planning ... red notice.
LR
After reboot and correction in one project with ressources closed deleted.
It seems to work.
Thanks !
LR
You can also use PDF export from the planning view. It's the same result but you can format it differently.
In addition, this report will disappear since export is more efficient