Welcome Guest, Not a member yet? Register   Sign In
CI App working locally but not on my server?
#1

[eluser]mck9235[/eluser]
I was working on a CI application on my own machine that was running perfectly. I then tried uploading it to my webserver and I keep getting a message saying that it's not able to locate my two custom models, which work fine on my local machine. I checked and all the paths are defined properly and the model files are definitely there. (It's PHP 5 on the local machine, 4 on the server).

Any insight would be greatly appreciated!
#2

[eluser]Michael Wales[/eluser]
Please copy-paste the error. Almost sounds like a uri_protocol issue (within config.php), that's usually the culprit when going live.
#3

[eluser]mck9235[/eluser]
Sorry, should've done that first:
"
An Error Was Encountered

Unable to locate the model you have specified: user_model"

It's the standard CI show_error() message styling.

Thanks
#4

[eluser]Rick Jolly[/eluser]
Here's a guess:

Is your user_model class named User_model or User_Model? If your moving from a case-insensitive server (windows) to a case-sensitive linux server then User_Model will not work.
#5

[eluser]wiredesignz[/eluser]
This comes up so many times in the forums that there should be a sticky discussion about the problems with CI going from development to a live server.




Theme © iAndrew 2016 - Forum software by © MyBB