The invoice PDFs generated for the customer are corrupted. Customers are unable to open the invoice attached nor are they able to open the online version of the PDF in the customer portal. However the PDF on the live invoice screen is not corrupted.
I’m running the v4.1.4 with PHP7.
The last lines from storage/logs/laravel-error:
[2018-02-01 11:30:04] production.ERROR: ***ErrorException*** [0] : /var/www/html/app/Ninja/Repositories/InvoiceRepository.php [Line 1220] => Trying to get property of non-object {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"GET","url":"https://myhost","previous":"https://myhost","user_agent":"","ip":"127.0.0.1","count":1,"is_console":"yes","is_api":"no","db_server":"mysql"} []
[2018-02-01 11:47:59] production.ERROR: ***ErrorException*** [0] : /var/www/html/bootstrap/cache/compiled.php [Line 13563] => The MAC is invalid. (View: /var/www/html/resources/views/invoices/view.blade.php) {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"GET","url":"https://myhost/view/nennbnh5gm8l20bxuxguruuvcmmecsj4","previous":"https://myhost/client/invoices","user_agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0","ip":"77.163.6.86","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-02-01 11:51:56] production.ERROR: ***ErrorException*** [0] : /var/www/html/bootstrap/cache/compiled.php [Line 13563] => The MAC is invalid. (View: /var/www/html/resources/views/invoices/view.blade.php) {"context":"PHP","user_id":1,"account_id":1,"user_name":"Sjoerd Blom","method":"GET","url":"https://myhost/view/nennbnh5gm8l20bxuxguruuvcmmecsj4","previous":"https://myhost/client/invoices","user_agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0","ip":"77.163.6.86","count":2,"is_console":"no","is_api":"no","db_server":"mysql"} []