Trying to export, get this error. Apparently, new since V11. Did not see with V10.4.5.
export_planning_20231203_205012.xml
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
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.
Is there anything from my side I can do to help you debugging the error?
Line 1632 calculates duration. Some sections, I can export, some I cannot. I do not see any issues on the display.
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
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.
Yes, that's the fix that will be deployed in next patch