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/
    #0 /home/forge/ Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
    #1 [internal function]: Webkul\\Core\\Http\\Middleware\\CheckForMaintenanceMode->__construct()
    #2 /home/forge/ ReflectionClass->newInstanceArgs()
    #3 /home/forge/ Illuminate\\Container\\Container->build()
    #4 /home/forge/ Illuminate\\Container\\Container->resolve()
    #5 /home/forge/ Illuminate\\Foundation\\Application->resolve()
    #6 /home/forge/ Illuminate\\Container\\Container->make()
    #7 /home/forge/ Illuminate\\Foundation\\Application->make()
    #8 /home/forge/ Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
    #9 /home/forge/ Illuminate\\Pipeline\\Pipeline->then()
    #10 /home/forge/ Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
    #11 /home/forge/ 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

  • @Vaishali-Agarwal


    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.

    Screen Shot 2021-02-01 at 3.24.09 PM.png

    best regards

  • @Vaishali-Agarwal

    found solution

    php artisan key:generate

    php artisan config:clear

    php artian config:cache

    Thank you very much

    best regards

Log in to reply