No preview of invoice in invoice design

I have just installed a self-hosted installation of v4.5.1

When I go to “Settings >> Advanced Setting >> Invoice Design”
the preview selection is just a grey box

When I change the “Invoice Design” setting, the grey box
very briefly says “Powered by Invoice Ninja - v4.5.1 | White label”
and then it switches back to the grey box.

Environment

  • PHP 7.2.8
  • CentOS release 6.10 (Final)
  • WHM/CPanel Hosting v70.0.54
  • Installed via git / composer / artisan

Everything else seems to be functioning correctly (but it is still early
in my setup)

Hmm… I’m not sure.

  • Does the PDF show correctly elsewhere, ie when creating an invoice

  • Are there any details in the browser’s error console

  • You may want to try adding a blank company to see if it’s related to specific company settings

– Does the PDF show correctly elsewhere, ie when creating an invoice

sorry, have not get that far yet, thought I should try and design the invoice first

– Are there any details in the browser’s error console

No, not even if I put the system setting in debug

– You may want to try adding a blank company to see if it’s related to specific company settings

do you mean create a new database/installation ?
I don’t see an option to add another company to this installation

To be clear, I’m referring to the browser dev tools not the application error log.

You can add a new company by clicking your name in the top right.

yes, I am referring to the browser’s “console” too

> You can add a new company by clicking your name in the top right.
thanks, I setup a test company
same problem … just a grey box

Are there any other problems in the app? Maybe try adding ?clear_cache=true to the URL.

If you want to create an invoice and email the ‘view in portal’ link to contact@invoiceninja.com I can try to debug it.

something is really not right here

I went to create a an invoice in the test company
and if just wen to a “blank” page with the URL
https://accounts.XXXXXX.com/invoices/create

Are there any errors in the web server error log?

errors ? … yes, it seams there a few

# cat public/error_log
[26-Jul-2018 10:47:56 UTC] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 454656 bytes) in /home/XXXXXX/accounts.XXXXXX.com/storage/framework/views/6fb59cc2998dc64c8928a71c3d245ddfffc939a4.php on line 546
[26-Jul-2018 10:48:09 UTC] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 454656 bytes) in /home/XXXXXX/accounts.XXXXXX.com/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesLayouts.php on line 93
[27-Jul-2018 05:47:42 UTC] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 102400 bytes) in /home/XXXXXX/accounts.XXXXXX.com/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 73
[27-Jul-2018 06:00:02 UTC] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) in /home/XXXXXX/accounts.XXXXXX.com/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php on line 188
[27-Jul-2018 06:00:43 UTC] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) in /home/XXXXXX/accounts.XXXXXX.com/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php on line 188

adding “?clear_cache=true” to the invoice/create gave me output of
##parent-placeholder-1a954628a960aaef81d7b2d4521929579f3541e6##
but nothing usful

Thanks!

Try increasing the PHP memory limit.

increased memory_limit from 32M to 128M

Can now see the /invoices/create URL, but still no preview

What do you see after using ?clear_cache=true

> What do you see after using ?clear_cache=true

the exact same thing … a grey box where the preview should be

Is there some tool that can verify if everything installed correctly ?

If you want to email a client portal link I can try to help debug it.

Not that I’m aware of.

email to where ?

contact@invoiceninja.com

Thanks for the link!

I can see the PDF in the client portal, is it grey for you there as well?

Which browser are you using?

The PDF is perfect for me both from within Invoice Ninja and through the portal
but both present as a grey box on screen (in the browser HTML)

My browser is Firefox Quantum 61.0 (64 bit)

Are you saying that you could see the preview ?

Yes, I can see the PDF in the portal.

Maybe see if using Chrome helps.

just tried a quick browser update to 61.0.1
but it’s that same issue for me