Forum

How to export / imp...
 
Notifications
Retirer tout

How to export / import & replace assigments?

10 Posts
3 Utilisateurs
0 Reactions
2,131 Vu
(@loicr)
Posts: 125
Estimable Member
Début du sujet
 
[#9182]

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


 
Posté : 05/12/2023 10:50 am
(@marylene)
Posts: 592
Membre Admin
 

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


 
Posté : 05/12/2023 1:05 pm
(@loicr)
Posts: 125
Estimable Member
Début du sujet
 

I cheched and add name for all ressources and user but it seems to be the same.


 
Posté : 05/12/2023 1:20 pm
(@marylene)
Posts: 592
Membre Admin
 

after reboot and clear cache? we never know ?! 


 
Posté : 05/12/2023 1:22 pm
(@babynus)
Posts: 14952
Membre Admin
 

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.


 
Posté : 05/12/2023 1:27 pm
(@loicr)
Posts: 125
Estimable Member
Début du sujet
 

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


 
Posté : 05/12/2023 1:34 pm
(@loicr)
Posts: 125
Estimable Member
Début du sujet
 

Strange, it works under EDGE vs Chrome !


 
Posté : 05/12/2023 1:45 pm
(@loicr)
Posts: 125
Estimable Member
Début du sujet
 

But only for single project, if i select master planning ... red notice.

LR


 
Posté : 05/12/2023 1:47 pm
(@loicr)
Posts: 125
Estimable Member
Début du sujet
 

After reboot and correction in one project with ressources closed deleted.

It seems to work.

Thanks !

LR


 
Posté : 05/12/2023 1:59 pm
(@marylene)
Posts: 592
Membre Admin
 

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


 
Posté : 05/12/2023 3:54 pm
Share:
Retour en haut