Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CodeIgniter on live site not loading controller class

I'm trying to setup my site on a production server, and it's basically crashing at line 291 in /system/core/CodeIgniter.php:

//instantiate the requested controller

// Mark a start point so we can benchmark the controller
$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start');

$CI = new $class();

The class is 'auth' (from the tank_auth library), so it's crashing on '$CI = new auth();'

It doesn't produce an error (why??), just displays a blank page. This all works fine locally.

Has anyone had any similar issues?

like image 205
Ryan Weiss Avatar asked Jan 31 '12 18:01

Ryan Weiss


2 Answers

I had the same problem, I fixed that by installing the php-mysql package:

$ sudo yum install php-mysql

like image 76
Shay Avatar answered Sep 30 '22 09:09

Shay


Have you checked if error reporting is enabled? If not, try adding

ini_set('display_errors',1);
error_reporting(E_ALL);

to the beginning of index.php.

like image 37
adidasadida Avatar answered Sep 30 '22 09:09

adidasadida