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

        jonathan Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.11.0 Sprint 1.5 [ 205 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 45 minutes [ 2700 ]
        Worklog Id 17324 [ 17324 ]
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Time Spent 45 minutes [ 2700 ] 2 hours, 45 minutes [ 9900 ]
        Worklog Id 17325 [ 17325 ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Aug/24

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 2 hours, 45 minutes
              2h 45m

                Agile