I have installed Ninja via Installatron in cpanel. I tried to upload the logo and there is a “success” message. But the image is not visible and im the pdf preview there is a broken image icon. On the same server with the same php plugins is a working installation. All required plugins are installed.
This is the laravel.log
[2021-07-22 07:31:47] production.INFO: the path https://..at/storage/qzTqpONrKAnnp7JsH3wGPB8biYM8cubPZnVCXppvLBGG4EjHlBFSJyobAEuYGciL/1wVZ4KtIPNgSwpzs2S6kCr7u4JpBXttM0Jqy5ZR7.png
Thanks for reporting this!
@david any thoughts?
Can you see the logo everywhere else in the application and is the issue only localized to the PDFs?
No, it isn’t displayed anywhere
Most likely your APP_URL / paths are not setup to provide the full URL to the resource.
Great, thank you. The problem is, that installatron installs the application and set only a forwarding rule to public. If you change the document root to the public folder it works.
Thank you very much
Can you please let me know which file you changed the document root in? Thanks.
I have changed the document root via rhe subdomain-section in cpanel. But you can also change the documenr root of the main domain this way How to change the document root for a cPanel account – cPanel
I’m running into the same issue. Getting a 403 error when trying to view the custom logo.
My .htaccess rewrite is set like below. Only difference from the stock module is the RewriteBase which Installatron adds. I will note that other folders that fall under the Rewrite rules, image for example (goes to public/images) work fine.
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /billing RewriteRule ^$ index.php [R=301,L] RewriteRule ^deleteme\.\w+\.php - [L] RewriteRule "^.env" - [F,L] RewriteRule ^(.well-known)($|/) - [L] # RewriteRule "^storage" - [F,L] RewriteRule ^(.*)$ public/$1 [L] </IfModule>
So a bit more info. If I use the following URL the image doesn’t work,
but if I use the following direct link it works.
So it makes me think the redirect from /billing/storage to /billing/public/storage is broken somehow. Works fine for images tho so what is special about storage that’s different from images?
Just figured this one out and it was stupid.
Not sure if this was part of the vanailla package for v5.4.11-c88 or something Installatron added but there was a .htaccess in /storage that said ‘deny all’. As soon as it was deleted, the logo started working.