小编Jam*_*han的帖子

Codeigniter在"core"文件夹中查找库

我使用ion_auth创建了这个Facebook应用程序.在某些浏览器中,当您授权应用程序时,它不会将用户登录到我的服务器上.

我检查了日志文件,发现了这个

ERROR - 2013-06-10 00:00:01 --> Severity: Warning  --> include_once(application/core/MY_Ion_auth.php): failed to open stream: No such file or directory /var/www/html/application/config/production/config.php 378
ERROR - 2013-06-10 00:00:01 --> Severity: Warning  --> include_once(): Failed opening 'application/core/MY_Ion_auth.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') /var/www/html/application/config/production/config.php 378
Run Code Online (Sandbox Code Playgroud)

现在config.php第378行就像

function __autoload($class)
{
    if (strpos($class, 'CI_') !== 0) {
        @include_once(APPPATH . 'core/' . $class . EXT);
    }
}
Run Code Online (Sandbox Code Playgroud)

ion_auth和go2都是自动加载的库......它们实际上位于库文件夹中.

有任何想法吗?

php codeigniter

4
推荐指数
1
解决办法
2967
查看次数

标签 统计

codeigniter ×1

php ×1