Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to locate specified model: Blog_posts_model #19

Closed
unuigbee opened this issue Apr 27, 2016 · 2 comments
Closed

Unable to locate specified model: Blog_posts_model #19

unuigbee opened this issue Apr 27, 2016 · 2 comments

Comments

@unuigbee
Copy link

I just installed the Blog Module using the
CI version: 3.0.6
PHP version: V7.05
Fuel version: latest develop branch version

An uncaught Exception was encountered
Type: RuntimeException

Message: Unable to locate the model you have specified: Blog_posts_model

Filename: /home/unuigbee/public_html/edwardstreetparish/fuel/codeigniter/core/Loader.php

Line Number: 344

Backtrace:

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php
Line: 237
Function: model

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php
Line: 368
Function: model

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/libraries/Fuel_modules.php
Line: 963
Function: module_model

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/models/Fuel_tags_model.php
Line: 118
Function: model

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/models/Fuel_tags_model.php
Line: 55
Function: init_relationships

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php
Line: 252
Function: __construct

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php
Line: 368
Function: model

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/libraries/Fuel_modules.php
Line: 963
Function: module_model

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/libraries/Fuel_modules.php
Line: 756
Function: model

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php(475) : eval()'d code
Line: 10
Function: info

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php
Line: 475
Function: eval

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php
Line: 323
Function: _ci_load

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php
Line: 375
Function: view

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php(475) : eval()'d code
Line: 22
Function: module_view

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php
Line: 475
Function: eval

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php
Line: 323
Function: _ci_load

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/core/Loader.php
Line: 375
Function: view

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/libraries/Fuel_admin.php
Line: 266
Function: module_view

File: /home/unuigbee/public_html/edwardstreetparish/fuel/modules/fuel/controllers/Dashboard.php
Line: 30
Function: render

File: /home/unuigbee/public_html/edwardstreetparish/index.php
Line: 365
Function: require_once
daylightstudio added a commit that referenced this issue Apr 27, 2016
@unuigbee
Copy link
Author

unuigbee commented Apr 27, 2016

Ah I was able to resolve it. It seems you need to make two changes in the Blog model folder:

  1. change the file name to upper case: blog_posts_model.php => Blog_posts_model.php
  2. Change the require in each model file by upper casing base_module_model.php require_once(FUEL_PATH.'models/base_module_model.php'); to require_once(FUEL_PATH.'models/Base_module_model.php');

@unuigbee
Copy link
Author

Ah that was quick. You also need to make a small edit to the require in each model file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant