CAKE_CORE_INCLUDE_PATH 问题

Cor*_*rne 2 php hosting cakephp

我的 CakePHP 网站完美运行了几个月,直到我今天尝试访问它,我收到以下错误:

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
Run Code Online (Sandbox Code Playgroud)

我最近从同一家公司购买了另一个托管包,但两者似乎没有关系。我似乎无法弄清楚可能出了什么问题。

另外:将站点复制到本地主机时,它仍然像魅力一样工作......我该怎么办?

Cor*_*rne 5

谢谢大家的反馈...我终于找到了一个解决方案,如果有人和我有同样的问题,这就是我所做的来解决它。在 Index.php 的第 82 行,我更改了以下内容:

if (!include ('Cake' . DS . 'bootstrap.php'))
Run Code Online (Sandbox Code Playgroud)

到:

if (!include (ROOT . DS . 'lib'. DS .'Cake' . DS . 'bootstrap.php'))
Run Code Online (Sandbox Code Playgroud)

我仍然不知道是什么导致了问题,但由于某种原因,原来的线路停止运行。我假设托管公司可能已经改变了他们方面的一些东西。很高兴它已修复!