CakePHP显示错误 [英] CakePHP Display Error

查看:236
本文介绍了CakePHP显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的最后一篇文章可在这里找到,

My last post can be found here,

CakePHP问题:调用非对象上的成员函数find()

我问一个新问题,因为回答我最后一个问题的人说,我现在得到的错误是一个新问题,因此一个新的职位。

I am asking a new question, as the people who answered my last question, said that the error I am getting now is a new problem, therefore a new post.

请阅读我的最后一篇文章,如果你希望我重新发布我的所有代码在这个职位,我会这样做,只是问!

Please read my last post, if any of you wish me to re-post all my code on this post I will do so, just ask!

是的,是的,一旦我删除vars $使用从我的代码,它工作在我放在同一个服务器的蛋糕的新副本。但是它只是绕过我的命令,当我在我的活网站上使用它!现在我知道(或者至少认为)这必须是与这个副本配置的方式有关。

So my problem is that, yes once I do remove the vars $uses from my code, it works in the NEW copy of cake I have put on the same server. However it just bypasses my die command when I use it on my live site! Now I know (or at lest think) this must be something to do with the way this copy of cake was configured.

此外,在新的蛋糕拷贝中,我没有在routes.php文件中添加一个路由器路径。然而在现场网站,它只会给我一个404错误,当尝试访问控制器。现在有了新的蛋糕,我调用函数索引(),但在现场我命名为eventDetails(),现在我已经尝试更改为索引(),但我仍然得到一个404错误,当路由器路径不存在,并发生相同的内部错误发生,见最后一篇文章。

Also, in the NEW copy of cake I did not have to add a 'Router' path in the routes.php file for it to work. However on the live site, it will just give me a 404 error when trying to access the controller. Now with the NEW copy of cake, I called the function index(), but in the live site I named it eventDetails(), now I have tried changing this to index(), but I still get a 404 error when the router path is not there and the same 'Internal Error Has Occurred', see last post.

任何想法?

再次欢迎任何帮助。

Glenn Curtis。

Glenn Curtis.

推荐答案

感谢您的帮助Dunhamzz。

Thanks For your help Dunhamzz.

但我已经解决了这个问题。我知道这是与我的设置和设置这个蛋糕网站的家伙设置调试级别为0的事情。而新的蛋糕复制设置为2。

But I have solved the issue. I knew it was something to do with my set-up and the guy who set-up this cake site set the debug level to 0. While the new copy of cake had it set to 2.

感谢

Glenn。

这篇关于CakePHP显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆