I’m new to Invoice Ninja, and having difficulty with uploading logo and having it show both in dashboard and in the invoice preview. I have read several posts and followed instructions on similar problems, however, have not been able to resolve. How do i run php artisan, is that within a container?
When I upload the logo.png file the page reports success, however, I am unable to click save button top right-hand corner (using either firefox or brave). After upload, the window is blank however, has delete logo or upload logo buttons. If press on delete, “successfully delete logo” message appears. (see screen shot)
Container List
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ecab946d1d7e nginx “/docker-entrypoint.…” 3 minutes ago Up 3 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp dockerfiles_server_1
c063f632a906 invoiceninja/invoiceninja:5 “docker-entrypoint s…” 3 minutes ago Up 3 minutes 9000/tcp dockerfiles_app_1
24337c0d3750 mysql:5 “docker-entrypoint.s…” 3 minutes ago Up 3 minutes 33060/tcp, 0.0.0.0:3305->3306/tcp, :::3305->3306/tcp dockerfiles_db_1
Installed iputils-ping within container dockerfiles_server_1 (nginx image)
pinged in.localhost (APP_URL)
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.023 ms
sudo docker network ls
NETWORK ID NAME DRIVER SCOPE
9bb5b3e229c9 bridge bridge local
458edbbffdd5 dockerfiles_invoiceninja bridge local
d2bb540af450 host host local
f316b9ffbca0 none null local
Installed graphical on Ubuntu Server (VM), launched web browser, and same problem exists.
Question, is there anyway to hardcode the company logo just as a workaround for now?
Have installed android app, connected to server, and performed the same process of uploading logo file.
However, this time, distinct differences, but resulted in same issue.
Upon uploading image using android app, a small icon (invoice ninja icon) place holder appears in the window and I am able to press save in the top right hand corner.
I then create a mock invoice and review via the PDF tab, however, the company logo is not present, rather it is an icon place holder for a broken image (see attached image file .
this broken image icon is visible through the web dashboard invoice preview too.
would changing the domain within the .env file to, for example, ‘localhost.test’ , be worth trying?
I’ve read different things on this particular matter, however, nothing is conclusive.
how to capture specific function (such as elements to do with logo) and output that to a log ;
is there any docker/php/nginx specific bug-bears ; and
can this issue be related to pdf handing? (PhantomJS or snappdf)
Also,
I thought I would check if logo is present in client portal (i’m not going to use this feature, Just basic record keeping though invoice creation hence why in docker/self hosted within a VM)
and the browser gets connection refused.
If DNS wasn’t working I wouldn’t be able to access the dashboard, I would of thought?
Furthermore, when pinging (as per several posts up) the domain name resolves the the IP.
I’m accessing the dashboard locally on the host via web browser.
The APP_URL=http://in.localhost.test:8003 is the culprit
So, I removed the port 8003, and now able to navigate to the company logo URL and it now appears normal within the dashboard and on the invoice.
I used Brave browser inspect feature, and removed the port number, then made neccessary adjustments in the env, along with running artisan commannd.