Fatal error: Can't find core file. CakePHP

Fatal error: Can't find core file. CakePHP

迁移到 CakePHP 2.0 后,我将其上传到我的服务器并遇到了这些令人毛骨悚然的错误。

警告:包括(/home/content/32/11382832/html/shafiullah/hs/app/Config/core.php)[function.include]:无法打开流:/home/content/32/11382832/html/shafiullah/hs/lib/Cake/Core/Configure.[=29= 中没有这样的文件或目录] 第 75 行

警告:include() [function.include]:打开 '/home/content/32/11382832/html/shafiullah/hs/app/Config/core.php' 以进行包含失败 (include_path='/home/content/32/11382832/html/shafiullah/hs/lib:. :/usr/local/php5_3/lib/php') 在 /home/content/32/11382832/html/shafiullah/hs/lib/Cake/Core/Configure.php 第 75

致命错误:找不到应用程序核心文件。请创建 /home/content/32/11382832/html/shafiullah/hs/app/Config/core.php,并确保 PHP 可读。在 /home/content/32/11382832/html/shafiullah/hs/lib/Cake/Core/Configure.php 第 76

在你的webroot/index.php

//some code ... 
define('CAKE_CORE_INCLUDE_PATH', ROOT);
//some code ... 

if (!defined('CAKE_CORE_INCLUDE_PATH')) {
    if (function_exists('ini_set')) {
        ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
    }
    if (!include(ROOT.DS.APP_DIR.DS.'Cake' . DS . 'bootstrap.php')) {
        $failed = true;
    }
} else {
    if (!include(CAKE_CORE_INCLUDE_PATH . DS . 'lib/Cake' . DS . 'bootstrap.php')) {
        $failed = true;
    }
}

并将视图重命名为 "View",布局重命名为 "Layouts",配置重命名为 "Config"