douyiken0968 2013-06-23 10:22
浏览 74
已采纳

在Sylius安装期间尝试加载灯具时出错

I'm trying to use the web installer to load fixtures into my Sylius installation. It works fine if I don't check the load fixtures box but if it is checked, I get to this page:

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

and get an error. I have tried it with 2 different versions of fzaninotto/faker

With "fzaninotto/faker": "1.1.*", in composer.json, I get:

Unknown formatter "randomFloat"

With "fzaninotto/faker": "dev-master", in composer.json, I get:

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

I have also tried running the installer in command prompt but I get a different error:

php app/console sylius:install --fixtures

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

I probably have that command wrong but that is how I have seen it in a couple of places.

Any suggestions would be appreciated.

  • 写回答

2条回答 默认 最新

  • douzhong5902 2013-06-23 14:37
    关注

    You can run:

    php app/console sylius:install

    Installer will kindly ask you if you want to load fixtures.

    Regarding error, did you installed vendors or updates? It may be that new version of faker have BC break.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 汇编语言除法溢出问题
  • ¥65 C++实现删除N个数据列表共有的元素
  • ¥15 Visual Studio问题
  • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗