Shopware安装错误:标识符DB尚未初始化 [英] Shopware installation error: Identifier DB not initialized yet

查看:119
本文介绍了Shopware安装错误:标识符DB尚未初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装向导完成后,出现此错误.

After installation wizard is finished I get this error.

Slim应用程序错误 该应用程序由于以下错误而无法运行:

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

详细信息

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.

推荐答案

在文件recovery/install/src/ContainerProvider.php中 添加2个字符串:

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

  1. 在使用部分

use Shopware\Recovery\Update\Utils;

2.

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

            return $conn;
        };

这篇关于Shopware安装错误:标识符DB尚未初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆