title: JQuery AJAX call to the php SLIM framework calls the error function, without no error message?
body: <p>I have this server side SLIM code:</p>
  
  <pre><code>require 'Slim/Slim.php';
  
  $app = new Slim();
  //$app-&gt;config('debug', true);
  $app-&gt;get('/hello', 'hello');
  //$app-&gt;post('/addConsultant', 'addConsultant');
  $app-&gt;run();
  
  function hello() {
      echo '{"hello": ' . json_encode("merp") . '}';
  }
  </code></pre>
  
  <p>Pretty bare bones right? I mean it is only one single GET.</p>
  
  <p>Now, I have this client side Javascript code:</p>
  
  <pre><code>var rootURL = "http://somabsolutions.se/dev/index.php/";
  
  $('#btnHello').click(function() {
      $.ajax({
          type: 'GET',
          url: rootURL + '/hello',
          dataType: "text json",
          success: function(data){
              alert("Something " + data);
          },
          error: ajaxFailed
      });
  
      return false;
  });
  
  function ajaxFailed(XMLHttpRequest, textStatus, errorThrown) {
      alert("XMLHttpRequest=" + XMLHttpRequest.responseText + "\ntextStatus=" + textStatus     + "\nerrorThrown=" + errorThrown);
  }
  </code></pre>
  
  <p>Also pretty easy.</p>
  
  <p>I have this HTML stuff, which holds the button that is bound to the AJAX call by jQuery:</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
      &lt;html&gt;
          &lt;head&gt;
              &lt;title&gt;
                  Backend test
              &lt;/title&gt;
          &lt;/head&gt;
          &lt;body&gt;
              &lt;form id="testForm"&gt;
  
                  &lt;button id="btnHello"&gt;Hello World&lt;/button&gt;
  
              &lt;/form&gt;
              &lt;script src="javascript/jquery-1.7.2.min.js"&gt;&lt;/script&gt;
              &lt;script src="javascript/main.js"&gt;&lt;/script&gt;
          &lt;/body&gt;
       &lt;/html&gt;
  </code></pre>
  
  <p>This stuff, used to work, until today, when it for some alien reason stopped doing so!</p>
  
  <p>See, it works, right?</p>
  
  <p>But every time I press that HTML button, Ajax thinks the call fails and redirects me to the error function, which fails to provide me with anything but blank error messages.</p>
  
  <p>What is wrong with this? It worked just fine some days ago!</p>