安装“数据库导入”的第4步后显示此错误。我无法理解为什么引用文件“sw4_clean.sql”不在Shopware-4的github repo中,显示它应该在安装期间显示为缺失?
我尝试在每次尝试建立数据库之前编辑config.php。这是我的结果 with database details =内部服务器错误 如config.php.dist =内部服务器错误中所示 empty = config.php现在填充设置=内部服务器错误
我在Windows 8 https://github.com/eriksixt/vagrant-shopware
上使用Vagrant构建任何人都可以了解可能出现的问题吗?
错误 收到错误消息。 URL:importDatabase?offset = 0& totalCount = 0 消息:内部服务器错误
请尝试修复此错误并重新启动更新。 响应
{"code":2,"message":"fopen(\/vagrant\/shopware-
4\/install\/src\/..\/assets\/sql\/sw4_clean.sql)
: failed to open stream: No such file or directory",
"file":"\/vagrant\/shopware-
\/install\/src\/lib\/Shopware_Components_Dump.php",
"line":36,"trace":"#0 [internal function]: Slim\\Slim::handleErrors(2,
'fopen(\/vagrant\/...', '\/vagrant\/shopwa...', 36, Array)
\n#1 \/vagrant\/shopware-4\/install\/src\/lib\/Shopware_Components_Dump.php(36):
fopen('\/vagrant\/shopwa...', 'rb')\n#2 \/vagrant\/shopware-
4\/install\/src\/app.php(318): Shopware_Components_Dump-
>__construct('\/vagrant\/shopwa...')\n#3 [internal function]:
{closure}()\n#4 \/vagrant\/shopware-4\/engine\/Library\/Slim\/
Router.php(172): call_user_func_array(Object(Closure), Array)\n#5
\/vagrant\/shopware-4\/engine\/Library\/Slim\/Slim.php(1225): Slim\\Router-
>dispatch(Object(Slim\\Route))\n#6 \/vagrant\/shopware-
4\/engine\/Library\/Slim\/Middleware\/Flash.php(86): Slim\\Slim->call()\n#7
\/vagrant\/shopware-4\/engine\/Library\/Slim\/Middleware\/MethodOverride.php(94):
Slim\\Middleware\\Flash->call()\n#8 \/vagrant\/shopware-
4\/engine\/Library\/Slim\/Middleware\/PrettyExceptions.php(67):
Slim\\Middleware\\MethodOverride->call()\n#9 \/vagrant\/shopware-
4\/engine\/Library\/Slim\/Slim.php(1176): Slim\\Middleware\\PrettyExceptions-
>call()\n#10 \/vagrant\/shopware-4\/install\/index.php(59): Slim\\Slim->run()\n#11 {main}"}
答案 0 :(得分:0)
您是否检查过严格模式问题? Shopware不喜欢严格模式,默认情况下在当前的mysql版本中启用。在我的情况下,以下配置(my.cnf或my.ini依赖于操作系统)确实有帮助:
[mysqld]
sql_mode="TRADITIONAL,NO_AUTO_CREATE_USER"
答案 1 :(得分:0)
好像你正试图在Shopware的git checkout上使用安装程序。这是不可能的。安装程序所需的某些文件,例如“sw4_clean.sql”是在构建安装包时在部署步骤中生成的。
要使用git checkout安装Shopware,请参阅:https://github.com/shopware/shopware#installation-via-git