Welcome Guest, Not a member yet? Register   Sign In
HELP: Model Problem upon deployment
#1

[eluser]jackeblagare[/eluser]
I was developing an application on my local server. It was working fine. However, when I uploaded it to my remote server, I cannot login to my application. It says that the specified model cannot be found. I changed all configuration when I uploaded the files in order to fit the server and as I've said it was working on my local server.

Can anyone help me with this or give me possible solutions?
#2

[eluser]pickupman[/eluser]
If you were working/developing on a windows box and uploaded to a linux server, it could be a capitalization error. On windows, CI will load a file regardless of capitalization. (test.php = Test.php). Whereas on linux the files (controllers, models, libraries) must begin with a capital in your code, and also with the matching filename (Test.php = Test.php).

Beyond that, we can't provide much help because you have provided any code. What is there error you are getting?
#3

[eluser]jackeblagare[/eluser]
[quote author="jackeblagare" date="1276409533"]I was developing an application on my local server. It was working fine. However, when I uploaded it to my remote server, I cannot login to my application. It says that the specified model cannot be found. I changed all configuration when I uploaded the files in order to fit the server and as I've said it was working on my local server.

Can anyone help me with this or give me possible solutions?[/quote]

That was the first thing I checked since the error stated something like " users_model". However, when I checked all the files and the code that uses the said model, it was Users_model and the model file name is Users_model.php so I was stumped and wondered where it got "users_model" when I use "Users_model" in my declarations.
#4

[eluser]excelln[/eluser]
[quote author="jackeblagare" date="1276409533"]I was developing an application on my local server. It was working fine. However, when I uploaded it to my remote server, I cannot login to my application. It says that the specified model cannot be found. I changed all configuration when I uploaded the files in order to fit the server and as I've said it was working on my local server.

Can anyone help me with this or give me possible solutions?[/quote]

change the model file name to lower case you will be fine.
#5

[eluser]jackeblagare[/eluser]
[quote author="excelln" date="1276423601"][quote author="jackeblagare" date="1276409533"]I was developing an application on my local server. It was working fine. However, when I uploaded it to my remote server, I cannot login to my application. It says that the specified model cannot be found. I changed all configuration when I uploaded the files in order to fit the server and as I've said it was working on my local server.

Can anyone help me with this or give me possible solutions?[/quote]

change the model file name to lower case you will be fine.[/quote]

It's working now. Thanks.Smile Are the model files the only one sensitive to file naming conventions or do I also need to rename my controllers?




Theme © iAndrew 2016 - Forum software by © MyBB