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

Lumen undefined index key #198

Closed
j3rrey opened this issue Jun 25, 2019 · 2 comments
Closed

Lumen undefined index key #198

j3rrey opened this issue Jun 25, 2019 · 2 comments

Comments

@j3rrey
Copy link

j3rrey commented Jun 25, 2019

Lumen 5.8
Just installed your package but I get:


(2/2) ErrorExceptionUndefined index: key (View: /app/vendor/rap2hpoutre/laravel-log-viewer/src/views/log.blade.php)
--
in EncryptionServiceProvider.php line 42
at CompilerEngine->handleViewException(object(ErrorException), 0)in PhpEngine.php line 45
at PhpEngine->evaluatePath(


(1/2) ErrorExceptionUndefined index: key
--
in EncryptionServiceProvider.php line 42
at Application->Laravel\Lumen\Concerns\{closure}(8, 'Undefined index: key', '/app/vendor/illuminate/encryption/EncryptionServiceProvider.php', 42, array('config' => array('aliases' => array('ReportRepository' => '\\App\\Repositories\\RawReportRepository', 'App' => 'Illuminate\\Support\\Facades\\App', 'Auth' => 'Illuminate\\Support\\Facades\\Auth', 'Bus' => 'Illuminate\\Support\\Facades\\Bus', 'DB' => 'Illuminate\\Support\\Facades\\DB', 'Cache' => 'Illuminate\\Support\\Facades\\Cache', 'Cookie' => 'Illuminate\\Support\\Facades\\Cookie', 'Crypt' => 'Illuminate\\Support\\Facades\\Crypt', 'Event' => 'Illuminate\\Support\\Facades\\Event', 'Hash' => 'Illuminate\\Support\\Facades\\Hash', 'Log' => 'Illuminate\\Support\\Facades\\Log', 'Mail' => 'Illuminate\\Support\\Facades\\Mail', 'Queue' => 'Illuminate\\Support\\Facades\\Queue', 'Request' => 'Illuminate\\Support\\Facades\\Request', 'Schema' => 'Illuminate\\Support\\Facades\\Schema', 'Session' => 'Illuminate\\Support\\Facades\\Session', 'Storage' => 'Illuminate\\Support\\Facades\\Storage', 'Eloquent' => 'Illuminate\\Database\\Eloquent\\Model'))))in EncryptionServiceProvider.php line 42



@jsoltani
Copy link

jsoltani commented Jul 16, 2019

you have to add key into config file to fixed this error
'key' => '32 characters',
'cipher' => env('APP_CIPHER','AES-256-CBC'),

@rap2hpoutre
Copy link
Owner

@j3rrey see @jsoltani answer. Also: #185 & #164

Thank you @jsoltani !!

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