Symfony 自动加载跳课

发布于 2024-10-12 19:26:20 字数 369 浏览 6 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱人如己 2024-10-19 19:26:20

也许有点晚了,但我遇到了同样的问题,我添加将行尾从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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文