title: Moving to new server, now CodeIgniter / Ion_Auth are not working
body: <p>So I am moving to a new host server. One of my school projects that is in use on the old server must remain up with no downtime, so I am prepping the new server and moving over all the files associated. I've got the virtual host all set up and working, now CodeIgniter and Ion_Auth don't seem to be working.</p>
  
  <p>I am getting the dreadful white screen of death. Here's what I have done so far and in order.</p>
  
  <p>First, CodeIgniter was looking for the Ion_Auth library under 'core/MY_Ion_Auth.php' so after research I found that I needed to change the __autoload() function (application/config/config.php l# 385) FROM</p>
  
  <pre><code>function __autoload($class)
  {
      if(strpos($class, 'CI_') !== 0)
      {
          @include_once( APPPATH . 'core/'. $class . EXT );
      }
  }    
  </code></pre>
  
  <p>TO</p>
  
  <pre><code>function __autoload($class)
  {
      if (strpos($class, 'CI_') !== 0)
      {
          if (file_exists($file = APPPATH . 'core/' . $class . EXT))
          {
              include $file;
          }
  
          elseif (file_exists($file = APPPATH . 'libraries/' . $class . EXT))
          {
              include $file;
          }
      }
  } 
  </code></pre>
  
  <p>And it was a success. My script no longer broke after the autoload. Now, I am still getting a white screen but my log file is showing different errors. </p>
  
  <p>Here's my log file:</p>
  
  <pre><code>&lt;?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?&gt;
  ERROR - 2015-01-29 11:55:15 --&gt; Severity: Notice  --&gt; Undefined variable: user /var/www/CIS411-GIS_Conference/application/views/templates/menubar.php 36
  ERROR - 2015-01-29 11:55:15 --&gt; Severity: Notice  --&gt; Trying to get property of non-object /var/www/CIS411-GIS_Conference/application/views/templates/menubar.php 36
  ERROR - 2015-01-29 11:55:15 --&gt; Severity: Notice  --&gt; Undefined variable: user /var/www/CIS411-GIS_Conference/application/views/templates/menubar.php 39
  ERROR - 2015-01-29 11:55:15 --&gt; Severity: Notice  --&gt; Trying to get property of non-object /var/www/CIS411-GIS_Conference/application/views/templates/menubar.php 39
  </code></pre>
  
  <p>Now, the 'undefined variable' is supposed to be undefined. It is in an if statement checking to see if the user is logged in first (which I am not) therefore, this code shouldn't even be running! </p>
  
  <p>Here's the menubar.php if statement:</p>
  
  <pre><code>&lt;?
      if ($this-&gt;ion_auth-&gt;logged_in()) {
          // Get users info
          $user = $this-&gt;ion_auth-&gt;user()-&gt;row();
          // Display account links
  ?&gt;
      &lt;li class="dropdown"&gt;
          &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"&gt;&lt;?=$user-&gt;email?&gt; &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
          &lt;ul class="dropdown-menu" role="menu"&gt;
            &lt;li &lt;? if(is_active('auth/dashboard')): ?&gt;class="active"&lt;? endif; ?&gt;&gt;&lt;a href="&lt;?= site_url('auth/dashboard') ?&gt;"&gt;Dashboard&lt;/a&gt;&lt;/li&gt;
            &lt;li &lt;? if(is_active('auth/edit_user')): ?&gt;class="active"&lt;? endif; ?&gt;&gt;&lt;a href="&lt;?= site_url('auth/edit_user/'.$user-&gt;id) ?&gt;"&gt;Account Settings&lt;/a&gt;&lt;/li&gt;
            &lt;li class="divider"&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="&lt;?= site_url('auth/logout') ?&gt;"&gt;Logout&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p>All that said, still getting the WSOD and not sure what to do next. 
  I did have to change from mysql to mysqli due to pconnect no longer being supported by PHP5.x. I'm thinking this could have something to do with it but have no idea how to go about fixing it.</p>
  
  <p>Any help will be appreciated!</p>