I have a project and I want to upload it to my web server. But i get these errors :
Warning: include(C:\wamp\www\ums\lib\Cake\bootstrap.php) [function.include]: failed to open stream: No such file or directory in C:\inetpub\vhosts\ajansimaj.com\httpdocs\ums2\webroot\index.php on line 83
Warning: include(C:\wamp\www\ums\lib\Cake\bootstrap.php) [function.include]: failed to open stream: No such file or directory in C:\inetpub\vhosts\ajansimaj.com\httpdocs\ums2\webroot\index.php on line 83
Warning: include() [function.include]: Failed opening 'C:\wamp\www\ums\lib\Cake\bootstrap.php' for inclusion (include_path='.;./includes;./pear') in C:\inetpub\vhosts\ajansimaj.com\httpdocs\ums2\webroot\index.php on line 83
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:\inetpub\vhosts\ajansimaj.com\httpdocs\ums2\webroot\index.php on line 88
What can i do to fix these problems ? Thank you
As the error say:
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:\inetpub\vhosts\ajansimaj.com\httpdocs\ums2\webroot\index.php on line 88
You should change the line
define('CAKE_CORE_INCLUDE_PATH', 'C:' . DS . 'wamp' . DS . 'www' . DS . 'ums' . DS . 'lib');
in your C:\inetpub\vhosts\ajansimaj.com\httpdocs\ums2\webroot\index.php file into:
define('CAKE_CORE_INCLUDE_PATH', 'C:' . DS . 'inetpub' . DS . 'vhosts' . DS . 'ajansimaj.com' . DS . 'httpdocs' . DS . 'ums2' . DS . 'lib');
and it should be working...
Unfortunately, it looks like you've been bitten by the way that cake bake <project>
would previously create an index.php file that was install-specific. To correct this, copy the app/webroot/index.php
file from your cake install, or from the source (ensure you use the same version of cake as you have installed), in this way the same file will work wherever it is located.
My fix was to clear the caches in /app/tmp/cache/persistent