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.

[SOLVED] Resource a...
 
Notifications
Clear all

[SOLVED] Resource allocation time error

6 Posts
2 Users
0 Reactions
1,732 Views
(@chandrashekhar)
Posts: 275
Contributor
Topic starter
 
[#8144]

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:wampwwwprojeqtortoolprojeqtor.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


 
Posted : 15 Mar 2022 12H07
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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]) ); 

 
Posted : 15 Mar 2022 13H08
(@chandrashekhar)
Posts: 275
Contributor
Topic starter
 

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:wampwwwprojeqtortoolprojeqtor.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]) );


 
Posted : 15 Mar 2022 13H32
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Very strange.
I found some possible hint on ionternet.
Can you try and install libseccomp2 on your php ? 


 
Posted : 15 Mar 2022 13H52
(@chandrashekhar)
Posts: 275
Contributor
Topic starter
 

Thanks, let me try & will respond whatever is the result.


 
Posted : 15 Mar 2022 14H31
(@chandrashekhar)
Posts: 275
Contributor
Topic starter
 

I had chosen PHP version 8.0.13, changed the version to 7.4.26 & it worked fine.


 
Posted : 15 Mar 2022 16H26
Share:

Scroll to Top