I use version 5.5.63 and I have a problem with the company logo not being displayed on the tab where it can be uploaded neither on invoices (only broken image shows). Here are the steps to reproduce.
-
Upload company logo
In the InvoiceNinja’s menu navigate to Settings (at the bottom), click Company Details under Basic Settings. Then choose the logo tab and click the button “Upload logo”. Upload a PNG file. -
Logo is missing
After doing this there is no POST error message which means that the image was successfully uploaded and saved on the server. Still, the logo is not displayed afterwards. In the console there is an 403 error shown. -
Follow image file’s link
Following the link of the image file https://[DOMAIN_NAME].com/storage/fABNhFfQkiBuGURLEeqhqNxjCgCgnHgK/l8vAD2hnCcjtP3RRMk2SNh9XoOVJwCwZeMGuSZbB.png I receive an HTTP 403 error again. -
File name check
I just noticed a problem in the URL name. On the server the file is stored in /public/storage/… directory while the HTTP request looks for the file in /storage (without the /public directory first). If I add /public directory to the URL I can see the image: https://[DOMAIN_NAME].com/public/storage/fABNhFfQkiBuGURLEeqhqNxjCgCgnHgK/l8vAD2hnCcjtP3RRMk2SNh9XoOVJwCwZeMGuSZbB.png -
Possible solutions
Missing /public from View Link in Data Visualizations · Issue #3410 · invoiceninja/invoiceninja · GitHub Firstly, it is suggested to add /public to APP_URL in .env file. Secondly, it is suggested to add a rewrite rule the .htaccess. I tried both solutions but none of them worked.
Any help much appreciated.