V5.11.40 error in laravel.log

Good evening Hillel,

i have found a problem in my ininja.
The error message is:
[2025-02-16 18:06:13] production.ERROR: Symfony\Component\Mailer\Transport\Dsn::__construct(): Argument #5 ($port) must be of type ?int, string given, called in /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php on line 200 {“userId”:1,“exception”:"[object] (TypeError(code: 0): Symfony\Component\Mailer\Transport\Dsn::__construct(): Argument #5 ($port) must be of type ?int, string given, called in /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php on line 200 at /var/www/invoiceninja/vendor/symfony/mailer/Transport/Dsn.php:28)

This is a new selfhosted environment and i cant see the logo in the invoice.
I cant create new users or manage my user to update the index.
Do you have any sugestions?
Best regards Dieter

Hi,

Can you check if the mail port in the .env file has quotes around it?

Hi Hillel, thank you fore your response.

Thats the code:
MAIL_DRIVER=smtp
MAIL_PORT=“”
MAIL_ENCRYPTION=“”
MAIL_HOST=“”
MAIL_USERNAME=“”
MAIL_FROM_NAME=“”
MAIL_FROM_ADDRESS=“”
MAIL_PASSWORD=“”

Try changing:

MAIL_PORT=“”

To

MAIL_PORT=0

it seems, this error message is gone.
Thank you !
What do i have make wrong, that i cant create new Users?

If you configure the mail settings an email will be sent to the user for them to login.

Alternatively, you can set the mail driver to log and get the link from storage/logs.

To configure the mail is a step for later, first i have to setup invoice design and all the things to write invoices.
Do you have any hint how to display the logo into the invoice?
I have read all messeges in the v5 Selfhost but until now i havnt luck with this.

I suggest checking the network tab in the browser console to look for the failed logo request. It may help to add /public to the end of the APP_URL and then re-upload the logo.

Hi Hillel,
ive testet all your hints, and evrithin in the Forum, but nothing works.
No information in the log (larvalel.log and Nginx with debug mode) also after set the .env to debug there is no information about the missing logo. The file format is an png file with roundn about 35kb and 1281x272 Pixel.
Couldnt find a way to make it display/printing.

Until manny tries and poking arround there is a change.
I have deletet and reapplyed the logo to the application and now i get the errormessage:
“In ComponentTagCompiler.php line 316: Unable to locate a class or view for component [laravel-exceptions-renderer::card].” within the process “sudo -u www-data php artisan optimize”
and in /var/www/invoiceninja/storage/logs/laravel.log
[2025-02-17 15:19:08] production.ERROR: Unable to locate a class or view for component [laravel-exceptions-renderer::card]. {“exception”:"[object] (InvalidArgumentException(code:
0): Unable to locate a class or view for component [laravel-exceptions-renderer::card]. at /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/View/Compilers/ComponentTagCompiler.php:316)

do you have any hint to that?

It may help to upload the logo using the desktop app.

hmm, i cant connect a mobile device to this machine.
It is not the production environment.

Are you able to try with the desktop app?

no, i do not use apple or windows, so i setup a new machine, thank you.