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.

Follow-up->Absences...
 
Notifications
Clear all

Follow-up->Absences ==> ERROR

7 Posts
3 Users
0 Reactions
3,813 Views
Antti Lukats
(@alukats)
Posts: 7
Active Member
Topic starter
 
[#7191]

after update to 9.0.2 we get red error on 

ERROR : An error occurred on 2021-01-13 at 13:01:25

Absences, what could cause it? Everything else seems to work still ok


 
Posted : 13 Jan 2021 15H02
Flou
 Flou
(@flou)
Posts: 253
Active Member
 

Hello,

Your issue is on planning view or in absences view ? 
can you join screenshot please.


 
Posted : 13 Jan 2021 19H20
Antti Lukats
(@alukats)
Posts: 7
Active Member
Topic starter
 

Hi the error comes in 2 cases

this error happens for all users that have actual work assigned, if I set all work to 0 then the error for given user does not appear, the error comes on FIRST day with assigned work

and in absence view


 
Posted : 14 Jan 2021 11H14
Flou
 Flou
(@flou)
Posts: 253
Active Member
 

I can't reproduce this, can you show your log files to better define the source of the error.

Your datatbe is on  Postgres or mysql ?
What is your php version ? 


 
Posted : 15 Jan 2021 18H09
(@babynus)
Posts: 14952
Member Admin
 

Can you please post error that is logged in projeqto rlog file ?


 
Posted : 15 Jan 2021 20H23
Antti Lukats
(@alukats)
Posts: 7
Active Member
Topic starter
 

Db: mariadb 10.3.17 (mysql)
PHP 7.4.8

======
BUG #1

Additional note this error only happens with old legacy GUI, with new interface it is not coming.
from log:

2021-01-21 15:31:45.106 ** ERROR ** [V9.0.2] on file '/var/www/html/pm/htdocs/model/Absence.php' at line (255)
2021-01-21 15:31:45.106 ** ERROR ** [V9.0.2] cause = Undefined variable: mediumTextButton

======
BUG #2

[root@shop logs]# tail projeqtor_20210121.log
2021-01-21 15:22:10.284 ===== TRACE ===== NEW CONNECTED USER 'antti.lukats' (using remember me feature)
2021-01-21 15:22:27.630 ** ERROR ** [V9.0.2] ERROR **
2021-01-21 15:22:27.630
** ERROR ** [V9.0.2] on file '/var/www/html/pm/htdocs/model/PlannedWorkManual.php' at line (346)
2021-01-21 15:22:27.630
** ERROR ***** [V9.0.2] cause = Division by zero

this is the line with error
$height=intval($size*($real-$realAdmin)/(($capacity)?$capacity:$resObj->capacity));

a DIRTY fix to:

$height=intval($size*($real-$realAdmin)/max((($capacity)?$capacity:$resObj->capacity),0.1));
fixes the red error ! sure this is not correct fix..

additional note: I have logged to projeqtor from different PC with different language settings, so sometimes comma is , and sometimes its . maybe related somehow?


 
Posted : 21 Jan 2021 17H26
(@babynus)
Posts: 14952
Member Admin
 

Hi,

BUG#1 already identified and fixed. Ticket #5211
Will be deployed on V9.0.3

BUG#2 will be fixed with

$height=intval($size*($real-$realAdmin)/(($capacity)?$capacity:(($resObj->capacity)?$resObj->capacity:1)));

NB : it could also easily be fixed setting capacity of your resources to non-zero value 😉


 
Posted : 23 Jan 2021 14H33
Share:

Scroll to Top