CakePHP ErrorHandler错误 [英] CakePHP ErrorHandler error

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

问题描述

我将cakePhp应用程序更改为其他服务器,当我在浏览器中打开应用程序时,设置了500错误.

I changue the cakePhp aplication to other server, and when I open the aplication in a browser set me a 500 error.

这在日志文件中

[Sun Feb 14 13:21:03.163058 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Warning:  include(/var/www/html/orangescrum/lib/Cake/Error/ErrorHandler.php): failed to open stream: No such file or directory in /var/www/html/scrum/lib/Cake/Core/App.php on line 545
[Sun Feb 14 13:21:03.163643 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Warning:  include(): Failed opening '/var/www/html/orangescrum/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/scrum/lib/Cake/Core/App.php on line 545
[Sun Feb 14 13:21:03.164255 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Warning:  set_error_handler() expects the argument (ErrorHandler::handleError) to be a valid callback in /var/www/html/scrum/lib/Cake/Core/Configure.php on line 441
[Sun Feb 14 13:21:03.165066 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Warning:  include(/var/www/html/orangescrum/lib/Cake/Error/ErrorHandler.php): failed to open stream: No such file or directory in /var/www/html/scrum/lib/Cake/Core/App.php on line 545
[Sun Feb 14 13:21:03.165575 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Warning:  include(): Failed opening '/var/www/html/orangescrum/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/scrum/lib/Cake/Core/App.php on line 545
[Sun Feb 14 13:21:03.168452 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Warning:  set_exception_handler() expects the argument (ErrorHandler::handleException) to be a valid callback in /var/www/html/scrum/lib/Cake/Core/Configure.php on line 444
[Sun Feb 14 13:21:03.169506 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Warning:  include(/var/www/html/orangescrum/lib/Cake/Log/CakeLog.php): failed to open stream: No such file or directory in /var/www/html/scrum/lib/Cake/Core/App.php on line 545
[Sun Feb 14 13:21:03.169994 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Warning:  include(): Failed opening '/var/www/html/orangescrum/lib/Cake/Log/CakeLog.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/scrum/lib/Cake/Core/App.php on line 545
[Sun Feb 14 13:21:03.170466 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Fatal error:  Class 'CakeLog' not found in /var/www/html/scrum/app/Config/bootstrap.php on line 184
[Sun Feb 14 13:21:03.171738 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Warning:  include(/var/www/html/orangescrum/lib/Cake/Error/ErrorHandler.php): failed to open stream: No such file or directory in /var/www/html/scrum/lib/Cake/Core/App.php on line 545
[Sun Feb 14 13:21:03.172466 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Warning:  include(): Failed opening '/var/www/html/orangescrum/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/scrum/lib/Cake/Core/App.php on line 545
[Sun Feb 14 13:21:03.172844 2016] [:error] [pid 29544] [client 201.242.221.40:28717] PHP Fatal error:  Class 'ErrorHandler' not found in /var/www/html/scrum/lib/Cake/Core/App.php on line 916

实际文件夹是scrum,应用程序将文件夹中的库称为orangescrum.

The actual folder is scrum, and the aplication call a libraries in a folder orangescrum.

有什么我可以在其中更改文件夹名称的主意吗?

Any idea where I can change the name of folder?

谢谢.

推荐答案

在您的 app/webroot/index.php 中检查 CAKE_CORE_INCLUDE_PATH 常量(和 test.php )文件,在烘焙时可能会被硬编码的特定于环境的路径覆盖.

Check the CAKE_CORE_INCLUDE_PATH constant in your app/webroot/index.php (and test.php) file, when baking it may get overriden with a hardcoded, environment specific path.

https://github.com/cakephp/cakephp/blob/2.8.0/app/webroot/index.php#L60

https://github.com/cakephp/cakephp/blob/2.8.0/app/webroot/index.php#L60

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

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