Himanshu Pandey
Himanshu Pandey

Reputation: 1280

Got Fatal error CodeIgniter CI_Controller not found

I got following error on every controller

Fatal error: Class 'CI_Controller' not found in /<path>/system/core/CodeIgniter.php on line 233

The root folder has also its same separate codeigniter system (all ci structure) folder. the site in root in working but when i copy the another ci structure in sub folder i got mentioned fatal error. please help me.

Upvotes: 3

Views: 6976

Answers (2)

Stenio L. de Souza
Stenio L. de Souza

Reputation: 11

I had a similar problem when trying to run a migration that is within a folder, it appears that my 'git' is with a conflict in the directory separator.

I was trying to run on command line:

$ php index.php tools/migration

fix it temporarily with the command:

$ php index.php tools migration

Upvotes: 0

Sadi
Sadi

Reputation: 2416

Check your database config in application/config/database.php it's one of the major time consuming error message I faced with CI. Because the error message was simply misleading. So, check the DB config first.

Upvotes: 3

Related Questions