Welcome Guest, Not a member yet? Register   Sign In
Newbies question. CI error reporting - CI fails silently?
#1

[eluser]searain[/eluser]
I set up error_reporting('E_ALL'); in index.php.

But when I have typo in the model, such as missing a ")", no error report shows, just empty page.

And when I call a method not exist in the model from controller, Such as by mistake I called $this->Article_categories_model->add_category(); instead of $this->Article_categories_model->add_article_category(); no error report shows, just empty page.

How can I deal with this fails silently issue?
#2

[eluser]Pascal Kriete[/eluser]
Error_reporting only catches runtime errors. Try adding:
Code:
ini_set('display_errors', 1);

underneath the error_reporting line. That'll take care of it in most cases. Otherwise you'll have to make the change in your php.ini.
#3

[eluser]searain[/eluser]
My mistake

error_reporting('E_ALL')

it should be

error_reporting(E_ALL)




Theme © iAndrew 2016 - Forum software by © MyBB