Shopware installation error: Identifier DB not initialized yet

一个人想着一个人 提交于 2020-05-29 10:29:26

问题


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.


回答1:


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

  1. In use-section

use Shopware\Recovery\Update\Utils;

2.

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

            return $conn;
        };


来源:https://stackoverflow.com/questions/45637033/shopware-installation-error-identifier-db-not-initialized-yet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!