CodeIgniter default controller not loading

I inherited the current CI v2.0.2 project.

I tried loading the default controller - http://localhost/ci202/index.php

- but all I had was a blank page.

I have enabled logging for all messages and here is 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 loaded: url_helper
DEBUG - 2012-10-05 23:55:41 --> Database Driver Class Initialized

      

To get this log, I only downloaded one time index.php

.

Content routes.php

and .htaccess

coincides with the installation of CI v2.0.2 by default.

I tried creating another controller like "helloworld" which was a replica of the receiving controller, but still got a blank page.

Where else should I be looking for a misconfiguration?

0


source to share


1 answer


This may help you find the problem.



  • Make sure the connection to the database was successful.
  • If you have enabled output compression from the CI config file, disable it from config.php

    :

    $config['compress_output'] = FALSE;

  • Change the default environment setting from index.php to

    development` so you can see any errors you might encounter in your application:

    define('ENVIRONMENT', 'development');

+2


source







All Articles