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.

jsonPlanning.php - ...
 
Notifications
Clear all

jsonPlanning.php - cannot export

7 Posts
2 Users
0 Reactions
2,204 Views
(@dieperie)
Posts: 47
Active Member
Topic starter
 
[#9175]

Trying to export, get this error. Apparently, new since V11. Did not see with V10.4.5.

export_planning_20231203_205012.xml

ERROR : An error occurred on 2023-12-03 at 20:50:13

ProjeQtor log file:
2023-12-03 21:11:31.815 ** ERROR ** [V11.0.2] ERROR **
2023-12-03 21:11:31.815
** ERROR ** [V11.0.2] on file '/usr/share/projeqtor/tool/jsonPlanning.php' at line (1632)
2023-12-03 21:11:31.815
** ERROR ***** [V11.0.2] cause = Trying to access array offset on value of type bool


 
Posted : 03 Dec 2023 23H19
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

Strange as nothing was changed on that side on V11.0.
And I cannot reproduce on my instances.
I try a workaround, but not sure it will work as I cannot test efficiency.


 
Posted : 04 Dec 2023 16H39
(@dieperie)
Posts: 47
Active Member
Topic starter
 

Is there anything from my side I can do to help you debugging the error?


 
Posted : 04 Dec 2023 17H35
(@dieperie)
Posts: 47
Active Member
Topic starter
 

Line 1632 calculates duration. Some sections, I can export, some I cannot. I do not see any issues on the display.


 
Posted : 04 Dec 2023 17H49
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Strange, for me line 1632 is not dealong with calendars
          $resultArray[$i]['pend']=$resultArray[$j]['pend'];
But line just after (1633) does
          $resultArray[$i]['pduration']=workDayDiffDates($resultArray[$i]['pstart'],$resultArray[$i]['pend'], $line['idproject']);

And yers, possibly $line['idproject'] is not the correct relerence
We should use $resultArray[$i]['idproject']
We'll propose a fix in next patch


 
Posted : 04 Dec 2023 18H17
(@dieperie)
Posts: 47
Active Member
Topic starter
 

I modified :
1. line 1632 into

$resultArray[$i]['pduration']=workDayDiffDates($resultArray[$i]['pstart'],$resultArray[$i]['pend'], $resultArray[$i]['idproject']);

2. line 1636 into

$resultArray[$i]['pduration']=workDayDiffDates($resultArray[$i]['pstart'],$resultArray[$i]['pend'], $resultArray[$i]['idproject']);

Now it works again. Thank you for your support.


 
Posted : 04 Dec 2023 22H57
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Yes, that's the fix that will be deployed in next patch


 
Posted : 05 Dec 2023 2H07
Share:

Scroll to Top