php - CAKE_CORE_INCLUDE_PATH 麻烦

标签 php cakephp hosting

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

相关文章:

php - strtotime() DateTime类模拟方法

php - 在 NetBeans 中对 false、true、null 使用小写常量

php - 在 cakephp 查找查询中的同一个表上使用 sql union

php - Godaddy 主机上的 CakePHP 控制台

php - 将 www-data 推送到本地 git repo

html - 通过 GoDaddy,主页看起来有所不同

c# - 如何使用 C# Windows 窗体创建一个简单的本地网页

php - Mysql - 如何在 1 条记录中加入自定义字段标题和数据的表

php - 将 php 变量从选择器传递到搜索数据库

mysql - cakePHP 不正确的日期时间格式