php - cakephp no such file or directory -


i have no knowledge on php , try install php web , shows error:

notice: use of undefined constant cake_core_include_path - assumed 'cake_core_include_path' in /usr/local/crowdfunding/app/webroot/test.php on line 79 warning: include(cake/bootstrap.php): failed open stream: no such file or directory in /usr/local/crowdfunding/app/webroot/test.php on line 91 warning: include(): failed opening 'cake/bootstrap.php' inclusion (include_path='/usr/local/crowdfunding/lib:cake_core_include_path:/usr/local/crowdfunding/app/:.:/usr/share/pear:/usr/share/php') in /usr/local/crowdfunding/app/webroot/test.php on line 91 fatal error: cakephp core not found. check value of cake_core_include_path in app/webroot/index.php. should point directory containing /cake core directory , /vendors root directory. in /usr/local/crowdfunding/app/webroot/test.php on line 100

on test.php: (cakephp test):

set_time_limit(0); ini_set('display_errors', 1); /**  * use ds separate directories in other defines  */     if (!defined('ds')) {         define('ds', directory_separator);     } /**  * these defines should edited if have cake installed in  * directory layout other way distributed.  * when using custom settings sure use ds , not add trailing ds.  */  /**  * full path directory holds "app", without trailing ds.  *  */     if (!defined('root')) {         define('root', dirname(dirname(dirname(__file__))));     } /**  * actual directory name "app".  *  */     if (!defined('app_dir')) {         define('app_dir', basename(dirname(dirname(__file__))));     }         if (!defined('webroot_dir')) {         define('webroot_dir', basename(dirname(__file__)));     }     if (!defined('www_root')) {         define('www_root', dirname(__file__) . ds);     }     if (!defined('core_path')) {         if (function_exists('ini_set') && ini_set('include_path', cake_core_include_path . path_separator . root . ds . app_dir . ds . path_separator . ini_get('include_path'))) {             define('app_path', null);             define('core_path', null);         } else {             define('app_path', root . ds . app_dir . ds);             define('core_path', cake_core_include_path . ds);         }     }     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('cake' . ds . 'bootstrap.php')) {             $failed = true;         }     } else {         if (!include(cake_core_include_path . ds . 'cake' . ds . 'bootstrap.php')) {             $failed = true;         }     }     if (!empty($failed)) {         trigger_error("cakephp core not found.  check value of cake_core_include_path in app/webroot/index.php.  should point directory containing " . ds . "cake core directory , " . ds . "vendors root directory.", e_user_error);     }      if (configure::read('debug') < 1) {         die(__d('cake_dev', 'debug setting not allow access url.'));     }      require_once cake . 'testsuite' . ds . 'caketestsuitedispatcher.php';      caketestsuitedispatcher::run(); 

file structure:

config/config.php         bootstrap.php         ... webroot/test.php  

it seems cannot search config folder out there. should work ?

thanks.

check index.php file , see cake_core_include_path points to... might need copy line on test.php file.

ie: define('cake_core_include_path', root . ds . 'lib');


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -