Forum

[SOLVED] Resource a...
 
Notifications
Retirer tout

[SOLVED] Resource allocation time error

6 Posts
2 Utilisateurs
0 Reactions
1,702 Vu
(@chandrashekhar)
Posts: 275
Contributor
Début du sujet
 
[#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


 
Posté : 15 Mar PM 12:033
(@babynus)
Posts: 14952
Membre 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]) ); 

 
Posté : 15 Mar PM 13:033
(@chandrashekhar)
Posts: 275
Contributor
Début du sujet
 

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


 
Posté : 15 Mar PM 13:033
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 15 Mar PM 13:033
(@chandrashekhar)
Posts: 275
Contributor
Début du sujet
 

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


 
Posté : 15 Mar PM 14:033
(@chandrashekhar)
Posts: 275
Contributor
Début du sujet
 

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


 
Posté : 15 Mar PM 16:033
Share:
Retour en haut