Trying to get property 'allowed_ips' of non-object
-
Hello
i have installed fresh bagisto 1.2.0
but this error came up
[2021-02-01 09:36:20] production.ERROR: Trying to get property 'allowed_ips' of non-object {"exception":"[object] (ErrorException(code: 0): Trying to get property 'allowed_ips' of non-object at /home/forge/matjar.app/packages/Webkul/Core/src/Http/Middleware/CheckForMaintenanceMode.php:59) [stacktrace] #0 /home/forge/matjar.app/packages/Webkul/Core/src/Http/Middleware/CheckForMaintenanceMode.php(59): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError() #1 [internal function]: Webkul\\Core\\Http\\Middleware\\CheckForMaintenanceMode->__construct() #2 /home/forge/matjar.app/vendor/laravel/framework/src/Illuminate/Container/Container.php(849): ReflectionClass->newInstanceArgs() #3 /home/forge/matjar.app/vendor/laravel/framework/src/Illuminate/Container/Container.php(691): Illuminate\\Container\\Container->build() #4 /home/forge/matjar.app/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(796): Illuminate\\Container\\Container->resolve() #5 /home/forge/matjar.app/vendor/laravel/framework/src/Illuminate/Container/Container.php(637): Illuminate\\Foundation\\Application->resolve() #6 /home/forge/matjar.app/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(781): Illuminate\\Container\\Container->make() #7 /home/forge/matjar.app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(156): Illuminate\\Foundation\\Application->make() #8 /home/forge/matjar.app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}() #9 /home/forge/matjar.app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(140): Illuminate\\Pipeline\\Pipeline->then() #10 /home/forge/matjar.app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(109): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter() #11 /home/forge/matjar.app/public/index.php(74): Illuminate\\Foundation\\Http\\Kernel->handle() #12 {main} "}
Best regards
-
@cmpengineers
it seems the migration is not done successfully.
Kindly run the below command again
php artisan bagisto:install -
Hello
you are right , but it give me another error
The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
best regards
-
found solution
php artisan key:generate
php artisan config:clear
php artian config:cache
Thank you very much
best regards
-
@cmpengineers
follow the solution mention here https://stackoverflow.com/questions/39693312/the-only-supported-ciphers-are-aes-128-cbc-and-aes-256-cbc-with-the-correct-key
I hope this will resolve the issue.