Welcome Guest, Not a member yet? Register   Sign In
path error in exception.php
#1

[eluser]bgreene[/eluser]
in a controller if i use chdir('E:\website\codeigniter20\') and then this.load.view(diag) i get the warnings attached to the end of this because ci has lost its bearings.
to solve the problem, i need to make the paths in exception.php absolute ie
line 131
// include(APPPATH.'errors/'.$template.EXT);
include('E:/website/CodeIgniter20/ci_application/errors/'.$template.EXT);
line 167
// include(APPPATH.'errors/error_php'.EXT);
include('E:/website/CodeIgniter20/ci_application/errors/error_php.php');
now it reports unable to load file diag.php which makes more sense
would be even better if it gave the full path of the file it is trying to load.

*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Warning: CI_Exceptions::include(../ci_application/errors/error_php.php) [ci-exceptions.include]: failed to open stream: No such file or directory in E:\website\CodeIgniter20\ci_system\core\Exceptions.php on line 169
Warning: CI_Exceptions::include() [function.include]: Failed opening '../ci_application/errors/error_php.php' for inclusion (include_path='.;C:\php5\pear') in E:\website\CodeIgniter20\ci_system\core\Exceptions.php on line 169
Warning: CI_Exceptions::include(../ci_application/errors/error_php.php) [ci-exceptions.include]: failed to open stream: No such file or directory in E:\website\CodeIgniter20\ci_system\core\Exceptions.php on line 169
Warning: CI_Exceptions::include() [function.include]: Failed opening '../ci_application/errors/error_php.php' for inclusion (include_path='.;C:\php5\pear') in E:\website\CodeIgniter20\ci_system\core\Exceptions.php on line 169
include('E:/website/CodeIgniter20/ci_application/errors/error_php.php');
// include(APPPATH.'errors/error_php'.EXT);


Messages In This Thread
path error in exception.php - by El Forum - 03-22-2011, 11:07 AM
path error in exception.php - by El Forum - 04-07-2011, 09:26 AM
path error in exception.php - by El Forum - 04-07-2011, 10:56 AM
path error in exception.php - by El Forum - 04-07-2011, 01:21 PM
path error in exception.php - by El Forum - 04-07-2011, 01:56 PM
path error in exception.php - by El Forum - 06-03-2011, 11:44 PM
path error in exception.php - by El Forum - 06-06-2011, 01:16 PM
path error in exception.php - by El Forum - 06-26-2012, 12:24 PM
path error in exception.php - by El Forum - 06-26-2012, 12:59 PM
path error in exception.php - by El Forum - 06-26-2012, 01:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB