我試圖讓這個CakePHP的項目在我的本地運行,但總是收到了幾個錯誤消息CakePHP的錯誤消息,可能是我的.htaccess文件
我收到此錯誤信息:
警告:include(Cake \ bootstrap.php)[function.include]:未能打開流:沒有這樣的文件或目錄在C:\ wamp \ www \ cts \ app \ webroot \ index.php在線77
警告:include()[function.include]:打開'Cake \ bootstrap.php失敗'列入(include_path中=' C:\瓦帕\ WWW \ CTS \ lib中; C:\ PHP中\梨')在C:\瓦帕\ WWW \ CTS \應用\根目錄\的index.php上線77
致命錯誤:無法找到CakePHP內核。檢查APP/webroot/index.php中的CAKE_CORE_INCLUDE_PATH的值。它應該指向包含\ cake核心目錄和\ vendors根目錄的目錄。在C:\瓦帕\ WWW \ CTS \應用\根目錄\的index.php上線86
端
代碼 * index.php文件:
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
if (function_exists('ini_set')) {
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
}
/**line 77**/
if (!include('Cake' . DS . 'bootstrap.php')) {
$failed = true;
}
} else {
if (!include(CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
$failed = true;
}
}
if (!empty($failed)) {
/**line 86**/
trigger_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 " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
}
文件結尾
新的錯誤消息我未註釋:警告:包括(C:\瓦帕\ WWW \ CTS \ lib中\蛋糕\ bootstrap.php中)[]:未能打開流:在C無這樣的文件或目錄: \ WAMP \ WWW \ CTS \程序\ webroot的\的index.php上線81 – Dale 2012-08-02 13:00:32
正如我告訴你,如果失敗嘗試常數的值硬編碼到正確的路徑在您的夾餅是 – 2012-08-02 13:01:30
到庫/文件夾的完整路徑給了我一個500內部錯誤信息 – Dale 2012-08-02 13:01:30