Logo invisible in invoices (invoiceninja 5.11.36)

What type of hardware are you using: Other(?)
What YunoHost version are you running: YunoHost 12.0.11
What app is this about: Invoiceninja v5.11.36

Describe your issue

After updating invoiceninja some times ago the logo is no more viisble in my invoice form. Neither in preview, nor in generated PDF.

I read old discussions on this forum (like Company Logo not display within invoice - Self-Hosted | v5 - Support Forum) but found no solution there.

  • in /var/www/invoiceninja/storage/log/laravel.log i found no helpful entries.
  • in my .env
    PDF_GENERATOR=snappdf
    LOCAL_DOWNLOAD=true # did not solve the problem

Instead of the logo for…

<div class="header-container">
  <div class="company-logo-container">
    <img class="company-logo" src="$company.logo" alt="$company.name logo">
  </div>
  <div id="company-details"></div>
  <div id="company-address"></div>
</div>

…there is only the “alt”-Text visible in preview and PDF.

I had this problem one year ago, so I used a workaround to solve the problem and put

<td>
<img src="/var/www/invoiceninja5/public/storage/KJ074XDIRCgMrPAWGbI8PxuPy0E6ws6L/Logo.png" style="width: 90px; margin-right:1.8rem;">
</td>

in the footer section, at the place where the logo should be. This worked fine for last year, but this did not work anymore and the “normal” way with
<img class="company-logo" src="$company.logo" alt="$company.name logo">
also doesn’t work.

I would be thankful for any help!
Ralph

Share relevant logs or error messages

I didn’t find any hints in the log.

Check the browser console. It can be helpful. And check the file permissions

Hi jarod5001,
I went to a invoice (the page with the preview at the bottom) and checked the browser console. Much errors but I can’t recognize any context with my problem.
I also suspect a connection with incorrect file permissions, but I don’t know how the file permissions should be set “correctly”. Is there a list of the correct owners and file permissions somewhere?
In my case for /var/www/invoiceninja5 the file owner is invoiceninja5 and the group is www-data. the .env has rw only for the user .invoiceninja5. Which owner/rights should I check?

Thanks
Ralph

I don’t have the app installed, so I am only giving general instructions.
So, if you open the logo image in a new page (right click), what is its link? Do you have that file in the server?

I can’t get the url of the logo in the invoice preview because it is not visible and in page source no logo is addressed. I see the html-placeholder for a missing image.

If I am not the only user of YunoHost-Invoiceninja5 it could be helpfull for me if someone posts the file owners and permissions of /var/www/invoiceninja and including directories.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.