title: CodeIgniter Error Reporting Difference between 1.7.x and 2.x
body: <p>I have two identical Debian Squeeze servers running php 5.3.3-7+squeeze17, one running 1.7.x, the other 2.1.4.</p>
  
  <p>On the 1.7 installation, when I call a controller method that calls an undefined model method, the page outputs:</p>
  
  <pre><code>Fatal error: Call to undefined method Example_Model::get_series_and_products() in /opt/git/online_live/application/controllers/members.php on line 2549
  </code></pre>
  
  <p>However, on 2.1.4 there is no output at all. <code>echo</code> statements inserted before the undefined function output text, but statements after do not.</p>
  
  <p>Both sites have php error_reporting set to -1 in their VirtualHost config, which seems to override the config.php defined ENVIRONMENT setting of development, which sets error_reporting to E_ALL.</p>
  
  <p>Here's some extra code I'm using for output:</p>
  
  <pre><code>echo ini_get('error_reporting');
  echo '&lt;br&gt;';
  echo phpversion();
  </code></pre>
  
  <p>Which outputs the same on both:</p>
  
  <pre><code>-1  
  5.3.3-7+squeeze17
  </code></pre>
  
  <p>So, it would not appear that anything else is trumping my error_reporting.</p>
  
  <p>In application/config/config.php in 2.1.4 (where the error's not showing):</p>
  
  <pre><code>$config['log_threshold'] = 4; // All Messages
  </code></pre>
  
  <p>In 1.7 (where the error is showing):</p>
  
  <pre><code>$config['log_threshold'] = 0;
  </code></pre>
  
  <p>But I thought that setting was for the file system log that CI keeps and not inline errors.</p>
  
  <p>phpInfo() reflects the same error_log values on both hosts:</p>
  
  <pre><code>error_log:              no value    no value
  error_reporting:        -1          22527
  </code></pre>
  
  <p>What could be causing the difference?</p>