Some error i am facing on InvoiceNinja V5

1, Can`t email invoice to clients, even thought it shows SENT, but clients never received.

2, But we can check the invoice via $URL/client/invoices/ , can see invoices there, but pdf files 404 ERROR, which can show on our backend.

3, Can`t set Payment Gateway Fees like PayPal Fee, Once set and saved, it will be blank again automatically.

  1. Can you please confirm the email settings are correct in the .env file

  2. Maybe you need to add /public in the APP_URL

  3. Assuming I can replicate we’ll check in a fix in the next beta release

1, Yes. I installed both V4 and V5, use same email settings. It works charm in V4, but error on V5.

2, Did, nothing changed. Is there any other command i need to do after changing in .env file?

3, I can see the pdf invoice in my server, but Client Side shows 404 ERROR. Also the pdf won`t refresh when i edit the invoice. I have to delete the pdf invoice, then it can generate a new one. Is that the cache doing the trick? How to clean the cache.

4, And the logo on Client sides also 404, google chrome says it is

And there is $viewlink in the Email Generated Automatically

Thanks for screenshots! I’ve asked Dave and/or Ben to jump in to help.

For #2 it may help to run php artisan config:clear

Still Nothing Changed.

I am wondering, since it cant generate the $viewlink, is that possible cant gather the Client`s Emaill Address neither?

That is why Clients never receive it. And that is also failed on your v5 Demo.

For can`t show pdf invoice on Client Portal, is there any tools i missed or need to reinstall?

I shared this on Slack, here’s some info:

"This is most likely wrong Nginx rewrite configuration. I’ve just changed my app_url to be the wrong one (the one that does not exists) and it still displays the assets correctly.

4, And the logo on Client sides also 404, google chrome says it is
If paths are rewrited correctly url to images should be"

Hi hillel,

Logo problem solved!

Here is my Nginx config, could you kindly help me locate the problems?

server {

listen 443 ssl http2;

listen [::]:443 ssl http2;


root /home/user/invoiceninja/public;

index index.php index.html index.htm;

client_max_body_size 10M;

gzip on;

gzip_types      application/javascript application/x-javascript text/javascript text/plain application/xml application/json;

gzip_proxied    no-cache no-store private expired auth;

gzip_min_length 1000;


    ssl_certificate    /etc/ssl/;

    ssl_certificate_key    /etc/ssl/;

    ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;

    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;

    ssl_prefer_server_ciphers on;

    ssl_session_cache shared:SSL:10m;

    ssl_session_timeout 10m;

    error_page 497  https://$host$request_uri;

charset utf-8;

location / {

    try_files $uri $uri/ =404;


if (!-e $request_filename) {

    rewrite ^(.+)$ /index.php?q= last;


location ~ \.php$ {

fastcgi_split_path_info ^(.+\.php)(/.+)$;

include snippets/fastcgi-php.conf;

fastcgi_pass unix:/run/php/php7.3-fpm.sock;

#fastcgi_index index.php;

include fastcgi_params;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

fastcgi_intercept_errors off;

fastcgi_buffer_size 16k;

fastcgi_buffers 4 16k;


location ~ /\.ht {

    deny all;


location = /favicon.ico { access_log off; log_not_found off; }

location = /robots.txt { access_log off; log_not_found off; }

access_log /var/log/nginx/ninja.access.log;

error_log /var/log/nginx/ninja.error.log;

sendfile off;


server {

listen 80;


add_header Strict-Transport-Security max-age=2592000;

rewrite ^ https://$server_name$request_uri? permanent;


Sorry, I’m not sure.

You may want to test with the sample Nginx config provided here:

To fix this usually you just have to re-upload the logo file.