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

Fatal error when renewing recurring invoices

    Details

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

      Description

      Invoices::getRecurringInvoices() was updated to accept an array of filters instead of individual parameters. It looks like Invoices::getAllRenewingRecurring() was not updated to reflect this and so encounters a fatal error which prevents the recurring invoice cron job from running:

      [2020-05-06 22:56:53] general.ERROR: Uncaught Exception TypeError: "Argument 1 passed to
      Invoices::getRecurringInvoices() must be of the type array, null given, called in
      /home/blestacp/public_html/app/models/invoices.php on line 2304" at
      /home/blestacp/public_html/app/models/invoices.php line 2979 {"exception":"[object] (TypeError(code:
      0): Argument 1 passed to Invoices::getRecurringInvoices() must be of the type array, null given,
      called in /home/blestacp/public_html/app/models/invoices.php on line 2304 at
      /home/blestacp/public_html/app/models/invoices.php:2979)"}

        Activity

        Automated transition triggered when Jonathan Reissmueller merged pull request #874 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 19 minutes [ 1140 ]
        Worklog Id 13647 [ 13647 ]
        Automated transition triggered when Abdy Franco created pull request #874 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        Automated transition triggered when Abdy Franco created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.11.0 Sprint 1 [ 108 ]
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller created 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:
              26/May/20

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 19 minutes
              19m

                Agile