1
votes

I'm trying to get a cakephp project up and running from a svn checkout on my mountain lion computer.

I changed all the cache write permissions find but now I have one last fatal error that's not letting the app run.

Fatal error: Uncaught exception 'ConfigureException' with message 'Could not load configuration file: /Users/mike/cake2cribs/cake2cribs/app/Config/core-production.php' in /Users/mike/cake2cribs/cake2cribs/lib/Cake/Configure/PhpReader.php:77 

Stack trace: #0 /Users/mike/cake2cribs/cake2cribs/lib/Cake/Core/Configure.php(267): PhpReader->read('core-production') #1 /Users/mike/cake2cribs/cake2cribs/app/Config/core.php(287): Configure::load('core-production') #2 /Users/mike/cake2cribs/cake2cribs/lib/Cake/Core/Configure.php(76): include('/Users/mike/cak...') #3 /Users/mike/cake2cribs/cake2cribs/lib/Cake/bootstrap.php(146): Configure::bootstrap(true) #4 /Users/mike/cake2cribs/cake2cribs/app/webroot/index.php(81): include('/Users/mike/cak...') #5 {main} thrown in /Users/mike/cake2cribs/cake2cribs/lib/Cake/Configure/PhpReader.php on line 77

it fails on this line inside index.php inside webroot

 if (!include ('Cake' . DS . 'bootstrap.php')) {
    $failed = true;
}

Any ideas as to what could be the cause?

1
Do you have a file called core-production.php in /Users/mike/cake2cribs/cake2cribs/app/Config?jimiyash
Did you try echo 'Cake' . DS . 'bootstrap.php'; and checked the included file?bitfox
@jimiyash that file does not exist, this project is coming from an ubuntu install, I forgot to mention that in the post. However that install didn't have that file either and we were confused why machine was trying to get that file.Mike
@bitfox it echos "Cake/bootstrap.php" when doing the ini_set('include_path', ROOT.DS.'lib'.PATH_SEPERATOR.init_get('include_path')); I evaluated the path and it echoed out "/Users/mike/cake2cribs/cake2cribs/lib:/Users/mike/cake2cribs/cake2cribs/lib:.:" which seemed odd and may be a cause for error. It seems like you are getting something as you are setting it with the init_get and init_set in the same line.Mike
@Mike: I found another question similar to yours stackoverflow.com/questions/5382293/…. The problem seems may be related to your Apache virtualhost configuration.bitfox

1 Answers

0
votes

I've never done an Ubuntu install, I've always just downloaded the source and put it in my webroot. Anyway, cake always expects to have a file called core.php which holds all the config info. Maybe the Ubuntu install just expects core-production.php, so you might just need to copy the core.php file in app/Config and rename it to core-production.php.