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 ...

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

  1. Thanks

    For me , I change into :

    return $config;

    It works

  2. where i put this code ?

    • Hai,
      in FuelCMS, the file is “fuel/codeigniter/core/Common.php”, find at line 257
      in CodeIgniter 2.2.1, the file is “system/core/Common.php” but there’s no need to edit.

  3. Thanks for posting

  4. nice article, it was work for me, thanks

  5. This is not working with me !!!

Leave a Reply

We use cookies. By browsing our site you agree to our use of cookies.Accept