Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

How to export / imp...
 
Notifications
Clear all

How to export / import & replace assigments?

10 Posts
3 Users
0 Reactions
2,173 Views
(@loicr)
Posts: 125
Active Member
Topic starter
 
[#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


 
Posted : 05 Dec 2023 10H50
(@marylene)
Posts: 592
Contributor 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


 
Posted : 05 Dec 2023 13H05
(@loicr)
Posts: 125
Active Member
Topic starter
 

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


 
Posted : 05 Dec 2023 13H20
(@marylene)
Posts: 592
Contributor Admin
 

after reboot and clear cache? we never know ?! 


 
Posted : 05 Dec 2023 13H22
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 05 Dec 2023 13H27
(@loicr)
Posts: 125
Active Member
Topic starter
 

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


 
Posted : 05 Dec 2023 13H34
(@loicr)
Posts: 125
Active Member
Topic starter
 

Strange, it works under EDGE vs Chrome !


 
Posted : 05 Dec 2023 13H45
(@loicr)
Posts: 125
Active Member
Topic starter
 

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

LR


 
Posted : 05 Dec 2023 13H47
(@loicr)
Posts: 125
Active Member
Topic starter
 

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

It seems to work.

Thanks !

LR


 
Posted : 05 Dec 2023 13H59
(@marylene)
Posts: 592
Contributor 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


 
Posted : 05 Dec 2023 15H54
Share:

Scroll to Top