Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Class not found
#1

[eluser]The Mask[/eluser]
I have put a site live that worked perfect on my local PC but now I get the following error:
Fatal error: Class 'Mask_Controller' not found in .../application/controllers/home.php on line 3

Here is a snapshot of home.php...
<?php if ( ! defined('BASEPATH') ) exit( 'No direct script access allowed' );

class Home extends Mask_Controller {

public function __construct()
{
parent::__construct();
}
etc...

Here is a snapshot of mask_controller.php that sits in the application/core directory...
<?php

class Mask_Controller extends CI_Controller
{

public function __construct()
{
parent::__construct();
}

function index()
{
}

}

?>


Any ideas? I have searched the threads and tried everything suggested but still get the same error.
Thanks
#2

[eluser]TheFuzzy0ne[/eluser]
I suspect you developed on a Windows server and then uploaded to a Linux server. Can you confirm your file names are all lowercase?

How/where are you loading mask_controller.php? Are you sure it's been uploaded? Are you using __autoload()?
#3

[eluser]Aken[/eluser]
CI doesn't know how to find a base controller file other than MY_Controller.php. Rename the file using the prefix specified in your config file (MY_ by default). You can keep the actual class name the same, just the file needs to be renamed.




Theme © iAndrew 2016 - Forum software by © MyBB