View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - jsonPlanning.php - cannot export - ProjeQtOr
 
 

jsonPlanning.php - cannot export

More
03 Dec 2023 21:19 - 03 Dec 2023 21:26 #1 by dieperie
Trying to export, get this error. Apparently, new since V11. Did not see with V10.4.5.

export_planning_20231203_205012.xml
<div class="messageERROR" >ERROR : An error occurred on 2023-12-03 at 20:50:13</div><input type="hidden" id="lastSaveId" value="" /><input type="hidden" id="lastOperation" value="ERROR" /><input type="hidden" id="lastOperationStatus" value="ERROR" />

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
Last edit: 03 Dec 2023 21:26 by dieperie.

Please Log in or Create an account to join the conversation.

More
04 Dec 2023 14:39 #2 by babynus
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.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
04 Dec 2023 15:35 #3 by dieperie
Is there anything from my side I can do to help you debugging the error?

Please Log in or Create an account to join the conversation.

More
04 Dec 2023 15:49 - 04 Dec 2023 16:08 #4 by dieperie
Line 1632 calculates duration. Some sections, I can export, some I cannot. I do not see any issues on the display.
Last edit: 04 Dec 2023 16:08 by dieperie.

Please Log in or Create an account to join the conversation.

More
04 Dec 2023 16:17 #5 by babynus
Strange, for me line 1632 is not dealong with calendars
          $resultArray[$i]=$resultArray[$j];
But line just after (1633) does
          $resultArray[$i]=workDayDiffDates($resultArray[$i],$resultArray[$i], $line);

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

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
04 Dec 2023 20:57 - 05 Dec 2023 00:07 #6 by dieperie
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.
Last edit: 05 Dec 2023 00:07 by babynus.

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.039 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.