gpt4 book ai didi

php - CAKE_CORE_INCLUDE_PATH 麻烦

转载 作者:行者123 更新时间:2023-12-02 21:38:59 26 4
gpt4 key购买 nike

我的 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

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

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

最佳答案

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

if (!include ('Cake' . DS . 'bootstrap.php'))

至:

if (!include (ROOT . DS . 'lib'. DS .'Cake' . DS . 'bootstrap.php'))

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

关于php - CAKE_CORE_INCLUDE_PATH 麻烦,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20773531/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com