CAKE_CORE_INCLUDE_PATH问题 [英] CAKE_CORE_INCLUDE_PATH troubles
问题描述
我的CakePHP网站可以正常运行数月,直到我今天尝试访问它时,出现以下错误:
My CakePHP website was working perfectly for months, until I tried accessing it today, I got the following error:
Warning: include(Cake/bootstrap.php): failed to open stream: No such file or directory in /home/corneenm/public_html/app/webroot/index.php on line 82
Warning: include(Cake/bootstrap.php): failed to open stream: No such file or directory in /home/corneenm/public_html/app/webroot/index.php on line 82
Warning: include(): Failed opening 'Cake/bootstrap.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/corneenm/public_html/app/webroot/index.php on line 82
Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your /cake core directory and your /vendors root directory. in /home/corneenm/public_html/app/webroot/index.php on line 91
我最近从同一家公司购买了另一个托管软件包,但两者似乎无关.我似乎无法弄清楚可能出了什么问题.
I recently bought another hosting package from the same company, but the two do not seem to be related. I can't seem to figure out what might be going wrong.
也:将站点复制到localhost时,它仍然像超级按钮一样工作...我该怎么办?
Also: When copying the site to localhost, it still works like a charm... What can I do?
推荐答案
谢谢大家的反馈...我终于找到了解决方案,如果有人和我有同样的问题,这就是我所做的.修理它.在Index.php的第82行,我更改了以下内容:
Thank you all for the feedback... I have finally found a solution, if someone has the same problem as I had, this is what I have done to fix it. On line 82 in Index.php I changed the following:
if (!include ('Cake' . DS . 'bootstrap.php'))
收件人:
if (!include (ROOT . DS . 'lib'. DS .'Cake' . DS . 'bootstrap.php'))
我仍然不知道是什么引起了问题,但是由于某种原因,原始行停止了运行.我假设托管公司可能已经改变了他们的立场.很高兴它已修复!
I still have no clue what caused the problem, but for some reason, the original line stopped functioning. I am assuming the hosting company might have changed something on their side. Just glad it's fixed!
这篇关于CAKE_CORE_INCLUDE_PATH问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!