Base64 logo not loading in PDF

Version ie v5.12.25

Environment Shared Hosting

Checklist

  • Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja? No
  • Have you searched existing issues? Yes
  • Have you inspected the logs in storage/logs/laravel.log for any errors? Yes

Describe the bug

The logo in the invoice PDFs shows a broken image icon. Other images added into the invoice (example: external url to an image in the footer) work just fine.

I have made sure:

  • the website runs on SSL
  • tried different types and sizes of logo images
  • i cleared the cache (via shell)
  • checked that the logo file is present in storage/app/public/
  • the logo load directly in the browser
  • the symlink is set from public/storage to storage/app/public/

I’m on a shared hosting cPanel account.

I run out of ideas and was wondering if anyone can help with this?

Hi,

It may help to add LOCAL_DOWNLOAD=true to the .env file.

Yes!!! Thanks @hillel, this did the trick. I did what you suggested, plus cleared the cache afterwards, and now it’s working. This is much appreciated :slight_smile:

Glad to hear it, thanks for the update!