5

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?

Ryan Weiss
  • 1,308
  • 1
  • 14
  • 36

8 Answers8

4

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

$ sudo yum install php-mysql

Shay
  • 41
  • 3
2

Check this thread for similar issue: CodeIgniter project loads blank webpage

Also, in case you don't have mysql installed and/or a database set up for your site, TankAuth does need the database. Be sure to follow all the installation instructions and create the tables that the module needs (you'll see a .sql dump in the downloaded folder).

Community
  • 1
  • 1
Anna T
  • 956
  • 1
  • 9
  • 20
2

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.

1

i had the same problem, in my case i needed install de lib php-pgsql(because i use postgresql) on my server. After that, the problem was solved

  • 1
    Can you develop your answer more? It's an old question with some answers already. Can be nice to hear your solution but more explained. – Sergio Jul 14 '13 at 00:49
1

My solution was the same than the others, install mysql compatibility to php. In my case the platform is ubuntu on Amazon AWS (Using mysql on RDS, not local):

$sudo apt-get install php5-mysql

$sudo apt-get install mysql-client

$sudo service apache2 restart

And thats is all, Greetings!

1

Add same issue on Cpanel , moving a CI project from php 5.3 to 5.4

Blank page or 500 internal server error

This resolve the issue :

Enable the "mysqli" extension in PHP (v5) via EasyApache, using the Exhaustive Options List (Cpanel).

1

see the include_path in php on your production server and/or make other frontend with development environment to see error

sly
  • 149
  • 1
  • 6
  • Hey sly, I'm not sure it's an include_path thing specific to php. This all works fine locally, and codeigniter's files are loading properly... Also the production environment is basically a development environment at this point. – Ryan Weiss Jan 31 '12 at 18:39
0

In my case it was fixed by doing this:

   yum install php-mysqli

on Centos 8

Evan
  • 1,004
  • 11
  • 12