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

        There are no comments yet on this issue.

          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