Http 500 error. Please help

Did it mean that i need to generate a new key?

Can you generate a new key?

1 Like

Solved!
( I think )

http://june30test.000webhostapp.com

Alright boom!

I opened database.php from config and inserted

‘options’ => [PDO::ATTR_EMULATE_PREPARES => true, PDO::MYSQL_ATTR_COMPRESS => true,]

1 Like

Amazing!!! I will insert the line and try to run again.
Where do you get the code?

https://laracasts.com/discuss/channels/laravel/whoops-looks-like-something-went-wrong-12

1 Like

putenv is disabled on 000webhost so is causing issues with env file

1 Like

Hi @Infinity
Now the error is this

I checked the password, username, and db name. It should be okay but no… what would another option you’d suggest to fix this error?

Insert this after your database info

‘options’ => [PDO::ATTR_EMULATE_PREPARES => true, PDO::MYSQL_ATTR_COMPRESS => true,]

Just after

1 Like

Hi, how to fix this,

I checked the db and user name in .env, no spaces in between the required name. everything should be ok. but this error, how to fix

Hi all!

Everything appears to load fine now… :slight_smile: Could you please confirm?

like this? did this, the problem is the same

1 Like

You had to change forge to your actual values, I have done it for you.

1 Like

Amazing! Thank you so much @Infinity. Appreciate a lot!