Client portal/email not loading

When PDF is sent to client the format is messed up and client can’t view or download the invoice. Company logo wont load on invoices. This start happening with out any changes. Changes were made to try solve the problem.

Things I do to try solve the problem:
Update to PHP 8.1.
Update from 5.4 to 5.5 latest today.

This is what client get in email:


@david do you have any suggestions?

I’d suggest viewing the browser console, most likely resources are not loading due to a bad APP_URL path configuration

Hi, Thanks for the reply. This start happening with out any changes made.

The app URL had never change but I’m available to change anything to solve this.

The only problem is that. I can create, edit, view and do anything as normal.

I send the invoice and client portal and email is messed up for the client.

I do notice today that web portal is not loading.

Still having the same problem. I have read a lot of people with the same problem. Reporting it may be a Proxy SSL error. If anyone want to help me resolve this problem I will pay for the fix. Thanks

@david do you have any ideas?

I think the browser console shows the error here, perhaps the APP_URL is not configured correctly, so 404.


There are issues with your rewrite i think,

landing on

automatically rewrites to

Hi I manage to edit the .htaccess and now it open using:
that resolve in Invoice Ninja

Attached the Browser console now.

Client portal looks working again.

It let me upload my logo but still not showing in the PDF.

If I try to update the app so it may fix something I get:
FormatException: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

It may help to increase the server PHP memory limit

Thanks to all for the time and support.

To fix the logo it may help to add LOCAL_DOWNLOAD=true to the .env file.

To update you can either increase the PHP memory limit or manually copy over the latest release.

I just increase the PHP Memory and It updates clean now. Im now running v5.6.5

I generated a new Quote and logo show right away. It did not update logo for already generated PDF.

I will post my .htacces modification for anyone having this same problems.

Here is the .htaccess that is working for me:

Options -MultiViews RewriteEngine On # Redirect Trailing Slashes… RewriteRule ^(.)/$ /$1 [L,R=301] # Handle Front Controller… RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] # php - Laravel get request headers - Stack Overflow RewriteCond %{HTTP:Authorization} . RewriteRule . - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # In case of running InvoiceNinja in a Subdomain like, # you have to enable the following line: # RewriteBase / # php – BEGIN cPanel-generated handler, do not edit # Set the “ea-php81” package as the default “PHP” programming language. AddHandler application/x-httpd-ea-php81___lsphp .php .php8 .phtml # php – END cPanel-generated handler, do not edit

Adding LOCAL_DOWNLOAD=true to the end of the .env did solved the old generated PDF with out the logo. Thanks

Glad to hear it, thanks for the update!