Cakephp 1.2 页面在任何表单提交时都会变白
我有一个本地的 cakephp 1.2 应用程序,昨晚运行良好。目前,当我提交任何表单时,结果页面会变成白色/空白。
这是我尝试过的:
- 清除浏览器缓存
- 在 core.php 中注释掉我的内存缓存
- 将调试打开到 2,其中我收到一些警告(总是有 它们),但没有错误,并且 sql 调试内容
- 清理了模型缓存并在 tmp 文件夹中持久化,
- 也将安全性从中到低设置了
任何想法会有帮助吗?
I have a local cakephp 1.2 app which was working fine last night. Currently when I submit any form, the resulting page goes white/blank.
This is what I have tried:
- Cleared browser cache
- Commented out my memcache in core.php
- Turn debug on to 2, in which I get a couple of warnings (always had
them), but no errors and the sql debug stuff - Cleaned out cache of models and persistence in tmp folder
- also played with setting security from medium to low
Any ideas would be helpful?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
开发时应将调试模式保持为 2。这很有帮助。
有哪些警告?如果代码正确,就不应该有任何警告。我不认为这是浏览器或缓存的问题。你的控制器方法中有什么?您还可以在任何地方执行 $this->log($variable,'logfile') 进行调试。输出将在 tmp/log 中
也许你应该升级到 1.3,我不确定我的所有建议是否适用于 1.2
You should keep that debug mode at 2 while developing. That helps a lot.
What are the warnings? If the code is correct, there shouldn't be any warnings. I don't think it's a problem with browser or cache. What's in your controller method? You can also do a $this->log($variable,'logfile') anywhere to debug. The output will be in tmp/log
Maybe you should upgrade to 1.3, I'm not sure if all my advises would work with 1.2