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

TypeError when processing cron to create invoices from renewing services

    Details

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

      Description

      The automation task to create invoices for renewing services (i.e. "Create Invoice") may fail to complete due to an exception:

      Argument 1 passed to Module::serviceFieldsToObject() must be of the type array, null given, called in /components/modules/universal_module/universal_module.php on line 97

      This error appears to be isolated to those:

      • running php 7+
      • with a Universal Module product renewing
        • where that product has at least one defined Service Option

      The server's php configuration may also affect whether this issue is encountered. For example, while the exception may occur in php 7.1, it may not in php 7.2.

        Activity

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.6.0 Sprint 2 [ 69 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked lower
        Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        Automated transition triggered when Tyson Phillips (Inactive) created pull request #621 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        tyson Tyson Phillips (Inactive) made changes -
        Fix Version/s 4.6.0-b1 [ 11117 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #621 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              28/Feb/19

              Agile