Forum

[SOLVED] Error: Und...
 
Notifications
Retirer tout

[SOLVED] Error: Undefined variable: regulTh

5 Posts
4 Utilisateurs
0 Reactions
2,907 Vu
(@hbarel)
Posts: 3
Active Member
Début du sujet
 
[#6800]

When calculating the plan, I get: (from log)
** ERROR ** [V8.5.1] cause = Undefined variable: regulTh (in line 844 of PlannedWork.php)
Seems as $regulTh is defined in line 833 which is within a condition that ($delaiTh and $delaiTh>0).


 
Posté : 5 Juil PM 12:077
(@avris)
Posts: 8
Active Member
 

It appears due to $regulTh is only conditionally assigned if workDayDiffDates() returns non-zero (to avoid division by zero).

Does it make sense to set $regulTh equal to $ass->leftWork if workDayDiffDates() returns 0?

Another issue that may/may not be related - we see in the log the following error:

xxxx-xx-xx --:--:--.--- ** ERROR ** [V8.5.1] Exception-[42000] SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8mb4_general_ci' is not valid for CHARACTER SET 'utf8'

(xxxx-xx-xx --:--:00.--- is timestamp) - message is followed by a stack trace

It happens several times and started last couple of days ago.


 
Posté : 5 Juil PM 14:077
Gautier
(@gautier)
Posts: 207
Membre Admin Registered
 

Hello,

ticket #4762 created.
It will be resolved in next corrective patch.


 
Posté : 6 Juil PM 14:077
(@avris)
Posts: 8
Active Member
 

Thank you.

I see the following in the log:

Syntax error or access violation: 1253 COLLATION 'utf8mb4_general_ci' is not valid for CHARACTER SET 'utf8'

What is the reason, and could you please supply a workaround?

Thanks,
Avri


 
Posté : 14 Juil PM 13:077
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

It is just that de collation could not be determinated correctly.
Add line in parameters.php :

$paramDbCollation='utf8';

 
Posté : 15 Juil AM 11:077
Share:
Retour en haut