Invoice pdf not attaching to email

Hey there

I’m running a self hosted instance, with local phantomjs and no client portal, and invoices aren’t being attached to the emails being sent out.

laravel-error.log has the following records:

[2022-01-25T11:07:58.276856+00:00] production.ERROR: PhantomJS - Invalid response http://[server_ip_address]/view/spibk3to6xqj0axowc4deepgouhtmkq9?phantomjs=true&phantomjs_secret=396TSSKPKUYfTxyhjUlf6gMVe3QC6arH:   {"context":"PHP","user_id":1,"account_id":1,"user_name":"first_name last_name","method":"PUT","user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0","locale":"en","ip":"[client_ip_address]","count":1,"is_console":"no","is_api":"no","db_server":"mysql","url":"invoices/312"} []

And the test.pjs script just prints a cholw bunch of gibberish, followed by unformatted html.

Don’t know what else to check beyond this point.

Hi,

Have you seen the info here:

https://invoice-ninja.readthedocs.io/en/latest/configure.html#troubleshooting

You may want to consider upgrading to v5, the PDF generation in v4 can be unreliable.