小编Dr *_*rax的帖子

codeigniter - 升级php和apache后找不到致命错误类'CI_Controller'

我升级apache从2.2.19.0到2.4.16.0和php从5.3.7.0到5.6.12.0现在我收到此错误:

致命错误:第234行的system\core\CodeIgniter.php中找不到类"CI_Controller"

CodeIgniter.php第221-235行

// Load the base controller class
require BASEPATH.'core/Controller.php';

/**
 * Reference to the CI_Controller method.
 *
 * Returns current CI instance object
 *
 * @return object
 */

function &get_instance()
{
    return CI_Controller::get_instance();
}
Run Code Online (Sandbox Code Playgroud)

完整的CodeIgniter.php

<?php
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 5.2.4 or newer
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the Open Software License version 3.0
 *
 * This source file is subject to the Open Software …
Run Code Online (Sandbox Code Playgroud)

php apache codeigniter upgrade

3
推荐指数
1
解决办法
3023
查看次数

标签 统计

apache ×1

codeigniter ×1

php ×1

upgrade ×1