Symfony 自动加载跳课
我有一个 symfony 1.4 项目,已经使用了好几年了。据我所知,在过去的几周里,自动加载已经开始随意逃课。这种情况发生在 lib/ 目录中的插件和文件中。
如果我重命名该类,问题就解决了。我搜索了一下,整个项目中没有其他同名的类。课堂上也没有错误。其中许多课程已经两年没有编辑过,所以实际上课程中没有任何变化。
当我清除缓存时,下一个页面加载时会忽略某些类。同一目录中文件中的类被拾取没有问题。
不管怎样,拼命想弄清楚到底发生了什么。我在 symfony 的错误日志、apache 或任何其他服务器日志中都找不到错误。但是,我确信这种情况的发生有一些合乎逻辑的原因。
另外,刚刚注意到,自动加载可以在普通页面上运行,只有通过 SSL 传递的页面才会中断。
I have a symfony 1.4 project that has been is use for several years now. In the past few weeks the autoload has started skipping classes, arbitrarily as far as I can tell. This occurs in both plugins and files located in the lib/ directory.
If I rename the class the problem is solved. I've searched and there are no other classes of the same name in the entire project. There are also no errors in the classes. Many of these classes have not been edited in 2 years so literally nothing is changing in the classes.
When I clear the cache, some class is ignored on the next page load. classes in files in the same directory are picked up no problem.
Anyway, trying desperately to figure out what is going on. I can't find an error in symfony's error logs nor in apache or any other server log. But, I'm sure there is some logical reason why this is happening.
Also, just noticed, the autoload works on normal pages, it's only pages delivered over SSL that break.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许有点晚了,但我遇到了同样的问题,我添加将行尾从unix转换为windows
Maybe a bit late, but i had the same problem and i add to convert the end of line from unix to windows