Hasan Setiawan

Write, write, write give your wings on code!

Follow me on GitHub

CodeIgniter Common.php Error: variable references

I've deployed my source code. I'm getting following errors.

Notice: Only variable references should be returned by reference in C:\xampp\htdocs\3c_app\public_html\system\core\Common.php on line 257

Fatal error: Class 'CI_Controller' not found in C:\xampp\htdocs\3c_app\public_html\system\core\CodeIgniter.php on line 233.

Solution:

      
        //system/core/Common.php line 257
        return $_config[0] =& $config;


        //fix by change the return by the following code
        $_config[0] =& $config;
        return $_config[0];