Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4680

Editing an invoice results in a 500 error with PHP 8.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.5.0-b1
    • Component/s: Staff Interface
    • Labels:
      None

      Description

      To reproduce, use PHP 8.1 and click the "Edit" link for an invoice under a client's profile page.

      The following error is written to the logs:
      [2022-06-16T19:15:30.215307+00:00] general.ERROR: Uncaught Exception ArgumentCountError: "3 arguments are required, 2 given" at /home/blestar/public_html/vendors/minphp/language/src/Language.php line 125

      {"exception":"[object] (ArgumentCountError(code: 0): 3 arguments are required, 2 given at /home/blestar/public_html/vendors/minphp/language/src/Language.php:125)"}

        Activity

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.5.0-b2 Sprint 1 [ 161 ]
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 6 hours, 26 minutes [ 23160 ]
        Worklog Id 15817 [ 15817 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        abdy Abdy Franco made changes -
        Time Spent 6 hours, 26 minutes [ 23160 ] 6 hours, 38 minutes [ 23880 ]
        Worklog Id 15822 [ 15822 ]
        jonathan Jonathan Reissmueller made changes -
        Time Spent 6 hours, 38 minutes [ 23880 ] 6 hours, 45 minutes [ 24300 ]
        Worklog Id 15823 [ 15823 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              29/Jun/22

              Time Tracking

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

                Agile