Invoives not generating pdf

Good Day Invoice Ninja Comunity

For some reason. I am getting this screen when trying to view the invoice. I can’t download the invoice and clients can’t see the invoice as well. It’s like the pdf is corrupt after the invoice or quote is created:

image

env settings:
NINJA_ENVIRONMENT=“selfhost”
#options - snappdf / phantom / hosted_ninja
PDF_GENERATOR=hosted_ninja
UPDATE_SECRET=secret

My Logs show:

[2021-11-13 17:18:21] production.INFO: —(commented out)/public/index.php/tmp_pdf/imaAwASRUzt0mALOEccpM4SAwSi0RZfa
[2021-11-13 17:18:35] production.INFO: —(commented out)/public/index.php/tmp_pdf/boQXjunyiqOmSQtGHcJE8QCqlW9eSeKu
[2021-11-13 17:18:41] production.INFO: —(commented out)/public/index.php/tmp_pdf/a5xwRtFADrRHhWM6UAmIxYoggZh4V2n3
[2021-11-13 17:18:45] production.INFO: —(commented out)/public/index.php/tmp_pdf/fojDvrWt1eadiPyYV1HOi4WPH4pqkcyM
[2021-11-13 17:19:27] production.INFO: —(commented out)/public/index.php/tmp_pdf/EJzjLKfxzFQsTOJCVb3iGghFfWSVHwLX
[2021-11-13 17:19:52] production.INFO: —(commented out)/public/phantom/invoice/wgXYRkM2pL2OAJt4aSOiY4JRBmSAAF1zva05QrCbm4B66aCvFG0exVRb7fs80HPK?phantomjs_secret=
[2021-11-13 17:21:19] production.INFO: —(commented out)/public/index.php/tmp_pdf/IQQw7aO1kYxuvLmPySGrxNN0BnZvcWyq
[2021-11-13 17:21:27] production.INFO: —(commented out)/public/phantom/invoice/wgXYRkM2pL2OAJt4aSOiY4JRBmSAAF1zva05QrCbm4B66aCvFG0exVRb7fs80HPK?phantomjs_secret=
[2021-11-13 17:21:32] production.INFO: —(commented out)/public/phantom/invoice/B00nP7N5t8Dje3rYtQWFTSuywl59rXx28r118ri46Ez1lu2ampIXuvjjJTa35I80?phantomjs_secret=
[2021-11-13 17:21:36] production.INFO: —(commented out)/public/phantom/invoice/Jwrvf1P7C2IPZlQLXVXwb8YPjYGX5NtrpnuckmAphHxdxvVA6frYt8pZLwSS4CFu?phantomjs_secret=
[2021-11-14 15:38:29] production.INFO: —(commented out)/public/phantom/quote/hlqFCukmiklxSI4kmpi6xSW1ZDh5Yib6afTnIn424yFQQCSzUeKLk0SZqedzWXRd?phantomjs_secret=
[2021-11-15 12:56:37] production.INFO: —(commented out)/public/index.php/tmp_pdf/Zto4jz2UUhup0ypTa3QXJ2iObx6VAADk
[2021-11-15 12:56:47] production.INFO: —(commented out)/public/index.php/tmp_pdf/MCfID9ycm77YzHpZXdIlhYmQPfBqqHlf
[2021-11-15 12:58:09] production.INFO: —(commented out)/public/index.php/tmp_pdf/VB74pAoeMBoqxWP3SEChEt3Je1JOiRZ4
[2021-11-15 12:58:18] production.INFO: —(commented out)/public/index.php/tmp_pdf/GlAwS44R5PuzpbnPnwYx9GZL8gibqJoJ
[2021-11-15 12:58:28] production.INFO: —(commented out)/public/index.php/tmp_pdf/Zv7yslnXjAsFQeSC8uLTDWVKgUj0T9MS
[2021-11-15 12:58:31] production.INFO: —(commented out)/public/phantom/invoice/6Lmi4DyeOmPWHvfic9KvN72QKa9z9mv2kS9oHkIdxSP9Yad75jWqQskoLpEoRxBX?phantomjs_secret=
[2021-11-15 12:59:11] production.INFO: —(commented out)/public/phantom/invoice/6Lmi4DyeOmPWHvfic9KvN72QKa9z9mv2kS9oHkIdxSP9Yad75jWqQskoLpEoRxBX?phantomjs_secret=
[2021-11-15 13:03:43] production.INFO: —(commented out)/public/phantom/invoice/6Lmi4DyeOmPWHvfic9KvN72QKa9z9mv2kS9oHkIdxSP9Yad75jWqQskoLpEoRxBX?phantomjs_secret=
[2021-11-15 13:03:55] production.INFO: —(commented out)/public/index.php/tmp_pdf/IFaETyQM0rQ0Bvynj1l1X4hPCjxQd9IY
[2021-11-15 13:04:37] production.INFO: —(commented out)/public/phantom/invoice/6Lmi4DyeOmPWHvfic9KvN72QKa9z9mv2kS9oHkIdxSP9Yad75jWqQskoLpEoRxBX?phantomjs_secret=
[2021-11-15 13:06:23] production.INFO: —(commented out)/public/index.php/tmp_pdf/dwB4wU3oFVLxF9AUO01aPVgxOiwZMbWI
[2021-11-15 13:06:26] production.INFO: —(commented out)/public/phantom/invoice/6Lmi4DyeOmPWHvfic9KvN72QKa9z9mv2kS9oHkIdxSP9Yad75jWqQskoLpEoRxBX?phantomjs_secret=
[2021-11-15 13:09:53] production.INFO: latest version = 5.3.31
[2021-11-15 13:10:11] production.INFO: —(commented out)/public/index.php/tmp_pdf/tF8JXg0lQFsGZ05uJouaYtfbxK4czhNe
[2021-11-15 13:10:21] production.INFO: —(commented out)/public/phantom/invoice/6Lmi4DyeOmPWHvfic9KvN72QKa9z9mv2kS9oHkIdxSP9Yad75jWqQskoLpEoRxBX?phantomjs_secret=
phantomjs_secret=

So for now…
I have had to change the PHP8.0 to PHP7.3 to get the old V4 working to download invoices to continue working but when i change back to PHP8.0 and try to make invoices or email from V5, it shows this error and doesn’t allow to view pdf or email. PHP7.3 is now end of life and I need urgent help please.

Hi,

Was it working and then stopped working or was it never working?

The latest v4 app now supports PHP 7.4.

It was working perfectly and then we had an issue changing from PhantomJS to Invoice Ninja (pdf generation). The PhantomJS wants to charge be view and we already bought Invoice Ninja License. We went with invoice ninja and now, it’s giving this error when trying to view or send invoice or quote.

@david any thoughts to debug?

Is there any chance you are using Cloudlinux? I find Cloudlinux “ALT” variation of PHP is incompatible with Invoice Ninja.

Also have you updated your .env file by going to Yourdomain.com/public/update?secret=secret.

1 Like

Version 4’s pdfs are also no longer working or seem corrupt. The mails go off okay but when it gets to the client, they can’t open the actual invoice or quote (pdf).

hosting provider not using CloudLinux. The installation just defaults using phantom no matter what I change in the env. going to try a new installation on a new domain now as nothing is working on this installation anymore.