My application has always been working fine, but quite recently I started to receive Status 500 “Internal Server Error” responses from my API calls.
When I create a new quote and download the PDF there is no problem. But when I update the quote and redownload the PDF I get the above mentioned error message.
After this sequence the changes have been made on the portal.
However when we then download the quote’s pdf we get the following error as found in the “storage/logs”:
2022-05-19 05:54:17] production.ERROR: Trying to get property ‘contact’ of non-object {“userId”:1,“exception”:“[object] (ErrorException(code: 0): Trying to get property ‘contact’ of non-object at /var/www/invoice-ninja/app/Models/Client.php:752)
[stacktrace]