Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error page showing only the whoops thing even if the debugger is on #17026

Closed
siempay opened this issue Dec 28, 2016 · 5 comments
Closed

Error page showing only the whoops thing even if the debugger is on #17026

siempay opened this issue Dec 28, 2016 · 5 comments

Comments

@siempay
Copy link

siempay commented Dec 28, 2016

  • Laravel Version: 5.2
  • PHP Version:5.6.25
  • Database Driver & Version: mysql 5.7.14

Description:

the error shows up randomly and sometimes on ajax requests returning 500, when i use the dev tools of chrome to see the error, it gives me only the whoops but after I used tail -f storage/logs/laravel.log
I got this
[2016-12-28 14:54:04] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in D:\shop\tess\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php:45 Stack trace: #0 D:\shop\tess\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php(25): Illuminate\Encryption\EncryptionServiceProvider->getEncrypterForKeyAndCipher(NULL, 'AES-256-CBC') #1 D:\shop\tess\vendor\laravel\framework\src\Illuminate\Container\Container.php(731): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)

Steps To Reproduce:

Why am I seeing this errors ? and how to escape from it for ever

@GrahamCampbell
Copy link
Member

Please set an encryption key.

@siempay
Copy link
Author

siempay commented Dec 28, 2016

the app is working fine and I did key:generate once; but still seeing that error from time to time

@sisve
Copy link
Contributor

sisve commented Dec 28, 2016

@siempay I would guess that you have no run "php artisan config:cache". That's required in some scenarios; the default Apache configuration on Windows is one of those scenarios.

@siempay
Copy link
Author

siempay commented Dec 29, 2016

@sisve thanks man! Do I have to run it from time to time ? Can you explain me more what are these scenarios please

@sisve
Copy link
Contributor

sisve commented Dec 29, 2016

@siempay Always do it during deploys. Always do it when you have one process executing several php requests. (Apache on Windows does this per default.)

This is one of those public secrets; it's known but not clearly documented.

vlucas/phpdotenv#76 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants