Unable to locate the model you have specified - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: Unable to locate the model you have specified (/showthread.php?tid=64602) |
Unable to locate the model you have specified - lcwakeman - 03-10-2016 I know, not again. The zip file I extracted from says iot is version 3.0.4 though it is reporting CodeIgniter Version 2.1.3 on the home page. Directory of models folder: Code: 03/10/2016 04:55 PM <DIR> . Crud_m.php - Code: <?php Schemaversion_m.php Code: <?php Controller - Code: <?php Executing the version function returns the following error Code: An Error Was Encountered RE: Unable to locate the model you have specified - ciadmin - 03-10-2016 Er, shouldn't that be Schemaversion_m extends Crud_m ? The welcome page should definitely not say CI 2.1.3 ... it should have 3.0.4 in the bottom right. If it doesn't, something else could be wrong. Is this a fresh copy, or did you copy 3.0.4 over top of an existing one? RE: Unable to locate the model you have specified - lcwakeman - 03-11-2016 (03-10-2016, 08:41 PM)ciadmin Wrote: Er, shouldn't that be Schemaversion_m extends Crud_m ? Just tried the case thing with the extends, mo joy. It is a fresh dl this week/ RE: Unable to locate the model you have specified - Narf - 03-11-2016 (03-11-2016, 12:48 AM)lcwakeman Wrote:(03-10-2016, 08:41 PM)ciadmin Wrote: Er, shouldn't that be Schemaversion_m extends Crud_m ? Where did you download that ZIP from? RE: Unable to locate the model you have specified - lcwakeman - 03-11-2016 https://github.com/bcit-ci/CodeIgniter/archive/3.0.4.zip RE: Unable to locate the model you have specified - Narf - 03-11-2016 Well, then it couldn't possibly be reporting 2.1.3 without modifications ... surely you're just looking in the wrong place for that version number. RE: Unable to locate the model you have specified - lcwakeman - 03-12-2016 I had installed stencil on the site and it seemed to mess some things up. Now at least the views/welcome_message.php is showing the correct CI version. stencil overwrote a lot of things that it didn't need o with CI 2 items. Now I have to get things woprking again. RE: Unable to locate the model you have specified - lcwakeman - 03-12-2016 And we are back to the original problem: An uncaught Exception was encountered Type: RuntimeException Message: Unable to locate the model you have specified: Schemaversion_m Filename: C:\Users\larry\Projects\BGA Media\Great Oak\www\system\core\Loader.php Line Number: 343 Backtrace: File: C:\Users\larry\Projects\BGA Media\Great Oak\www\application\controllers\management\Database.php Line: 38 Function: model File: C:\Users\larry\Projects\BGA Media\Great Oak\www\index.php Line: 292 Function: require_once RE: Unable to locate the model you have specified - lcwakeman - 03-13-2016 Found it, typo in the file name. new it would be that simple, especially with my fat fingers. |