Tuesday, 6 August 2013

CAKE PHP: Warning: require(cake\basics.php): failed to open stream.... But Cake core exists

CAKE PHP: Warning: require(cake\basics.php): failed to open stream.... But
Cake core exists

I have moved a cake site to another pc, a group of devs are sharing a
repository.
Therefore we have created swicth statement to point our sites to our local
cake core folder.
switch($_SERVER['DOCUMENT_ROOT']){
case "C:/Users/andy/Documents/websites/foundation" :
define('CAKE_CORE_INCLUDE_PATH', ROOT.DS.'Cake' .DS. 'lib');break;
case "C:/Users/ian/xampp/htdocs/foundation" :
define('CAKE_CORE_INCLUDE_PATH', ROOT.DS.'Cake' .DS. 'lib');break;
case "C:/Users/Jared/websites/foundation" :
define('CAKE_CORE_INCLUDE_PATH', ROOT.DS.'Cake' .DS. 'lib');break;
case "C:/Users/rafal/Documents/websites/foundation" :
define('CAKE_CORE_INCLUDE_PATH', ROOT.DS.'Cake' .DS. 'lib');break;
}
The site loads fine for all devs apart from rafal, whos
cake_core_include_path is defined last in the swicth statement.
For rafal we are getting the following error:
Warning: require(cake\basics.php): failed to open stream: No such file or
directory in C:\Users\rafal\Documents\websites\foundation\index.php on
line 67
Fatal error: require(): Failed opening required 'cake\basics.php'
(include_path='.;C:\xampp\php\PEAR;C:\Users\rafal\Documents\websites\foundation;C:\Users\rafal\Documents\websites\foundation\app\')
in C:\Users\rafal\Documents\websites\foundation\index.php on line 67
We have moved the app outside of the cake folder but they site side by side.
eg
Cake app (website)
Does anyone know what could be causing this, far as I am aware the we have
folder permissions.

No comments:

Post a Comment