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.