Welcome Guest, Not a member yet? Register   Sign In
datamapper cannot find models after FTPing file to server
#1

[eluser]jordanarseno[/eluser]
DataMapper ORM works fine on my localhost.
After uploading to my webserver it is unable to locate my models.

For example, when I try to login - I obtain the following error because I use the User() class (extended from DataMapper):

Code:
Fatal error: Class 'User' not found in /home/mywebsite/CI_application/controllers/login.php on line 13

Has anybody had similar issues after FTPing their files?

I've made the necessary changes to the database configuration...
I've also made sure that 'datamapper' is being autoloaded...

I don't see any options in the datamapper config file that would fix this.

Any Ideas?
This is kind of urgent!
Thanks.
#2

[eluser]WanWizard[/eluser]
What's your local platform? And your remote one?

You're not using Windows locally, and used model filenames that are not lower case?
#3

[eluser]jordanarseno[/eluser]
Hello Wanwizard,

Thanks for the prompt reply.

I've actually tried it on two seperate remote Linux boxes:

Remote 1: Linux 2.6.38.7 #5 SMP Wed Jun 8 01:26:17 CDT 2011 i686
Remote 2: Linux 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64
Local: Windows XP Professional - SP3 - 32BIT

Model filenames are <Case.php>

Also, the remote server meets the server requirements.

Must I utilize Add Model Path? I do isolate my application and system folders from the servers www root, must I reroute something? It just seems strange to me that it works fine on my localhost, and not on the live server.

THANKS!
#4

[eluser]danmontgomery[/eluser]
Filenames should be lowercase.

Linux is case sensitive, windows is not.
#5

[eluser]jordanarseno[/eluser]
This was the solution.
Thank you!




Theme © iAndrew 2016 - Forum software by © MyBB