CodeIgniter on a live site not loading a controller class

I am trying to set up my site on a production server and basically crash on 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 breaks down into '$ CI = new auth ();'

It does not cause an error (why?), It simply displays a blank page. It all works fine.

Has anyone had similar problems?

+4
source share
7 answers

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

$ sudo yum install php-mysql

+4
source

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

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

to the beginning of index.php.

+2
source

Check this topic for a similar problem: CodeIgniter project loads a blank web page

In addition, if you do not have mysql and / or a database installed for your site, TankAuth needs a database. Be sure to follow all installation instructions and create the tables that the module needs (you will see a .sql dump in the downloaded folder),

+2
source

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

+1
source

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

+1
source

My solution was the same as the others, to establish mysql compatibility with 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 that’s it, Hello!

+1
source

Add the same problem to cpanel by moving your CI project from php 5.3 to 5.4

Blank page error or 500 internal server errors

This will fix the problem:

Enable the mysqli extension in PHP (v5) via EasyApache using the comprehensive options list (Cpanel).

+1
source

Source: https://habr.com/ru/post/1394037/


All Articles