Codeigniter – Message: Only variable references should be returned by reference

On a new deployment of a Codeigniter tool that I’v made, I got the following error, after installed it in more than 10 different servers… my own servers and clients…

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

 

This only happens with PHP >= 5.6….

We need to tweak /system/core/Common.php Line number 257
Change this line from

return $_config[0] =& $config;

to

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

4 thoughts on “Codeigniter – Message: Only variable references should be returned by reference

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.