Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.10.2
-
Component/s: None
-
Labels:None
Description
From client
We are trying out php 8.1 with blesta and noticed a type issue in cpanel.
when limit was returning unlimited we get[2024-07-09T17:00:01.728988+00:00] general.ERROR: Uncaught Exception TypeError: "Unsupported operand types: string / int" at blesta/components/modules/cpanel/cpanel.php line 1704
Unknown macro: {"exception"}and if you cast it to int got this
[2024-07-09T17:01:03.207526+00:00] general.ERROR: Uncaught Exception TypeError: "round(): Argument #1 ($num) must be of type int|float, string given" at blesta/components/modules/cpanel/views/default/tab_stats.pdt line 83
Unknown macro: {"exception"}Let me know if you have any followups.
but looks like its not handling unlimited correctly and tries to use it as a number
Activity
| Field | Original Value | New Value |
|---|---|---|
| Rank | Ranked higher |
| Sprint | 5.11.0 Sprint 1.5 [ 205 ] |
| Rank | Ranked higher |
| Rank | Ranked higher |
| Remaining Estimate | 0 minutes [ 0 ] | |
| Time Spent | 45 minutes [ 2700 ] | |
| Worklog Id | 17324 [ 17324 ] |
| Assignee | Abdy Franco [ abdy ] |
| Time Spent | 45 minutes [ 2700 ] | 2 hours, 45 minutes [ 9900 ] |
| Worklog Id | 17325 [ 17325 ] |
| Status | Open [ 1 ] | In Review [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Status | In Review [ 5 ] | Closed [ 6 ] |