Cakephp error messages might be my .htaccess file

I am trying to get this cakephp project running on my localhost, but always receiving a couple of error messages

I receive this error message:

Warning: include(Cakebootstrap.php) [function.include]: failed to open stream: No such file or directory in C:wampwwwctsappwebrootindex.php on line 77

Warning: include() [function.include]: Failed opening 'Cakebootstrap.php' for inclusion (include_path='C:wampwwwctslib;.;C:phppear') in C:wampwwwctsappwebrootindex.php on line 77

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 C:wampwwwctsappwebrootindex.php on line 86

end

code* Index.php file:

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

end of file


Check line 59 of index.php you will see something like

//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');

Uncomment that line and if it does not work, then hardcode the complete path to your lib/ folder, the one containing a Cake folder with all CakePHP libraries.


If you are copying a CakePHP project from one directory to another, make sure you copy all required directories.

When copying my project from an old directory to a new directory, and I mistakenly omitted CakePHP's /lib directory thinking it contained unnecessary git or log files.

I was incorrect, and copying over the /lib directory to the new project directory resolved the fatal error for me.

链接地址: http://www.djcxy.com/p/69668.html

上一篇: 从我的PHP获取错误消息

下一篇: Cakephp错误信息可能是我的.htaccess文件