I am using codeigniter for a website in my localnet. I am making a call to a method in a view like this :
$.ajax({
url: "<?php
if(ENABLEACTIVEDIRECTORYMODE == true)
echo site_url('login/loginController/loginControlWithActiveDirectory');
else
echo site_url('login/loginController/loginControl');
?>",
type: 'POST',
data: data,
success: function(data1){
$("body").innerHTML("<h1>BOBAA</h1>");
// To get rid of whitespaces etc.
var reply = data1.replace(/\s+/, "");
if( reply.toString() == 'OK' ){
window.location.href = <?php echo json_encode(site_url()); ?> + '/operation/operationController';
}else if( reply.toString() == 'FAIL' ){
alert("Kullanıcı adı ve/veya parola yanlış girilmiştir.Lütfen tekrar deneyiniz.");
}
}
});
As far as i check from firebug, it is giving an internal 500 error. I Am clicking a button to make this ajax request. Yet even though i get an internal 500 error. Nothing changes. Page stands still. There is no logging of any errors in apache log file. And php simply does not log even though, every setting in php.ini is correct.( I am sure about this because I have give a day to solve that problem before).
In my index.php, following lines are set.
error_reporting(E_ALL);
ini_set('display_errors', 1);
So I am pretty confused, i suscpect if nothing is logged because of codeigniter. I am not even sure if internal 500 is coming from the php file. But there is nothing else done by the clicking of the button.
All in all, I wanna see some errors. But why cant I , that is the question.