title: Codeigniter, call to a method in a controller giving internal 500 error / Nothing is logged
body: <p>I am using codeigniter for a website in my localnet. I am making a call to a method in a view like this :</p>
  
  <pre><code>$.ajax({
      url: "&lt;?php  
          if(ENABLEACTIVEDIRECTORYMODE == true)                                      
              echo site_url('login/loginController/loginControlWithActiveDirectory');
          else
              echo site_url('login/loginController/loginControl');
      ?&gt;",
      type: 'POST',
      data: data,
      success: function(data1){   
          $("body").innerHTML("&lt;h1&gt;BOBAA&lt;/h1&gt;");
          // To get rid of whitespaces etc.
          var reply = data1.replace(/\s+/, "");
          if( reply.toString() == 'OK' ){ 
             window.location.href = &lt;?php echo json_encode(site_url()); ?&gt; + '/operation/operationController';                           
          }else if( reply.toString() == 'FAIL' ){                           
              alert("Kullanıcı adı ve/veya parola yanlış girilmiştir.Lütfen tekrar deneyiniz.");
          }  
      }
  });
  </code></pre>
  
  <p>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).</p>
  
  <p>In my index.php, following lines are set.</p>
  
  <pre><code>error_reporting(E_ALL);
  ini_set('display_errors', 1);
  </code></pre>
  
  <p>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. </p>
  
  <p>All in all, I wanna see some errors. But why cant I , that is the question.</p>