在安装“数据库导入”的步骤4之后显示此错误。我不明白为什么在Shopware-4的github存储库中没有引用文件“ sw4_clean.sql”,该位置在安装过程中应显示为丢失?
在每次尝试建立数据库之前,我都尝试编辑config.php。这是我的结果
数据库详细信息=内部服务器错误
如config.php.dist =内部服务器错误所示
空= config.php现在填充设置=内部服务器错误
我正在Windows 8 https://github.com/eriksixt/vagrant-shopware上使用Vagrant build
任何人都可以阐明可能出了什么问题吗?
错误
收到错误消息。
网址: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}"}
最佳答案
您检查了严格模式问题吗? Shopware不喜欢严格模式,在当前的mysql版本中默认启用该模式。就我而言,以下配置(取决于操作系统的my.cnf或my.ini)确实有所帮助:
[mysqld]
sql_mode="TRADITIONAL,NO_AUTO_CREATE_USER"