迁移到CakePHP 2.0后,我将其上传到我的服务器并遇到了这些令人毛骨悚然的错误。
警告:include(/home/content/32/11382832/html/shafiullah/hs/app/Config/core.php)[function.include]:无法打开流:/ home /中没有此类文件或目录第75行的内容/ 32/11382832 / html / shafiullah / hs / lib / Cake / Core / Configure.php
警告: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第75行的.php
致命错误:无法找到应用程序核心文件。请创建/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行
答案 0 :(得分:0)
在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;
}
}
将您的观看次序重命名为"查看",将布局重命名为"布局"并配置为"配置"