2016-02-13 115 views
0

迁移到CakePHP 2.0后,我将其上传到我的服务器,并得到这些令人毛骨悚然的错误。致命错误:无法找到核心文件。 CakePHP

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

Warning:include()[function.include]:打开'/ home/content/32/(include_path ='/ home/content/32/11382832/html/shafiullah/hs/lib:。:/ usr/local/php5_3/lib/11382832 /html/shafiullah/hs/app/Config/core.php' php')in /home/content/32/11382832/html/shafiullah/hs/lib/Cake/Core/Configure.php on line 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

回答

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; 
    } 
} 

和重命名你的意见,以“观“,布局为”布局“并配置为”配置“

相关问题