Permasalahan

Warning: include(/opt/lampp/htdocs/hris/mobileapp/app/views/errors/html/error_php.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/hris/mobileapp/sys/core/Exceptions.php on line 268

Warning: include(): Failed opening '/opt/lampp/htdocs/hris/mobileapp/app/views/errors/html/error_php.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/hris/mobileapp/sys/core/Exceptions.php on line 268

Warning: include(/opt/lampp/htdocs/hris/mobileapp/app/views/errors/html/error_php.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/hris/mobileapp/sys/core/Exceptions.php on line 268

Warning: include(): Failed opening '/opt/lampp/htdocs/hris/mobileapp/app/views/errors/html/error_php.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/hris/mobileapp/sys/core/Exceptions.php on line 268

Berdasarkan pesan error yang muncul di browser sepertinya codeigniter gagal membaca folder atau file, kemungkinan tidak sengaja terhapus atau tersunting nama folder atau filenya. setelah saya periksa ternyata benar, saya telah menghapus folder errors pada folder application/view.

Penyelesaian

  1. Buka proyek codeigniter anda, kemudian cek folder application/view apakah ada folder errors. Jika tidak ada silahkan copy folder errors dari repo codeigniter ini, kemudian simpan di folder application/view.
  2. Buka proyek codeigniter anda, kemudian cek folder application/view/errors/html apakah ada file erorr_php.php. Jika tidak ada silahkan copy file error_php.php dari repo codeigniter ini, kemudian simpan di folder application/view/errors/html.

Kesimpulan

Setelah saya mengembalikan folder errors akhirnya error Exceptions sudah hilang dan browser akan menampilkan error handling bawaan codeigniter untuk membantu kita dalam mengidentifikasi error. jadi kesimpulannya folder errors harus ada pada folder application/view.

Sumber Referensi

http://devmatics.blogspot.com/2017/04/codeigniter-error-exception-error-php.html