I am testing a newly installed self-hosted system (v5.3.67-C77) on Ubuntu/PHP 7.4.3/Apache and am running into the following error when clicking the “View” link on both quotes and invoices from the Client portal:
# Call to a member function exists() on null (View: /invoiceninja/resources/views/portal/ninja2020/components/entity-documents.blade.php) (View: /invoiceninja/resources/views/portal/ninja2020/components/entity-documents.blade.php)
I am able to download the PDF versions of the documents without any issues. storage/logs/invoiceninja.log and Apache logs yield nothing.
I’m facing the same issue with the latest version (v5.3.75-L77) as of today after docker down, pull and up from the previous version (first time self-hosted install, whitelabeled).
Also took care of cache via docker exec -ti dockerfiles-app-1 php artisan optimize.
Error persists. Any chance I can debug this further?
The laravel.log shows an exception occurring during
The back-end also shows v5.3.75-L77 on the info tab.
I’ve also deleted the locally cached image, pulled it again (my docker-compose.yml is vanilla with regard to the invoiceninja service and should pull the latest v5 anyway), no change.
Any other idea? Thank you for looking into this.
EDIT: I’ve manually changed the code in the generated view for now, it fixes the problem. I’m afraid to be using an old code-base though.
I’m also rather confused. It does look like a clean install will be my best option. I’m new to invoiceninja and don’t know the sources enough to trust just overwriting the framework files from source to catch all inconsistencies.
I’ll wait for the next update and observe what’s happening in the container, maybe comparing ctimes and changes to the framework files before taking this approach.
My.install is standard apart from supervisor and MySQL backup configuration.