I’m hosting a local invoice ninja(4.2.0) with a local phantomjs, and I found this topic discussing the issue with sending emails with a local phantomjs. If i follow the provided solutions, IN reports an internal server error, if I remove the additions to the CurlUtils.php, the email sends but without the email attached.
I’m at a loss as to how sort this out.
It would appear they removed the 2.1.3 binary, as it’s not even showing up on their download page anymore. @Hillel, might want to remove the link to that thread in the documentation for now, since the link I had is pointing to nowhere at the moment.
The PhantomJS Cloud version might be the way to go for now. I’ll have to build and test the 2.1.1 source to see if that works any better than what’s in apt, but not sure when I’ll be able to get around to that.
Alternatively, you could try the precompiled 2.1.1 binary available at http://phantomjs.org/download.html, but make sure you have Fontconfig installed as well. The process would be the same as I described for 2.1.3, except having to extract the file from the archive first (it will be in phantomjs-2.1.1-linux-x86_64/bin or phantomjs-2.1.1-linux-i686/bin once extracted).
I think the problem may be related to how the app is hosted. I see the URL is https://192.168.178.101, if the app isn’t publicly available phantomjscloud won’t work as it can’t reach it.
Not sure though why phantomjs isn’t working when it’s running locally, you may want to see if disabling HTTPS helps.
Reaching the IN installation with plain http results in a 404 page(nginx). Unless you mean disable https in some other sense, in which case, I’m not familiar with the option.