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

Append to existing invoice when creating a service as staff results in an error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.11.2
    • Fix Version/s: 5.11.3
    • Component/s: Staff Interface
    • Labels:
      None

      Description

      When adding a service as an admin and selecting the option "Append to Invoice", a 500 error occurs and the following error is written to the general.ERROR log:

      [2025-03-31T19:20:37.366649+00:00] general.ERROR: Uncaught Exception Error: "Attempt to assign property "country" on false" at /home/user/public_html/5110/app/models/invoices.php line 5959

      {"exception":"[object] (Error(code: 0): Attempt to assign property \"country\" on false at /home/user/public_html/5110/app/models/invoices.php:5959)"}

      The invoice appears to be appended and the service appears to be created, even though this error and white screen of death occurs.

      Also, double check that if the service is set to Pending it is created as a pending status and not activated immediately (there are some reports). NOTE that the service is set as "Pending" but activated by cron. I believe part of the original error is causing the service ID to not be associated with the invoice.

      1. 1.png
        39 kB
      2. 2.png
        37 kB
      3. 3.png
        22 kB

        Activity

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Attachment 1.png [ 13063 ]
        admin Paul Phillips made changes -
        Attachment 2.png [ 13064 ]
        admin Paul Phillips made changes -
        Attachment 3.png [ 13065 ]
        admin Paul Phillips made changes -
        Rank Ranked higher
        admin Paul Phillips made changes -
        Sprint 5.12.0 Sprint 2 [ 209 ]
        admin Paul Phillips made changes -
        Rank Ranked higher
        admin Paul Phillips made changes -
        Description When adding a service as an admin and selecting the option "Append to Invoice", a 500 error occurs and the following error is written to the general.ERROR log:

        [2025-03-31T19:20:37.366649+00:00] general.ERROR: Uncaught Exception Error: "Attempt to assign property "country" on false" at /home/user/public_html/5110/app/models/invoices.php line 5959 {"exception":"[object] (Error(code: 0): Attempt to assign property \"country\" on false at /home/user/public_html/5110/app/models/invoices.php:5959)"}

        The invoice appears to be appended and the service appears to be created, even though this error and white screen of death occurs.

        When adding a service as an admin and selecting the option "Append to Invoice", a 500 error occurs and the following error is written to the general.ERROR log:

        [2025-03-31T19:20:37.366649+00:00] general.ERROR: Uncaught Exception Error: "Attempt to assign property "country" on false" at /home/user/public_html/5110/app/models/invoices.php line 5959 {"exception":"[object] (Error(code: 0): Attempt to assign property \"country\" on false at /home/user/public_html/5110/app/models/invoices.php:5959)"}

        The invoice appears to be appended and the service appears to be created, even though this error and white screen of death occurs.

        Also, double check that if the service is set to Pending it is created as a pending status and not activated immediately (there are some reports).
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        admin Paul Phillips made changes -
        Description When adding a service as an admin and selecting the option "Append to Invoice", a 500 error occurs and the following error is written to the general.ERROR log:

        [2025-03-31T19:20:37.366649+00:00] general.ERROR: Uncaught Exception Error: "Attempt to assign property "country" on false" at /home/user/public_html/5110/app/models/invoices.php line 5959 {"exception":"[object] (Error(code: 0): Attempt to assign property \"country\" on false at /home/user/public_html/5110/app/models/invoices.php:5959)"}

        The invoice appears to be appended and the service appears to be created, even though this error and white screen of death occurs.

        Also, double check that if the service is set to Pending it is created as a pending status and not activated immediately (there are some reports).
        When adding a service as an admin and selecting the option "Append to Invoice", a 500 error occurs and the following error is written to the general.ERROR log:

        [2025-03-31T19:20:37.366649+00:00] general.ERROR: Uncaught Exception Error: "Attempt to assign property "country" on false" at /home/user/public_html/5110/app/models/invoices.php line 5959 {"exception":"[object] (Error(code: 0): Attempt to assign property \"country\" on false at /home/user/public_html/5110/app/models/invoices.php:5959)"}

        The invoice appears to be appended and the service appears to be created, even though this error and white screen of death occurs.

        Also, double check that if the service is set to Pending it is created as a pending status and not activated immediately (there are some reports). NOTE that the service is set as "Pending" but activated by cron. I believe part of the original error is causing the service ID to not be associated with the invoice.
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 1 hour, 21 minutes [ 4860 ]
        Worklog Id 17628 [ 17628 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]
        Assignee Abdy Franco [ abdy ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour, 21 minutes
              1h 21m

                Agile