Server Error after Fresh install

Hoping to get some help… I just want my invoice ninja to work again!. This is on a fresh install.

Everytime I go to login to my site… I get " server error "

Server Error

I have looked in all the logs and they are not showing anything on the server side.

Operating System : Ubuntu 22.04
PHP 8.3
PHP8.3-fpm is running.

so i found this error in the laravel log

[2024-10-06 12:42:09] production.ERROR: Symfony\Component\Mailer\Transport\Dsn::__construct(): Argument #5 ($port) must be of type ?int, string given, called in                                                                             /usr/share/nginx/invoiceninja/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php on line 189 {"userId":1,"exception":"[object] (TypeError(code: 0): Sym                                                                            fony\\Component\\Mailer\\Transport\\Dsn::__construct(): Argument #5 ($port) must be of type ?int, string given, called in /usr/share/nginx/invoiceninja/vendor/la                                                                            ravel/framework/src/Illuminate/Mail/MailManager.php on line 189 at /usr/share/nginx/invoiceninja/vendor/symfony/mailer/Transport/Dsn.php:28)

In case someone else has this problem,

sudo nano .env

confirm the mail settings and the port is valid number.