Search code examples
phpcodeigniterapache2codeigniter-2

changes core/Common.php results net::ERR_TOO_MANY_REDIRECTS


After the server PHP upgrade I am getting the following error with PHP Version 5.6.2 on Apache 2.0

A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257

then i changed core/Common.php

return $_config[0] =& $config  

into

$_config[0] =& $config; return $_config[0]; 

This resulted too many redirects for a site,and got 302 error


Solution

  • in core/Common.php

    add this line on line no 257

    return $_config[0];  
    

    i have try it its working for me when i upgraded my codeigniter version