URGENT. Codeigniter suddenly returning an error

HI, I suddenly receive an error:

Warning: include(application/errors/error_php.php) [function.include]: failed to open stream: No such file or directory in /home/a1315895/public_html/system/core/Exceptions.php on line 183

Warning: include() [function.include]: Failed opening 'application/errors/error_php.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a1315895/public_html/system/core/Exceptions.php on line 183

My Routes:

$route['default_controller'] = 'pages/view';
//$route['authorized/(:any)'] = 'elogin/view/$1';

Controller:

function index( $page = 'home'){
		
		
		if ( ! file_exists(APPPATH.'/views/pages/'.$page.'.php')){
			show_404();
		}
		
		if( $this->session->userdata('validated') ) {
			$this->load->helper(array('form'));
			$this->load->helper('url');
			
			
			$this->load->model('patient_db');
			
			$loggedIn = $this->session->userdata('validated');
			$loggedUser = $this->session->userdata('username');
			$data['loggedUser'] = $loggedUser;
			$data['loggedIn'] = $loggedIn;
			$data['title'] = $page;
			$data['users'] = $this->patient_db->getUsers();
			
			$this->load->view('templates/header', $data);
			$this->load->view('templates/nav', $data);
			$this->load->view('pages/'.$page, $data);
			$this->load->view('templates/footer');
        } else {
			
			$error = false;
			$data['error'] = $error;
			$this->load->helper(array('form'));
			$this->load->helper('url');
			$loggedIn = $this->session->userdata('validated');
			$loggedUser = $this->session->userdata('username');
			$data['loggedUser'] = $loggedUser;
			$data['loggedIn'] = $loggedIn;
			$data['title'] = $page;
			$this->load->view('templates/header', $data);
			$this->load->view('templates/nav', $data);
			$this->load->view('pages/'.$page, $data);
			$this->load->view('templates/footer');
            //$this->show_login(false);
			
        }
	}

please please help me.I need this fix asap. : :tired_face:

The error path changed in one of the versions and is now ./views/errors and not ./application/errors

Check your version and also the update instructions.

I see, luckily I have a backup of my files so I just restored my old backup.

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.