Version ie <v5.11.74>
Environment
Today I created and sent an invoice and system was working. I then went to complete another invoice and got error 500: Internal Server Error • Server Error. I get this error if I try to save , send, download or view PDF. I didn’t make any system changes between invoices. (I can’t remember if an update was done.
I tried adding
ELASTICSEARCH_ENABLED=false
to .env but still no change
laravel.log
[2025-05-12 06:52:02] production.ERROR: Elastic\Elasticsearch\ClientBuilder::setBasicAuthentication(): Argument #1 ($username) must be of type string, null given, called in /usr/share/nginx/invoiceninja/vendor/elasticsearch/elasticsearch/src/ClientBuilder.php on line 168 {“userId”:1,“exception”:"[object] (TypeError(code: 0): Elastic\Elasticsearch\ClientBuilder::setBasicAuthentication(): Argument #1 ($username) must be of type string, null given, called in /usr/share/nginx/invoiceninja/vendor/elasticsearch/elasticsearch/src/ClientBuilder.php on line 168 at /usr/share/nginx/invoiceninja/vendor/elasticsearch/elasticsearch/src/ClientBuilder.php:242)