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.

[PHP8] Unsupported ...
 
Notifications
Clear all

[PHP8] Unsupported operand types: string * float

2 Posts
2 Users
0 Reactions
2,361 Views
(@bbalet)
Posts: 10
Active Member
Topic starter
 
[#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));


 
Posted : 01 Jan 2021 10H42
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 03 Jan 2021 16H39
Share:

Scroll to Top