(Self-hosting) - Appears to be trying to use local PhantomJS not Phantomjscloud

(Self-hosting) - Appears to be trying to use local PhantomJS instead of Phantomjscloud - in the env file:

I have “Attach PDF” switched on in email settings as well as “Password Protect Invoices”

.env has:


But I get:

[2020-01-05 23:16:56] production.ERROR: PhantomJS - Invalid response http://www.ioensis.com/invoices/public/view/t3jsudwti2wsgjuq2q3kfqzogt0oimej?phantomjs=true&phantomjs_secret=4k5beutdu95usqf3bt8i3rzfhl7wdb9d: 403 Forbidden 403 Forbidden Access to this resource on the server is denied! {“context”:“PHP”,“user_id”:1,“account_id”:“1”,“user_name”:“System Administrator”,“method”:“PUT”,“user_agent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15”,“locale”:“en”,“ip”:“”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“invoices/3”} []

This looks to me like its trying to access a local server resource and not finding it. I see nothing that says it is contactig phantomjscloud.

I am very new to invoice ninja and not at all expert in web hosting / php etc. Any help would be much appreciated.

It should tell you on Settings > Email Settings which version is being used

See this screenshot:


I don’t see how it indicates whether it is local or cloud? Also, when I do Test, I get a blank page and the same error in the log.

Thanks, the app is configured to use PhantomJS cloud.

The info here may help: https://invoice-ninja.readthedocs.io/en/latest/configure.html#troubleshooting

I’ve looked at the troubleshooting tips and nothing helps. Unfortunately, most of them I can’t try because I am on a shared hosting and I don’t have command line access.

I don’t really understand where the 403 error is coming from. As I understand it, the url is sent to phantomjscloud and so phantomjs accesses the invoice in a similar way to the client portal. Is the 403 error coming from that access attempt or is it coming from the application trying to access phantomjscloud?

I believe the 403 is from PhantomJS Cloud failing to load the Invoice Ninja invoice URL

Hi, I have a similar issue. I geoblock my install and therefor I get a 403. If I remove the geoblock, all is fine. On the v4 install I don’t get a 403 error. What is the difference in v5?

And does that mean my invoice data is sent to phantomjs cloud?

So, as the chromium approach seems to be the new one, I have set phantomjs to false and used


(of course after installing chromium)

Is this how it should be set up?

EDIT: Could this also be used with v4?