Can't figure this issue out. Has to do with the CI_Exception class |
[eluser]kyleect[/eluser]
When I run my default controller, I get this error message: Code: Warning: CI_Exceptions::include(application/errors/error_php.php) [function.CI-Exceptions-include]: failed to open stream: No such file or directory in /Users/kyleetilley/htdocs/_firestarter_dev/system/libraries/Exceptions.php on line 161 This is off a clean install. The only thing I've done is move the Application folder in the same folder as the system folder and created a MY_Controller library file that has the following contents: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); I checked all the files it says it can't find and they are there. I'm running php 5 on MAMP if that helps. Does any one know how to help?
[eluser]sophistry[/eluser]
did you set the system and application dir names in config.php? [strike]the error says it is looking for the file at application/errors/error_php.php. this may sound like a dumb question, but, is there a file there?[/strike] EDIT: i just noticed you said you checked all the files... but, since you said you moved application... maybe CI is confused about where it is looking. a relative file path that starts application/errors... is determined by the PWD. use getcwd() to see which directory CI is running "in" - usually it is where you've got index.php. cheers.
[eluser]InsiteFX[/eluser]
You also need to set the system and application directories in index.php. Enjoy InsiteFX
[eluser]kyleect[/eluser]
Ok, this turned out to be the issue. I've had the application folder outside of the system folder in the past and have never had any issue with errors. I have figured out a way around this however it's a little sloppy: Code: $application_folder = realpath(dirname(__FILE__)).'/'."application"; I wish CI natively was a little more flexible about moving your application folder. Do a lot of people keep it in the system folder? |
Welcome Guest, Not a member yet? Register Sign In |