简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM