Website not working after the Sleeping time

“No application encryption key has been specified” Just as the title says, everything was fine untill the sleep time for free hosted domains. When I try to access to my website I saw an Error message, and when I checked the logs It says this “[2018-07-02 23:25:20] production.ERROR: No application encryption key has been specified. {“exception”:"[object] (RuntimeException(code: 0): No application encryption key has been specified. at /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:42)” I tried to do some changes, to the EncryptionServiceProvider.php file and then I could get into the login screen, but then this happens SQLSTATE[HY000] [2002] Connection refused.
Please any help would be nice.

What is your URL? :slight_smile:

Sorry! here https://rntest.000webhostapp.com/

Where do you see this error?
Sorry!

in the laravel.log file on storage/logs/laravel.logs
[2018-07-03 03:38:03] production.ERROR: No application encryption key has been specified. {“exception”:"[object] (RuntimeException(code: 0): No application encryption key has been specified. at /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:42)
[stacktrace]
#0 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Support/helpers.php(1041): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(NULL)
#1 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(46): tap(NULL, Object(Closure))
#2 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(24): Illuminate\Encryption\EncryptionServiceProvider->key(Array)
#3 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Container/Container.php(764): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#4 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Container/Container.php(646): Illuminate\Container\Container->build(Object(Closure))
#5 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Container/Container.php(601): Illuminate\Container\Container->resolve(‘encrypter’, Array)
#6 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(734): Illuminate\Container\Container->make(‘encrypter’, Array)
#7 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Container/Container.php(900): Illuminate\Foundation\Application->make(‘encrypter’)
#8 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Container/Container.php(828): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#9 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->resolveDependencies(Array)
#10 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Container/Container.php(646): Illuminate\Container\Container->build(‘App\\Http\\Middle…’)
#11 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Container/Container.php(601): Illuminate\Container\Container->resolve(‘App\\Http\\Middle…’, Array)
#12 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(734): Illuminate\Container\Container->make(‘App\\Http\\Middle…’, Array)
#13 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(215): Illuminate\Foundation\Application->make(‘App\\Http\\Middle…’)
#14 /storage/ssd2/487/3677487/ProAudiologist/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\Foundation\Http\Kernel->terminateMiddleware(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#15 /storage/ssd2/487/3677487/public_html/index.php(65): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#16 {main}

What happens if you move the .env outside public_html and configure it to read it from the new location?
Sorry.

1 Like

The problem is solved, the solution was to put all the info of the .env on the config.php!!
Sorry!