Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shopware installation error: Identifier DB not initialized yet

After installation wizard is finished I get this error.

Slim Application Error The application could not run because of the following error:

Details

Type: RuntimeException
Message: Identifier DB not initialized yet
File: /.../recovery/install/src/ContainerProvider.php
Line: 162

Is there is some configuration file where I can set DB params? I had insert all params via installation wizard.

like image 609
Stevan Tosic Avatar asked Aug 11 '17 13:08

Stevan Tosic


1 Answers

In file recovery/install/src/ContainerProvider.php Add 2 strings:

  1. In use-section

use Shopware\Recovery\Update\Utils;

2.Inside the register-function:

$container['db'] = function ($c) {
            $conn = Utils::getConnection(SW_PATH);

            return $conn;
        };
like image 68
Nikita Avatar answered Nov 14 '22 06:11

Nikita