View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Resource allocation time error - ProjeQtOr
 

[SOLVED] Resource allocation time error

More
15 Mar 2022 10:07 #1 by chandrashekhar
Hi,
I am facing an issue when editing any resource allocation or adding resource allocation. When I checked the log file it is showing the following error lines, Please guide me to solve this.

2022-03-15 14:30:18.038 ***** ERROR ***** [V9.4.3] on file 'E:\wamp\www\projeqtor\tool\projeqtor.php' at line (3432)
2022-03-15 14:30:18.038 ***** ERROR ***** [V9.4.3] cause = mktime(): Epoch doesn't fit in a PHP integer

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

More
15 Mar 2022 11:08 - 15 Mar 2022 11:09 #2 by babynus
Which version of PHP are you using ?

NB : you can try and change lines 3431-3432 in tool/projeqtor.php from
  $dStart=mktime(0, 0, 0, $tStart[1], $tStart[2], $tStart[0]);
  $dEnd=mktime(0, 0, 0, $tEnd[1], $tEnd[2], $tEnd[0]);
to
  $dStart=mktime(0, 0, 0, intval($tStart[1]), intval($tStart[2]), intval($tStart[0]));
  $dEnd=mktime(0, 0, 0, intval($tEnd[1]), intval($tEnd[2]), intval($tEnd[0]) ); 

Babynus
Administrator of ProjeQtOr web site
Last edit: 15 Mar 2022 11:09 by babynus.

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

More
15 Mar 2022 11:32 - 15 Mar 2022 11:36 #3 by chandrashekhar
Thank you for quick response, I tried same as you suggested but error showing with just line changed only as following :2022-03-15 15:57:45.670 ***** ERROR ***** [V9.4.3] on file E:\wamp\www\projeqtor\tool\projeqtor.php' at line (3434)2022-03-15 15:57:45.671 ***** ERROR ***** [V9.4.3] cause = mktime(): Epoch doesn't fit in a PHP integerPlease find lines as following what I have done as per your instruction:
//  $dStart=mktime(0, 0, 0, $tStart[1], $tStart[2], $tStart[0]);
//  $dEnd=mktime(0, 0, 0, $tEnd[1], $tEnd[2], $tEnd[0]);

$dStart=mktime(0, 0, 0, intval($tStart[1]), intval($tStart[2]), intval($tStart[0]));
$dEnd=mktime(0, 0, 0, intval($tEnd[1]), intval($tEnd[2]), intval($tEnd[0]) );
Last edit: 15 Mar 2022 11:36 by chandrashekhar.

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

More
15 Mar 2022 11:52 #4 by babynus
Very strange.
I found some possible hint on ionternet.
Can you try and install libseccomp2 on your php ? 

Babynus
Administrator of ProjeQtOr web site

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

More
15 Mar 2022 12:31 #5 by chandrashekhar
Thanks, let me try & will respond whatever is the result.

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

More
15 Mar 2022 14:26 #6 by chandrashekhar
I had chosen PHP version 8.0.13, changed the version to 7.4.26 & it worked fine.

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

Moderators: babynusprotion
Time to create page: 0.110 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.