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

No application encryption key has been specified #94

Open
pacino01 opened this issue Dec 18, 2023 · 8 comments
Open

No application encryption key has been specified #94

pacino01 opened this issue Dec 18, 2023 · 8 comments

Comments

@pacino01
Copy link

pacino01 commented Dec 18, 2023

I made some changes for the coins in the .env and .env.example

Someone know how to fix it?

image

@knulii
Copy link
Contributor

knulii commented Dec 18, 2023

try
php artisan key:generate

@pacino01
Copy link
Author

try php artisan key:generate

root@Database:/var/www/eckmar# php artisan key:generate
PHP Parse error: Unclosed '{' on line 12 in /var/www/eckmar/app/Console/Kernel.php on line 45

@ffeel31
Copy link

ffeel31 commented Dec 19, 2023

I made some changes for the coins in the .env

Someone know how to fix it?

image

run this commands :
php artisan key:generate

php artisan config:cache
php artisan cache:clear
php artisan view:clear

that should fix the issue after you must have set permissions to folders

@pacino01
Copy link
Author

All artisan command return me this error:
image

image
image

I dont see a failure in the Kernel.php , someone see a failure?

@pacino01
Copy link
Author

I made some changes for the coins in the .env
Someone know how to fix it?
image

run this commands : php artisan key:generate

php artisan config:cache php artisan cache:clear php artisan view:clear

that should fix the issue after you must have set permissions to folders

If I run artisan commands my server returns me a error

@pacino01
Copy link
Author

try php artisan key:generate

Some other ideas?

@pacino01
Copy link
Author

pacino01 commented Dec 24, 2023

@knulii I replaced the typo fix of Kernel.php of Knulli

root@Database:/var/www/eckmar# php artisan key:generate
PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Re turn type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\Return TypeWillChange] attribute should be used to temporarily suppress the notice in / var/www/eckmar/vendor/laravel/framework/src/Illuminate/Support/Collection.php:19 11
Stack trace:
#0 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Support/Collection.ph p(42): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/eckmar/vendor/composer/ClassLoader.php(576): include('...')
#2 /var/www/eckmar/vendor/composer/ClassLoader.php(427): Composer\Autoload{clos ure}()
#3 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Support/helpers.php(4 22): Composer\Autoload\ClassLoader->loadClass()
#4 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/PackageMan ifest.php(80): collect()
#5 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/ RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#6 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/Applicatio n.php(211): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap()
#7 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/Console/Ke rnel.php(297): Illuminate\Foundation\Application->bootstrapWith()
#8 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/Console/Ke rnel.php(120): Illuminate\Foundation\Console\Kernel->bootstrap()
#9 /var/www/eckmar/artisan(35): Illuminate\Foundation\Console\Kernel->handle()
#10 {main} in /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Support/Co llection.php on line 42
PHP Fatal error: Uncaught ErrorException: Method ReflectionParameter::getClass( ) is deprecated in /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Conta iner/Container.php:838
Stack trace:
#0 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Container/Container.p hp(838): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Container/Container.p hp(806): Illuminate\Container\Container->resolveDependencies()
#2 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Container/Container.p hp(658): Illuminate\Container\Container->build()
#3 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Container/Container.p hp(609): Illuminate\Container\Container->resolve()
#4 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/Applicatio n.php(759): Illuminate\Container\Container->make()
#5 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Container/Container.p hp(264): Illuminate\Foundation\Application->make()
#6 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Container/Container.p hp(776): Illuminate\Container\Container->Illuminate\Container{closure}()
#7 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Container/Container.p hp(658): Illuminate\Container\Container->build()
#8 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Container/Container.p hp(609): Illuminate\Container\Container->resolve()
#9 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/Applicatio n.php(759): Illuminate\Container\Container->make()
#10 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap /HandleExceptions.php(159): Illuminate\Foundation\Application->make()
#11 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap /HandleExceptions.php(101): Illuminate\Foundation\Bootstrap\HandleExceptions->ge tExceptionHandler()
#12 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap /HandleExceptions.php(87): Illuminate\Foundation\Bootstrap\HandleExceptions->ren derForConsole()
#13 /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap /HandleExceptions.php(123): Illuminate\Foundation\Bootstrap\HandleExceptions->ha ndleException()
#14 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handl eShutdown()
#15 {main}
thrown in /var/www/eckmar/vendor/laravel/framework/src/Illuminate/Container/Co ntainer.php on line 838

@knulii
Copy link
Contributor

knulii commented Dec 24, 2023

What php version do you have installed? Make sure you are using php 7.2 and larvel 5.7.

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