Are there any errors in the browser console?
here what i see
2gtJhI6ysSDcQuvA5eJZomXiAsqIXJ1P1rK1YK7xn.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/in5.ghf.loc/client/invoice/TgUZpUn6Ya4YK60LLCicscxXrW7AgpQKB5LrIql2aZsVpWHMitj1BNlnmMgLIWiN/download:1 Failed to load resource: the server responded with a status of 404 (Not Found)
main.dart.js?v=5.0.35:4350 GET: https://in5.ghf.loc/api/v1/invoices/4y1aKrReQG/delivery_note?
/in5.ghf.loc/client/invoice/TgUZpUn6Ya4YK60LLCicscxXrW7AgpQKB5LrIql2aZsVpWHMitj1BNlnmMgLIWiN/download:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/api/v1/invoices/4y1aKrReQG/delivery_note?&per_page=999999:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Have you tried re-uploading the logo on Settings > Company Details > Logo
@hillel i tried multiple times but didnât work at all.
I found these lines in the laravel.log
[2020-12-15 21:49:13] production.INFO: the path in5.ghf.loc//storage/1w7yqbxctnznmz98dbqfz4impkxldkf5/pxvYGoRKmK7TnaiKPk85we6IDoGkjylu7U78jJ0X.png
this is realted to the errors i see in the console, however this folder / file doesnât exist under /var/www/html/ninja/storage
Iâm not sure, I canât reproduce the problem.
Maybe itâs related to permissions?
@hillel, permissions are 755 on the ninja installation folder and on the storage as well.
What is the specs for the logo again ??
Any image file should work
any resolution / size limitations ?
Also where is the exact location where the logo should be saved ?
There are no limits
I believe itâs stored in public/storage
i removed the folder for the icons in public/storage, added the logo again (same logo i am using with v4) the folder got created successfully in public/storage with the new upload and still not showing
Did you upload the logo through the app?
i did through the web, not the application.
Ok, by âwebâ I assume you mean the web app vs the mobile app.
When there is no logo there should only be an upload logo button, after uploading the logo are you then seeing a delete logo button?
After uploading the logo the app should try to download the image. It would be helpful if you could use the browser console to check why the request is failing.
yes i mean the web app (url, not the chrome application). I initially had only upload option, and after i upload the logo, i have the option delete.
I have deleted the logo again from the application and from the publich/storage folder, and added back, once i added it try to reload and i get the following errors in the console
rPpeh27vKjPg4qweWxCM4X454aZJHWseLazji9QL.png:1 GET https://in5.ghf.loc/in5.ghf.loc//storage/1w7yqbxctnznmz98dbqfz4impkxldkf5/rPpeh27vKjPg4qweWxCM4X454aZJHWseLazji9QL.png 404 (Not Found)
rPpeh27vKjPg4qweWxCM4X454aZJHWseLazji9QL.png:1 GET https://in5.ghf.loc/in5.ghf.loc//storage/1w7yqbxctnznmz98dbqfz4impkxldkf5/rPpeh27vKjPg4qweWxCM4X454aZJHWseLazji9QL.png 404 (Not Found)
when i check the public/storage folder the file is there.
what i note from the url listed above in the error there is a duplicate in the path
https://in5.ghf.loc/in5.ghf.loc//storage ?? where do you think i should look at this in the configurations ?
When i try to access the png file without the duplicate in the url i am able to see the file on my browser.
Finally got it fixed, error was on the APP_URL value in the .env file, it was set without the http:// and there was a / at the end.
Just curious is this by design, i cannot access the system settings, where i can set the DB / SMTP / URL settings in the gui like version 4.
I can update the .env for these settings for sure, but wondering if this is a change in the design or I have something wrong.
In v5 you need to manually edit the .env file
@hillel Thanks for the clarification.
@david and @hillel not sure who would be best to help me with my next issue. PDF is giving me an error (500: Internal Server Error)
I can find the following in my laravel log file:
2020-12-17 16:23:18] production.ERROR: The file â/var/www/html/ninja5/public/storage/lgqdp1x6uz93wrfc8f6tnyhvxcyogxjt/g8UM5fU1PMIDDoj3VB0w6ppHVDam5MpwywSXnMzN/invoices/INV-2019-33.pdfâ does not exist {âexceptionâ:"[object] (Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException(code: 0): The file â/var/www/html/ninja5/public/storage/lgqdp1x6uz93wrfc8f6tnyhvxcyogxjt/g8UM5fU1PMIDDoj3VB0w6ppHVDam5MpwywSXnMzN/invoices/INV-2019-33.pdfâ does not exist at /var/www/html/ninja5/vendor/symfony/http-foundation/File/File.php:36)
[stacktrace]
Node v: v14.15.1
NPM v: 6.14.8
Also i have installed all support packages for xcp
Turned Off Phantom JS in the .env file.
@gerootech can you confirm the directory exists and is writable by the webuser from /public/storage
if it is writable, can you check this directory exists.
/var/www/html/ninja5/public/storage/lgqdp1x6uz93wrfc8f6tnyhvxcyogxjt/g8UM5fU1PMIDDoj3VB0w6ppHVDam5MpwywSXnMzN/
i donât see this folder, i donât know now, i am getting the following error:
failed to load pdf document, and i donât see any errors in any logs.