Company logo is not displayed

Hello everyone,
as the title already suggests, i have problems with the company logo. When I upload a logo, it doesn’t displayed under company details / logo. Also PDFs do not show a logo, only “(Company name) logo” is displayed as text.
My Invoiceninja v5 is installed via docker-compose on a VPS and is behind an nginx proxy. No error message is displayed and there is nothing in the logs either.
Thanks In Advance

Hi,

It may help to set LOCAL_DOWNLOAD=true in the .env file

https://invoiceninja.github.io/docs/env-variables/

Do you see any errors in the browser console?

I have already activated LOCAL_DOWNLOAD=true.

I was using chrome and got an error message:

main.foss.dart.js?v=5.3.92:300 Mixed Content: The page at ‘https://my.domain.de/#/’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://X.X.X.X/storage/IxVQ1cm8AjxFMpipX5NGbsaYX0peSrWV/DGJwFgNq6aeteAjOE7IPgBCea3MaOf0hrFbhks01.png’. This request has been blocked; the content must be served over HTTPS.

I don’t know exactly what that means.

Can you check that the APP_URL value in the .env file is using HTTPS

1 Like

My APP_URL was on http, when I changed it to https it still didn’t work. I’ve just tested a few things and it crashed. Here is my Docker-compose file, maybe I already have an error there.

services:
server:
image: nginx:latest
restart: always
environment:
- APP_URL=http://192.168.100.252
volumes:
- ./config/nginx/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro
- ./public:/var/www/app/public:rw,delegated
- ./storage:/var/www/app/storage:rw,delegated
depends_on:
- app
ports:
- “10080:80”
networks:
- invoiceninja

app:
image: invoiceninja/invoiceninja:latest
restart: always
environment:
- APP_URL=http://192.168.100.252
- APP_KEY=base64:XXX
- MULTI_DB_ENABLED=false
- DB_HOST1=db
- DB_USERNAME1=invoiceninja
- DB_PASSWORD1=invoiceninja
- DB_DATABASE1=invoiceninja
- PHANTOMJS_PDF_GENERATION=false
- PDF_GENERATOR=snappdf
- IN_USER_EMAIL=admin@mydomain.de
- IN_PASSWORD=invoiceninja
volumes:
- ./public:/var/www/app/public:rw,delegated
- ./storage:/var/www/app/storage:rw,delegated
depends_on:
- db
networks:
- invoiceninja

db:
image: mysql:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=invoiceninja
- MYSQL_USER=invoiceninja
- MYSQL_PASSWORD=invoiceninja
- MYSQL_DATABASE=invoiceninja
volumes:
- mysql-data:/var/lib/mysql:rw
networks:
- invoiceninja

volumes:
mysql-data:
public:
storage:

networks:
invoiceninja:

Are you seeing a different error?

@david any thoughts?

Finally i fixed it!

There was the error, I used the internal IP address as APP_URL and it could no longer be resolved. I feel a little stupid xD
After I wrote APP_URL=https://mydomain.de everything worked.

Thanks for the tip, that’s how I found the solution.

Oh my gosh, you saved my day.
Like all the assets weren’t loaded, no invoice, no css at the clientportal etc.
In the env file i missed the httpS.

Thank you!

1 Like