Self hosted: Whoops, looks like something went wrong.

Hey,

I’m using a fresh installation of Invoice Ninja with the zip, on a subdomain.

The setup page loads fine, and the MySQL and mail tests are both success, however as soon as I click submit it says Whoops, looks like something went wrong - no errors underneath, literally just that.

I’ve checked my error log with that subscription and it’s showing an error 500:

500 POST /setup HTTP/1.0

Anyone know what’s going on?

Are there any details in storage/logs/laravel-error.log

I’ll paste the contents:

[2018-04-09 17:57:02] production.ERROR: ***Doctrine\DBAL\Driver\PDOException*** [1045] : /var/www/vhosts/colourandcode.net/billing.colourandcode.net/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php [Line 47] => SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"GET","url":"https://billing.colourandcode.net/setup","previous":"https://billing.colourandcode.net","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"92.16.117.13","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-04-09 17:57:02] production.ERROR: ***Doctrine\DBAL\Driver\PDOException*** [1045] : /var/www/vhosts/colourandcode.net/billing.colourandcode.net/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php [Line 47] => SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"GET","url":"https://billing.colourandcode.net/setup","previous":"https://billing.colourandcode.net","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"92.16.117.13","count":2,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-04-09 17:57:05] production.ERROR: ***Doctrine\DBAL\Driver\PDOException*** [1045] : /var/www/vhosts/colourandcode.net/billing.colourandcode.net/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php [Line 47] => SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://billing.colourandcode.net/setup","previous":"https://billing.colourandcode.net/setup","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"92.16.117.13","count":3,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-04-09 17:57:05] production.ERROR: ***Doctrine\DBAL\Driver\PDOException*** [1045] : /var/www/vhosts/colourandcode.net/billing.colourandcode.net/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php [Line 47] => SQLSTATE[HY000] [1045] Access denied for user 'ninja'@'localhost' (using password: YES)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://billing.colourandcode.net/setup","previous":"https://billing.colourandcode.net/setup","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"92.16.117.13","count":4,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-04-09 17:57:17] production.ERROR: ***Doctrine\DBAL\Driver\PDOException*** [1045] : /var/www/vhosts/colourandcode.net/billing.colourandcode.net/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php [Line 47] => SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://billing.colourandcode.net/setup","previous":"https://billing.colourandcode.net/setup","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"92.16.117.13","count":5,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-04-09 17:57:17] production.ERROR: ***Doctrine\DBAL\Driver\PDOException*** [1045] : /var/www/vhosts/colourandcode.net/billing.colourandcode.net/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php [Line 47] => SQLSTATE[HY000] [1045] Access denied for user 'billing'@'localhost' (using password: YES)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://billing.colourandcode.net/setup","previous":"https://billing.colourandcode.net/setup","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"92.16.117.13","count":6,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-04-09 17:57:21] production.ERROR: ***Doctrine\DBAL\Driver\PDOException*** [1045] : /var/www/vhosts/colourandcode.net/billing.colourandcode.net/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php [Line 47] => SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://billing.colourandcode.net/setup","previous":"https://billing.colourandcode.net/setup","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"92.16.117.13","count":7,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-04-09 17:58:03] production.ERROR: ***Doctrine\DBAL\Driver\PDOException*** [1045] : /var/www/vhosts/colourandcode.net/billing.colourandcode.net/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php [Line 47] => SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://billing.colourandcode.net/setup","previous":"https://billing.colourandcode.net/setup","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"92.16.117.13","count":8,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-04-09 17:58:19] production.ERROR: ***Doctrine\DBAL\Driver\PDOException*** [1045] : /var/www/vhosts/colourandcode.net/billing.colourandcode.net/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php [Line 47] => SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://billing.colourandcode.net/setup","previous":"https://billing.colourandcode.net/setup","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"92.16.117.13","count":9,"is_console":"no","is_api":"no","db_server":"mysql"} []
[2018-04-09 17:58:19] production.ERROR: ***ErrorException*** [0] : /var/www/vhosts/colourandcode.net/billing.colourandcode.net/vendor/symfony/process/PhpExecutableFinder.php [Line 65] => is_executable(): open_basedir restriction in effect. File(/opt/plesk/php/7.1/bin/php) is not within the allowed path(s): (/var/www/vhosts/colourandcode.net/:/tmp/)  {"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"POST","url":"https://billing.colourandcode.net/setup","previous":"https://billing.colourandcode.net/setup","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36","locale":"en","ip":"92.16.117.13","count":10,"is_console":"no","is_api":"no","db_server":"mysql"} []

Assuming your database credentials are now correct I think this is the relevant part.

is_executable(): open_basedir restriction in effect. File(/opt/plesk/php/7.1/bin/php) is not within the allowed path(s):

I’ve changed open_basedir in Plesk to None and that seems to have solved the issue!

Great to hear, thanks for letting us know!

I got the error on initial setup, and was advised that the “.env” file did not exist. There is a “.env.example” in the ninja folder, so I just copied that and renamed it - problem solved.