Forum

[PHP8] Unsupported ...
 
Notifications
Retirer tout

[PHP8] Unsupported operand types: string * float

2 Posts
2 Utilisateurs
0 Reactions
2,341 Vu
(@bbalet)
Posts: 10
Eminent Member
Début du sujet
 
[#7147]

view/objectMain.php
cause = Unsupported operand types: string * float

Patch tool/projector.php by casting the 3 params to float:

function WidthDivContentDetail($positionListDiv,$objectClass){
….   
 
    $rightDivWidth=floatval(Parameter::getUserParameter('contentPaneRightDetailDivWidth'.$objectClass));
    $widthListDiv=floatval(Parameter::getUserParameter("contentPaneTopDetailDivWidth".$objectClass));
    $widthDetailDiv=floatval(Parameter::getUserParameter('contentPaneDetailDivWidth'.$objectClass));


 
Posté : 01/01/2021 10:42 am
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Thanks for pointing out the issue (ProjeQtOr is not tested yet over PHP8) and proposing the patch.
It(s included in next versniowith a small change : intval instead of floatval as data for width are in px, so we don't mind about decimals.


 
Posté : 03/01/2021 4:39 pm
Share:
Retour en haut