Welcome Guest, Not a member yet? Register   Sign In
An Error Was Encountered
#1

[eluser]Unknown[/eluser]
Hello.
Their error code:
Quote:An Error Was Encountered

Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.
http://www.mediafire.com/?jy5j1a899jt635j
Here is the code yourself, you do have a mind to help me fix

Thanks.
#2

[eluser]Mat-Moo[/eluser]
Yea, nice one, upload a 12 mb file with the users database and encoded passwords, way to go to getting the website hacked!
#3

[eluser]John_Betong_002[/eluser]
I took the trouble to download your source Smile

There are numerous errors.
1. path missing ./application/controllers/
2. path missing ./application/views/

When I create a new project I always add this debugging script:

application/config/config.php
Code:
// my debugging stuff
  if(! defined('LOCALHOST'))
  {
    define('LOCALHOST', 'localhost' === $_SERVER['SERVER_NAME']);
  }
  
  error_reporting(-1);
  ini_set('display_errors',LOCALHOST);

  // PHP ERRORS
  ini_set('error_log', getcwd() .'/' .APPPATH .'/php_error.log');


  // CI stuff
  $config['base_url'] = 'http://' .$_SERVER['SERVER_NAME'] .'/';
  $config['base_url'] = str_replace('www.','',$config['base_url']);

  $config['log_threshold'] = LOCALHOST ? '1' : '0';

  $config['log_path'] = getcwd() .'/' .APPPATH;
 
Check your logfile for errors. It should be in your application directory.

Take your time to clear the errors and if there are more problems please feel free to ask for help.
 
 




Theme © iAndrew 2016 - Forum software by © MyBB