我将cakePhp应用程序更改为其他服务器,当我在浏览器中打开应用程序时,为我设置了500错误。
这在日志文件中
[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,而aplication调用orangescrum文件夹中的库。
知道我可以在哪里更改文件夹的名称吗?
感谢。
答案 0 :(得分:0)
你可以在/var/www/html/scrum/lib/Cake/Core/App.php找到该文件
消息告诉我们,文件未命中
无法打开流:第545行/var/www/html/scrum/lib/Cake/Core/App.php中没有此类文件或目录
答案 1 :(得分:0)
检查CAKE_CORE_INCLUDE_PATH
(和app/webroot/index.php
)文件中的test.php
常量,烘焙时可能会使用硬编码的环境特定路径覆盖。
<强> https://github.com/cakephp/cakephp/blob/2.8.0/app/webroot/index.php#L60 强>