遇到Ion-auth / An uncaught Exception /无法找到您指定的模型

时间:2016-02-09 06:12:36

标签: php codeigniter codeigniter-3 ion-auth

我正在使用codeigniter 3.x和ion-auth 2x。有一个迷你网站,我使用github来管理版本。该网站可以在我的笔记本电脑上运行但是一旦我将它拉到ubuntu / apache网络服务器,我就会收到以下错误。我已经检查过所有文件都在那里,它们是。我已删除该网站并再次尝试 - 同样的结果。我很难过!

An uncaught Exception was encountered
Type: RuntimeException
Message: Unable to locate the model you have specified: Ion_auth_model
Filename: /var/www/example.com/public_html/system/core/Loader.php
Line Number: 344
Backtrace:

File: /var/www/example.com/public_html/application/libraries/Ion_auth.php
Line: 62
Function: model

File: /var/www/example.com/public_html/application/core/MY_Controller.php
Line: 8
Function: __construct

File:     /var/www/example.com/public_html/application/controllers/Public_Controller.php
Line: 9
Function: __construct

File: /var/www/example.com/public_html/index.php
Line: 292
Function: require_once

1 个答案:

答案 0 :(得分:1)

惊人。两天我一直在研究这个问题。我将文件名从ion_auth_model.php更改为Ion_auth_model.php,错误消失,网站启动。