Home Forums Support Invoice PDF attachments fail to send

This topic contains 2 replies, has 2 voices, and was last updated by  ninjainvoice4678 1 year ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #20729


    I have been researching this issue for a few days now without any luck. In summary, PDF attachments fail to attach in sent invoices. I am running a clean install of self-hosted Invoice Ninja and running local phantomjs on a Debian Stretch VM. I downloaded phantomjs via wget, extracted, copied to /usr/bin/phantomjs and chmod 775.

    The “Test” link in Email Settings loads for a while then fails with: Failed to load PDF document.

    I have tried troubleshooting steps here: https://invoice-ninja.readthedocs.io/en/latest/configure.html#phantomjs

    Here is the output of “phantomjs test.pjs” (just where the error occurs): https://pastebin.com/dKjYrc2v

    Here is my laravel-error.log: https://pastebin.com/bkWEQUkE

    Here is my .env config: https://pastebin.com/fJgXRhYX

    OS: Debian Stretch 9.9.0 (ESXi virtual machine)
    Invoice Ninja: 4.5.12
    PhantomJS: 2.1.1

    Any suggestions are appreciated.


    Hillel Coren


    Thanks for the suggestions. The error from the first link is different from what what I’m seeing in laravel-error. I have:

    [2019-05-16 23:55:17] production.ERROR: TypeError: Attempting to change value of a readonly property. {“context”:”JavaScript”,”user_id”:0,”account_id”:0,”user_name”:””,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1″,”locale”:”en”,”ip”:”″,”count”:1,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”log_error”} []

    I am not using HTTPS so the suggestions in the second link were of no luck.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Posted in: