EllisLab text mark
Advanced Search
     
CI v2.0.2 cannot load the default controller
Posted: 06 October 2012 02:06 AM   [ Ignore ]
Joined: 2012-10-06
2 posts

I have inherited an on-going CI v2.0.2 project.

I tried loading the default controller -

http://localhost/ci202/index.php 

- but all I got was a blank page.

I enabled logging for all messages, and here’s the log:

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
DEBUG 
2012-10-05 23:55:41 --> Config Class Initialized
DEBUG 
2012-10-05 23:55:41 --> Hooks Class Initialized
DEBUG 
2012-10-05 23:55:41 --> Utf8 Class Initialized
DEBUG 
2012-10-05 23:55:41 --> UTF-8 Support Enabled
DEBUG 
2012-10-05 23:55:41 --> URI Class Initialized
DEBUG 
2012-10-05 23:55:41 --> Router Class Initialized
DEBUG 
2012-10-05 23:55:41 --> No URI present. Default controller set.
DEBUG 2012-10-05 23:55:41 --> Output Class Initialized
DEBUG 
2012-10-05 23:55:41 --> Security Class Initialized
DEBUG 
2012-10-05 23:55:41 --> Input Class Initialized
DEBUG 
2012-10-05 23:55:41 --> Global POST and COOKIE data sanitized
DEBUG 
2012-10-05 23:55:41 --> Language Class Initialized
DEBUG 
2012-10-05 23:55:41 --> Loader Class Initialized
DEBUG 
2012-10-05 23:55:41 --> Helper loadedurl_helper
DEBUG 
2012-10-05 23:55:41 --> Database Driver Class Initialized 

To get this log, I only re-loaded

index.php 

once.

The contents of

routes.php 
&
.htaccess 

are the same as the default installation of CI v2.0.2.

I tried creating another ‘helloworld’ type controller, which was a replica of the welcome controller, but still get a blank page.

In

application/config/config.php 
, I tried setting the
base_url 
to
http://localhost/ci202/ 

and also tried with an empty string.

Where else should I look for misconfiguration?

 
Posted: 06 October 2012 07:38 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2009-04-15
453 posts

The blank page is mostly likely because you have errors suppressed;

in index.php, add:

ini_set(‘display_errors’, 1);

or do so in the php.ini file

and see if you start getting error messages. I believe in v2.02 that was explicitly turned off, but I may be thinking of something else

 Signature 

Code By Jeff

Mahana Messaging Library

Problem with your query? Did you run

$this->db->last_query(); 

before you came to the forums for help?