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: In Review
    • 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

        There are no comments yet on this issue.

          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:

              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