Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.9.3
-
Fix Version/s: 5.10.0-b2
-
Component/s: Client Interface, Modules
-
Labels:None
Description
In the cPanel module, on PHP 8.1, the service management stats page does not load the stats, and results in the following PHP error being logged:
Uncaught TypeError, code 0 in /components/modules/cpanel/views/default/tab_client_stats.pdt on line 36 Message: round(): Argument #1 ($num) must be of type int|float, string given
More information provided by the client:
tab_client_stats.pdt#35
'limit' => round(($stats->disk_usage['limit']) ?? 0, 2)
Limit in this case is empty which ends up getting passed in to round and
throughs that error.
Looks like on php 7 it just converted to zero but doesn't happen on 8
Activity
Paul Phillips
created issue -
Paul Phillips
made changes -
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Paul Phillips
made changes -
Rank | Ranked lower |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Sprint | 5.10.0-b2 Sprint 1 [ 199 ] |
Jonathan Reissmueller
made changes -
Sprint | 5.10.0-b2 Sprint 1 [ 199 ] | 5.10.0-b2 Sprint 1, 5.10.0-b2 sprint 2 [ 199, 200 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Assignee | Jonathan Reissmueller [ jonathan ] |
Jonathan Reissmueller
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Jonathan Reissmueller
made changes -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Abdy Franco
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 18 minutes [ 1080 ] | |
Worklog Id | 16991 [ 16991 ] |
Jonathan Reissmueller
made changes -
Status | In Review [ 5 ] | Closed [ 6 ] |