2013-06-23 62 views
0

我正尝试使用Web安装程序将灯具加载到我的Sylius安装中。它工作正常,如果我不检查负载灯具框,但如果它被选中,我得到这个页面:在Sylius安装期间尝试加载灯具时出错

http://localhost/app_dev.php/installer/flow/sylius_installer/setup/forward 

,并得到一个错误。我有2个不同版本的fzaninotto/faker

随着composer.json "fzaninotto/faker": "1.1.*",尝试了,我得到:

Unknown formatter "randomFloat" 

随着composer.json "fzaninotto/faker": "dev-master",,我得到:

Warning: array_keys() expects parameter 1 to be array, object given in {webroot}\vendor\fzaninotto\faker\src\Faker\Provider\Base.php line 127 

我有也尝试在命令提示符下运行安装程序,但我得到了一个不同的错误:

php app/console sylius:install --fixtures 

[RuntimeException] 
The "--fixtures" option does not exist. 

我可能有错误的命令,但这是我在几个地方看到它的方式。

任何建议,将不胜感激。

+0

我终于得到它安装发布了我在这里所做的:http://stackoverflow.com/questions/17458978/how-do-i-install-sylius-on-bluehost-or-any-other-server-that-has-an-old-version –

回答

1

您可以运行:

php app/console sylius:install

安装程序将恳请您如果要加载装置。

关于错误,您是否安装了供应商或更新? 这可能是新版本的faker有BC休息。

+0

在执行安装时,我得到: PHP致命错误:在供应商\ symfony \ assetic-bundle中找不到类'Assetic \ Util \ PathUtils' \ Symfony \ Bundle \ AsseticBundle \ Command \ Dum第216行的pCommand.php。我将再次尝试使用版本2.3.x的资产,但上次给了我不同的错误。 –

+0

我得到了未知格式“randomFloat”错误再次 –

+0

IDK我做了什么给搞砸了,但我又重新下载它,并使用上述命令在命令行安装了它,它似乎工作 –

0

这个小数组转换固定的东西对我来说,因为我认为这是传递一个ArrayObject的或“ArrayCollection的”

$keys = array_keys((array)$array); 

也许不是合适的解决方案,但...

+0

这里的代码似乎是使用更新版本faker的更好方法https://github.com/Sylius/Sylius/pull/216 –