duanchi19820419 2016-09-07 13:52
浏览 29

PHP symfony www.one.com主持[复制]

I have a working symfony project on my linux computer.

I'm trying to set it up with hosting www.one.com

I wrote a .htaccess file but I'm getting the following error:

Fatal error: Cannot declare interface Symfony\Component\DependencyInjection\ContainerAwareInterface, because the name is already in use in /customers/x/x/x/xxxxxxxxxx.be/httpd.www/var/cache/dev/classes.php on line 6397 

Can anyone help me in the write direction?

ps:

I followed the guide http://trac.symfony-project.org/wiki/InstallingSymfonyOnOne but it does not seems to be working.

</div>
  • 写回答

1条回答 默认 最新

  • douyi0219 2016-09-07 13:55
    关注

    A guide which you are following is about Symfony 1.x, interface you mention is from Symfony 2 so you have a mismatch here. Try to follow this guide (and remember that Symfony 1.x and 2.x/3.x has nothing in common).

    And just a guess: try to clear the cache on your new machine:

    app/console cache:clear --env=prod

    评论

报告相同问题?

悬赏问题

  • ¥15 关于大棚监测的pcb板设计
  • ¥20 sim800c模块 at指令及平台
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计