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.
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
Hello,
Your issue is on planning view or in absences view ?
can you join screenshot please.
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 ?
Can you please post error that is logged in projeqto rlog file ?
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?
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 😉



