0

When I access my application, browser display blank page like this :

enter image description here

There is no error

My application using codeigniter

Any help much appreciated

Cheers

Insane Skull
  • 9,220
  • 9
  • 44
  • 63
samuel toh
  • 6,836
  • 21
  • 71
  • 108
  • 3
    http://stackoverflow.com/questions/9587413/codeigniter-displays-a-blank-page-instead-of-error-messages try this – Praveen Kumar Feb 12 '16 at 07:28
  • @PraveenKumar, I have try that. In console : `"NetworkError: 500 Internal Server Error - http://localhost/spsubagent/index.php"` – samuel toh Feb 12 '16 at 07:37
  • share your index function code – Sundar Feb 12 '16 at 08:00
  • Check your default controller has first letter upper case for class and file name. –  Feb 12 '16 at 08:01
  • taking to account that there is 2016 in a calendar try [phalcon](https://www.phalconphp.com) :) _sorry for offtopic_ – dr_leevsey Feb 12 '16 at 08:53
  • if serious - at least one question you have to clarify: how do you run your app? (e.g. are you using lampp, apache, php embedded webserver etc.) – dr_leevsey Feb 12 '16 at 09:00
  • Do check [this url](https://mediatemple.net/community/products/dv/204644990/why-am-i-getting-a-500-internal-server-error-message) where explain why 500 internal server error occur. Also try to print errors using "ini_set('display_errors', 1);" – PHPExpert Feb 12 '16 at 09:07

2 Answers2

1

Probably your environment is not displaying errors. This can be because your php.ini configuration or because the definition of the constant ENVIRONMENT in spsubagent/index.php.

If your php.ini are configured correctly, so you 'ENVIROMENT' constant must be defined with 'development' value to display errors, because the 'production' value must hide errors.

Bad practice:

You can force the exibition of the error defining the error_reporting(E_ALL); in the construct of your controller.

mayconfsbrito
  • 2,085
  • 4
  • 26
  • 45
0

Check your .htaccess file or replace your htaccess file with new htaccess file for codeigniter.

safin chacko
  • 1,345
  • 1
  • 11
  • 18