CodeIgniter Message: Only variable references should be returned by reference

If you happened encountered that PHP Error on your CodeIgniter application (eg fuelcms), then try this fix by milan.petrak in EllisLab’s forum :

return $_config[0] =& $config;

change into :

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

8 Comments

Leave a Comment

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

Scroll to Top