Hi
Softaculous did an update on my self hosted version of Ninja Invoices from version 1.7. Ever since when I click ‘Email Invoice’ I get brought to a page with ‘Whoops, something went wrong’ . I can confirm that the emails get sent.
Will
Hi
Softaculous did an update on my self hosted version of Ninja Invoices from version 1.7. Ever since when I click ‘Email Invoice’ I get brought to a page with ‘Whoops, something went wrong’ . I can confirm that the emails get sent.
Will
Hi Will,
Can you check the error logs in storage/logs/laravel.log for more details.
Thanks,
Hillel
Hi
Thanks for the fast reply. I checked prior to posting and there are no error logs for June in the log.
Will
Can you also check your Apache error log?
Thanks
Also, it’s worth noting that with Laravel 5 the error log was moved from:
app/storage/logs/laravel.log
To:
storage/logs/laravel.log
The old log may still be there.
We received an email from another user with a similar problem. Please check that your mail settings are correct in your .env settings file.
Hi
That .env file is actually publicly accessible. I just entered in the path into chrome and it opened detailing passwords etc. There are no mail details in it just:
MAIL_DRIVER=smtp
MAIL_PORT=587
MAIL_ENCRYPTION=tls
MAIL_HOST=localhost
MAIL_USERNAME=
MAIL_FROM_NAME=
MAIL_PASSWORD=
Will
Filling out the details here sorted the problem, thanks!
I changed permissions of the .env file to 400 is that sufficient??
Will
We’ll need to follow up with Softaculous to correct it.
Until the new Softaculous installer is released you can add the following .htaccess file in the root folder of the project.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule "^.env" - [F,L]
</IfModule>
Thanks a million for your help!
Supported by Invoice Ninja and Event Schedule