[eluser]Zeeshan Rasool[/eluser]
You may enable error reporting from index.php on root by setting:
error_reporting(E_ALL);
[eluser]AgentPhoenix[/eluser]
What you're seeing isn't a PHP error, it's an error being returned from your database. You can tell because the top of it says a database error occurred. CI has a completely separate error view for errors returned from the database. If it's a PHP error, the message would say "A PHP Error was encountered."
[eluser]Vi.[/eluser]
Just open your apache log file and go to last line. You can also use CI log file to save PHP errors into log file. Open application/config.php and change $config['log_threshold'] to '4'. All errors will save into system/logs/ folder.
CI has custom error page for some part. Database, mysql query, unaccessible uri etc.
[eluser]Unknown[/eluser]
Hi from Argentina.
To show all php errors, i just update de index.php like this:
if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
error_reporting(E_ALL);
ini_set('display_errors','On'); // <----- added
break;
case 'testing':
case 'production':
error_reporting(0);
ini_set('display_errors','Off'); // <----- added
break;
default:
exit('The application environment is not set correctly.');
}
}