Forum

jsonPlanning.php - ...
 
Notifications
Retirer tout

jsonPlanning.php - cannot export

7 Posts
2 Utilisateurs
0 Reactions
2,169 Vu
(@dieperie)
Posts: 47
Trusted Member
Début du sujet
 
[#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


 
Posté : 03/12/2023 11:19 pm
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 04/12/2023 4:39 pm
(@dieperie)
Posts: 47
Trusted Member
Début du sujet
 

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


 
Posté : 04/12/2023 5:35 pm
(@dieperie)
Posts: 47
Trusted Member
Début du sujet
 

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


 
Posté : 04/12/2023 5:49 pm
(@babynus)
Posts: 14952
Membre 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


 
Posté : 04/12/2023 6:17 pm
(@dieperie)
Posts: 47
Trusted Member
Début du sujet
 

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.


 
Posté : 04/12/2023 10:57 pm
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 05/12/2023 2:07 am
Share:
Retour en haut