Welcome Guest, Not a member yet? Register   Sign In
install on production
#1

Hello,
(Sorry for my poor english)

I have a package "tests" with a model "Absences_model" in <applications/models> folder, this model inherits of "MY_model" file in <applications/core> folder, this one extends "CI_Model".

On my localhost : no errors.

On my site, at startup, I receive an error :
An uncaught Exception was encountered
Type: Error
Message: Class 'MY_model' not found
Filename: /srv/data/web/vhosts/9362563dbee84dae901e395a675f25ea.testurl.ws/htdocs/tests/application/models/Absences_model.php
Line Number: 16


All "config files" seems to be ok. I don't understand this error.
Thanks for help, I am new with Codeigniter V3.

Gilbert   Huh
Reply
#2

I would check your character settings some web servers only allow filenames with all lowercase.

Your error is showing an uppercase first character on your model.

Try changing your model name to all lowercase and see if that fixes it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(03-12-2020, 08:16 AM)InsiteFX Wrote: I would check your character settings some web servers only allow filenames with all lowercase.

Your error is showing an uppercase first character on your model.

Try changing your model name to all lowercase and see if that fixes it.
All is right now with your idea ! Many thanks for your help.
Gilbert
Reply
#4

All is right now with your idea ! Many thanks.
Gilbert
Reply




Theme © iAndrew 2016 - Forum software by © MyBB