Welcome Guest, Not a member yet? Register   Sign In
Cannot load Model?

Hi. I've my web apps working on my pc using xampp. Then I upload to my hosting plan which is linux but then when I run a page I got this message.

An Error Was Encountered

Unable to locate the model you have specified: member

It seems it can load my library (myvalidation) fine but can't load any model.

My model name is Member.php (first letter upper case) and on my controller I've the following:


Could it be some configuration I need to set on my hosting plan or codeigniter in order to load Model? I don't know where to go.

Any help will be appreciated. Thank you.

The model isn't inside any folder or something like that?

I don't see nothing wrong with your code..

Yea it's inside the folder. It's not like one model having problem and it's all model I can't get it to load for some reason. I found it weird.

I'm wondering if there has something to do with apache? That's the only thing I can think of that's different between my local machine and the hosting. But it's just a shared hosting so I can't check any apache config. Sad

But maybe it shouldn't be that problem. Is there anything I can trigger to see my debug message that may help to resolve? Thank you.

Your problem is that your using upper case characters when they should all be lower case!


Really? But it worked on my own machine. I've the following.


It worked fine. I will give it a try but that sounds weird because it worked on my machine.

Look at this on the section about loading.


It has this:

class Blog_controller extends CI_Controller {

function blog()

$data['query'] = $this->Blog->get_last_ten_entries();

$this->load->view('blog', $data);

It has UPPER CASE and worked on my machine then not on hosting. I will give it a try to change to lower case but if that works then I like to know why work on one place and not another. I think anyone would like to know too.

Windows is case insensitive. Linux is not.

When uploading to your server you should tell your ftp client to upload all lower case filenames!


Yep InsiteFX is right. Always use Lowercase when loading stuff in general. Models, views, libraries etc etc...

Theme © iAndrew 2016 - Forum software by © MyBB