eckmar-community / eckmar

Open-source marketplace on Laravel (PHP). Also known as the Eckmar's Marketplace Script.
103 stars 61 forks source link

No application encryption key has been specified #94

Open pacino01 opened 10 months ago

pacino01 commented 10 months ago

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

Someone know how to fix it?

image

knulii commented 10 months ago

try php artisan key:generate

pacino01 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

All artisan command return me this error: image

image image

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

pacino01 commented 10 months ago

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 commented 10 months ago

try php artisan key:generate

Some other ideas?

pacino01 commented 10 months ago

@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 commented 10 months ago

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