CodeIgniter Forums
install on production - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: install on production (/showthread.php?tid=75746)



install on production - CssGhe - 03-12-2020

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


RE: install on production - InsiteFX - 03-12-2020

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.


RE: install on production - CssGhe - 03-13-2020

(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


RE: install on production - CssGhe - 03-13-2020

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