Can't figure this issue out. Has to do with the CI_Exception class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Can't figure this issue out. Has to do with the CI_Exception class (/showthread.php?tid=22174) |
Can't figure this issue out. Has to do with the CI_Exception class - El Forum - 08-31-2009 [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? Can't figure this issue out. Has to do with the CI_Exception class - El Forum - 08-31-2009 [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. Can't figure this issue out. Has to do with the CI_Exception class - El Forum - 08-31-2009 [eluser]InsiteFX[/eluser] You also need to set the system and application directories in index.php. Enjoy InsiteFX Can't figure this issue out. Has to do with the CI_Exception class - El Forum - 09-01-2009 [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? |